115 lines · plain
1; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=__call_stub_fp___fixunsdfsi2 3; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=__call_stub_fp___floatdidf4 5; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=__call_stub_fp___floatdisf6 7; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=__call_stub_fp___floatundidf8 9; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=__call_stub_fp___fixsfdi10 11; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=__call_stub_fp___fixunsdfdi12 13; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=__call_stub_fp___fixdfdi14 15; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=__call_stub_fp___fixunssfsi16 17; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=__call_stub_fp___fixunssfdi18 19; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static < %s | FileCheck %s -check-prefix=__call_stub_fp___floatundisf20 21@ll1 = global i64 0, align 822@ll2 = global i64 0, align 823@ll3 = global i64 0, align 824@l1 = global i32 0, align 425@l2 = global i32 0, align 426@l3 = global i32 0, align 427@ull1 = global i64 0, align 828@ull2 = global i64 0, align 829@ull3 = global i64 0, align 830@ul1 = global i32 0, align 431@ul2 = global i32 0, align 432@ul3 = global i32 0, align 433@d1 = global double 0.000000e+00, align 834@d2 = global double 0.000000e+00, align 835@d3 = global double 0.000000e+00, align 836@d4 = global double 0.000000e+00, align 837@f1 = global float 0.000000e+00, align 438@f2 = global float 0.000000e+00, align 439@f3 = global float 0.000000e+00, align 440@f4 = global float 0.000000e+00, align 441 42; Function Attrs: nounwind43define void @_Z3foov() #0 {44entry:45 %0 = load double, ptr @d1, align 846 %conv = fptosi double %0 to i6447 store i64 %conv, ptr @ll1, align 848 %1 = load double, ptr @d2, align 849 %conv1 = fptoui double %1 to i6450 store i64 %conv1, ptr @ull1, align 851 %2 = load float, ptr @f1, align 452 %conv2 = fptosi float %2 to i6453 store i64 %conv2, ptr @ll2, align 854 %3 = load float, ptr @f2, align 455 %conv3 = fptoui float %3 to i6456 store i64 %conv3, ptr @ull2, align 857 %4 = load double, ptr @d3, align 858 %conv4 = fptosi double %4 to i3259 store i32 %conv4, ptr @l1, align 460 %5 = load double, ptr @d4, align 861 %conv5 = fptoui double %5 to i3262 store i32 %conv5, ptr @ul1, align 463 %6 = load float, ptr @f3, align 464 %conv6 = fptosi float %6 to i3265 store i32 %conv6, ptr @l2, align 466 %7 = load float, ptr @f4, align 467 %conv7 = fptoui float %7 to i3268 store i32 %conv7, ptr @ul2, align 469 ret void70}71 72; Function Attrs: nounwind73define void @_Z3goov() #0 {74entry:75 %0 = load i64, ptr @ll1, align 876 %conv = sitofp i64 %0 to double77 store double %conv, ptr @d1, align 878 %1 = load i64, ptr @ull1, align 879 %conv1 = uitofp i64 %1 to double80 store double %conv1, ptr @d2, align 881 %2 = load i64, ptr @ll2, align 882 %conv2 = sitofp i64 %2 to float83 store float %conv2, ptr @f1, align 484 %3 = load i64, ptr @ull2, align 885 %conv3 = uitofp i64 %3 to float86 store float %conv3, ptr @f2, align 487 %4 = load i32, ptr @l1, align 488 %conv4 = sitofp i32 %4 to double89 store double %conv4, ptr @d3, align 890 %5 = load i32, ptr @ul1, align 491 %conv5 = uitofp i32 %5 to double92 store double %conv5, ptr @d4, align 893 %6 = load i32, ptr @l2, align 494 %conv6 = sitofp i32 %6 to float95 store float %conv6, ptr @f3, align 496 %7 = load i32, ptr @ul2, align 497 %conv7 = uitofp i32 %7 to float98 store float %conv7, ptr @f4, align 499 ret void100}101 102attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="false" }103 104; __call_stub_fp___fixunsdfsi: __call_stub_fp___fixunsdfsi:105; __call_stub_fp___floatdidf: __call_stub_fp___floatdidf:106; __call_stub_fp___floatdisf: __call_stub_fp___floatdisf:107; __call_stub_fp___floatundidf: __call_stub_fp___floatundidf:108; __call_stub_fp___fixsfdi: __call_stub_fp___fixsfdi:109; __call_stub_fp___fixunsdfdi: __call_stub_fp___fixunsdfdi:110; __call_stub_fp___fixdfdi: __call_stub_fp___fixdfdi:111; __call_stub_fp___fixunssfsi: __call_stub_fp___fixunssfsi:112; __call_stub_fp___fixunssfdi: __call_stub_fp___fixunssfdi:113; __call_stub_fp___floatundisf: __call_stub_fp___floatundisf:114 115