xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/l3mc.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static  < %s | FileCheck  %s -check-prefix=__call_stub_fp___fixunsdfsi
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static  < %s | FileCheck %s -check-prefix=__call_stub_fp___floatdidf
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static  < %s | FileCheck %s -check-prefix=__call_stub_fp___floatdisf
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static  < %s | FileCheck %s -check-prefix=__call_stub_fp___floatundidf
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static  < %s | FileCheck %s -check-prefix=__call_stub_fp___fixsfdi
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static  < %s | FileCheck %s -check-prefix=__call_stub_fp___fixunsdfdi
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static  < %s | FileCheck %s -check-prefix=__call_stub_fp___fixdfdi
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static  < %s | FileCheck %s -check-prefix=__call_stub_fp___fixunssfsi
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static  < %s | FileCheck %s -check-prefix=__call_stub_fp___fixunssfdi
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static  < %s | FileCheck %s -check-prefix=__call_stub_fp___floatundisf
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Worker@ll1 = global i64 0, align 8
22*9880d681SAndroid Build Coastguard Worker@ll2 = global i64 0, align 8
23*9880d681SAndroid Build Coastguard Worker@ll3 = global i64 0, align 8
24*9880d681SAndroid Build Coastguard Worker@l1 = global i32 0, align 4
25*9880d681SAndroid Build Coastguard Worker@l2 = global i32 0, align 4
26*9880d681SAndroid Build Coastguard Worker@l3 = global i32 0, align 4
27*9880d681SAndroid Build Coastguard Worker@ull1 = global i64 0, align 8
28*9880d681SAndroid Build Coastguard Worker@ull2 = global i64 0, align 8
29*9880d681SAndroid Build Coastguard Worker@ull3 = global i64 0, align 8
30*9880d681SAndroid Build Coastguard Worker@ul1 = global i32 0, align 4
31*9880d681SAndroid Build Coastguard Worker@ul2 = global i32 0, align 4
32*9880d681SAndroid Build Coastguard Worker@ul3 = global i32 0, align 4
33*9880d681SAndroid Build Coastguard Worker@d1 = global double 0.000000e+00, align 8
34*9880d681SAndroid Build Coastguard Worker@d2 = global double 0.000000e+00, align 8
35*9880d681SAndroid Build Coastguard Worker@d3 = global double 0.000000e+00, align 8
36*9880d681SAndroid Build Coastguard Worker@d4 = global double 0.000000e+00, align 8
37*9880d681SAndroid Build Coastguard Worker@f1 = global float 0.000000e+00, align 4
38*9880d681SAndroid Build Coastguard Worker@f2 = global float 0.000000e+00, align 4
39*9880d681SAndroid Build Coastguard Worker@f3 = global float 0.000000e+00, align 4
40*9880d681SAndroid Build Coastguard Worker@f4 = global float 0.000000e+00, align 4
41*9880d681SAndroid Build Coastguard Worker
42*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind
43*9880d681SAndroid Build Coastguard Workerdefine void @_Z3foov() #0 {
44*9880d681SAndroid Build Coastguard Workerentry:
45*9880d681SAndroid Build Coastguard Worker  %0 = load double, double* @d1, align 8
46*9880d681SAndroid Build Coastguard Worker  %conv = fptosi double %0 to i64
47*9880d681SAndroid Build Coastguard Worker  store i64 %conv, i64* @ll1, align 8
48*9880d681SAndroid Build Coastguard Worker  %1 = load double, double* @d2, align 8
49*9880d681SAndroid Build Coastguard Worker  %conv1 = fptoui double %1 to i64
50*9880d681SAndroid Build Coastguard Worker  store i64 %conv1, i64* @ull1, align 8
51*9880d681SAndroid Build Coastguard Worker  %2 = load float, float* @f1, align 4
52*9880d681SAndroid Build Coastguard Worker  %conv2 = fptosi float %2 to i64
53*9880d681SAndroid Build Coastguard Worker  store i64 %conv2, i64* @ll2, align 8
54*9880d681SAndroid Build Coastguard Worker  %3 = load float, float* @f2, align 4
55*9880d681SAndroid Build Coastguard Worker  %conv3 = fptoui float %3 to i64
56*9880d681SAndroid Build Coastguard Worker  store i64 %conv3, i64* @ull2, align 8
57*9880d681SAndroid Build Coastguard Worker  %4 = load double, double* @d3, align 8
58*9880d681SAndroid Build Coastguard Worker  %conv4 = fptosi double %4 to i32
59*9880d681SAndroid Build Coastguard Worker  store i32 %conv4, i32* @l1, align 4
60*9880d681SAndroid Build Coastguard Worker  %5 = load double, double* @d4, align 8
61*9880d681SAndroid Build Coastguard Worker  %conv5 = fptoui double %5 to i32
62*9880d681SAndroid Build Coastguard Worker  store i32 %conv5, i32* @ul1, align 4
63*9880d681SAndroid Build Coastguard Worker  %6 = load float, float* @f3, align 4
64*9880d681SAndroid Build Coastguard Worker  %conv6 = fptosi float %6 to i32
65*9880d681SAndroid Build Coastguard Worker  store i32 %conv6, i32* @l2, align 4
66*9880d681SAndroid Build Coastguard Worker  %7 = load float, float* @f4, align 4
67*9880d681SAndroid Build Coastguard Worker  %conv7 = fptoui float %7 to i32
68*9880d681SAndroid Build Coastguard Worker  store i32 %conv7, i32* @ul2, align 4
69*9880d681SAndroid Build Coastguard Worker  ret void
70*9880d681SAndroid Build Coastguard Worker}
71*9880d681SAndroid Build Coastguard Worker
72*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind
73*9880d681SAndroid Build Coastguard Workerdefine void @_Z3goov() #0 {
74*9880d681SAndroid Build Coastguard Workerentry:
75*9880d681SAndroid Build Coastguard Worker  %0 = load i64, i64* @ll1, align 8
76*9880d681SAndroid Build Coastguard Worker  %conv = sitofp i64 %0 to double
77*9880d681SAndroid Build Coastguard Worker  store double %conv, double* @d1, align 8
78*9880d681SAndroid Build Coastguard Worker  %1 = load i64, i64* @ull1, align 8
79*9880d681SAndroid Build Coastguard Worker  %conv1 = uitofp i64 %1 to double
80*9880d681SAndroid Build Coastguard Worker  store double %conv1, double* @d2, align 8
81*9880d681SAndroid Build Coastguard Worker  %2 = load i64, i64* @ll2, align 8
82*9880d681SAndroid Build Coastguard Worker  %conv2 = sitofp i64 %2 to float
83*9880d681SAndroid Build Coastguard Worker  store float %conv2, float* @f1, align 4
84*9880d681SAndroid Build Coastguard Worker  %3 = load i64, i64* @ull2, align 8
85*9880d681SAndroid Build Coastguard Worker  %conv3 = uitofp i64 %3 to float
86*9880d681SAndroid Build Coastguard Worker  store float %conv3, float* @f2, align 4
87*9880d681SAndroid Build Coastguard Worker  %4 = load i32, i32* @l1, align 4
88*9880d681SAndroid Build Coastguard Worker  %conv4 = sitofp i32 %4 to double
89*9880d681SAndroid Build Coastguard Worker  store double %conv4, double* @d3, align 8
90*9880d681SAndroid Build Coastguard Worker  %5 = load i32, i32* @ul1, align 4
91*9880d681SAndroid Build Coastguard Worker  %conv5 = uitofp i32 %5 to double
92*9880d681SAndroid Build Coastguard Worker  store double %conv5, double* @d4, align 8
93*9880d681SAndroid Build Coastguard Worker  %6 = load i32, i32* @l2, align 4
94*9880d681SAndroid Build Coastguard Worker  %conv6 = sitofp i32 %6 to float
95*9880d681SAndroid Build Coastguard Worker  store float %conv6, float* @f3, align 4
96*9880d681SAndroid Build Coastguard Worker  %7 = load i32, i32* @ul2, align 4
97*9880d681SAndroid Build Coastguard Worker  %conv7 = uitofp i32 %7 to float
98*9880d681SAndroid Build Coastguard Worker  store float %conv7, float* @f4, align 4
99*9880d681SAndroid Build Coastguard Worker  ret void
100*9880d681SAndroid Build Coastguard Worker}
101*9880d681SAndroid Build Coastguard Worker
102*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
103*9880d681SAndroid Build Coastguard Worker
104*9880d681SAndroid Build Coastguard Worker; __call_stub_fp___fixunsdfsi:  __call_stub_fp___fixunsdfsi:
105*9880d681SAndroid Build Coastguard Worker; __call_stub_fp___floatdidf:  __call_stub_fp___floatdidf:
106*9880d681SAndroid Build Coastguard Worker; __call_stub_fp___floatdisf:  __call_stub_fp___floatdisf:
107*9880d681SAndroid Build Coastguard Worker; __call_stub_fp___floatundidf:  __call_stub_fp___floatundidf:
108*9880d681SAndroid Build Coastguard Worker; __call_stub_fp___fixsfdi:  __call_stub_fp___fixsfdi:
109*9880d681SAndroid Build Coastguard Worker; __call_stub_fp___fixunsdfdi:  __call_stub_fp___fixunsdfdi:
110*9880d681SAndroid Build Coastguard Worker; __call_stub_fp___fixdfdi:  __call_stub_fp___fixdfdi:
111*9880d681SAndroid Build Coastguard Worker; __call_stub_fp___fixunssfsi:  __call_stub_fp___fixunssfsi:
112*9880d681SAndroid Build Coastguard Worker; __call_stub_fp___fixunssfdi:  __call_stub_fp___fixunssfdi:
113*9880d681SAndroid Build Coastguard Worker; __call_stub_fp___floatundisf:  __call_stub_fp___floatundisf:
114*9880d681SAndroid Build Coastguard Worker
115