1 ; RUN: llc -march=sparc -mattr=soft-float -O0 < %s | FileCheck %s
5 define float @test_addsf3(float %a, float %b) #0 {
6 ; CHECK-LABEL: test_addsf3:
8 %add = fadd float %a, %b
12 define double @test_adddf3(double %a, double %b) #0 {
13 ; CHECK-LABEL: test_adddf3:
14 ; CHECK: call __adddf3
15 %add = fadd double %a, %b
19 define fp128 @test_addtf3(fp128 %a, fp128 %b) #0 {
20 ; CHECK-LABEL: test_addtf3:
21 ; CHECK: call __addtf3
22 %add = fadd fp128 %a, %b
26 define float @test_mulsf3(float %a, float %b) #0 {
27 ; CHECK-LABEL: test_mulsf3:
28 ; CHECK: call __mulsf3
29 %mul = fmul float %a, %b
33 define double @test_muldf3(double %a, double %b) #0 {
34 ; CHECK-LABEL: test_muldf3:
35 ; CHECK: call __muldf3
36 %mul = fmul double %a, %b
40 define fp128 @test_multf3(fp128 %a, fp128 %b) #0 {
41 ; CHECK-LABEL: test_multf3:
42 ; CHECK: call __multf3
43 %mul = fmul fp128 %a, %b
47 define float @test_subsf3(float %a, float %b) #0 {
48 ; CHECK-LABEL: test_subsf3:
49 ; CHECK: call __subsf3
50 %sub = fsub float %a, %b
54 define double @test_subdf3(double %a, double %b) #0 {
55 ; CHECK-LABEL: test_subdf3:
56 ; CHECK: call __subdf3
57 %sub = fsub double %a, %b
61 define fp128 @test_subtf3(fp128 %a, fp128 %b) #0 {
62 ; CHECK-LABEL: test_subtf3:
63 ; CHECK: call __subtf3
64 %sub = fsub fp128 %a, %b
68 define float @test_divsf3(float %a, float %b) #0 {
69 ; CHECK-LABEL: test_divsf3:
70 ; CHECK: call __divsf3
71 %div = fdiv float %a, %b
75 define double @test_divdf3(double %a, double %b) #0 {
76 ; CHECK-LABEL: test_divdf3:
77 ; CHECK: call __divdf3
78 %div = fdiv double %a, %b
82 define fp128 @test_divtf3(fp128 %a, fp128 %b) #0 {
83 ; CHECK-LABEL: test_divtf3:
84 ; CHECK: call __divtf3
85 %div = fdiv fp128 %a, %b
89 ; Comparison functions
90 define i1 @test_unordsf2(float %a, float %b) #0 {
91 ; CHECK-LABEL: test_unordsf2:
92 ; CHECK: call __unordsf2
93 %cmp = fcmp uno float %a, %b
97 define i1 @test_unorddf2(double %a, double %b) #0 {
98 ; CHECK-LABEL: test_unorddf2:
99 ; CHECK: call __unorddf2
100 %cmp = fcmp uno double %a, %b
104 define i1 @test_unordtf2(fp128 %a, fp128 %b) #0 {
105 ; CHECK-LABEL: test_unordtf2:
106 ; CHECK: call __unordtf2
107 %cmp = fcmp uno fp128 %a, %b
111 define i1 @test_eqsf2(float %a, float %b) #0 {
112 ; CHECK-LABEL: test_eqsf2:
113 ; CHECK: call __eqsf2
114 %cmp = fcmp oeq float %a, %b
118 define i1 @test_eqdf2(double %a, double %b) #0 {
119 ; CHECK-LABEL: test_eqdf2:
120 ; CHECK: call __eqdf2
121 %cmp = fcmp oeq double %a, %b
125 define i1 @test_eqtf2(fp128 %a, fp128 %b) #0 {
126 ; CHECK-LABEL: test_eqtf2:
127 ; CHECK: call __eqtf2
128 %cmp = fcmp oeq fp128 %a, %b
132 define i1 @test_nesf2(float %a, float %b) #0 {
133 ; CHECK-LABEL: test_nesf2:
134 ; CHECK: call __nesf2
135 %cmp = fcmp une float %a, %b
139 define i1 @test_nedf2(double %a, double %b) #0 {
140 ; CHECK-LABEL: test_nedf2:
141 ; CHECK: call __nedf2
142 %cmp = fcmp une double %a, %b
146 define i1 @test_netf2(fp128 %a, fp128 %b) #0 {
147 ; CHECK-LABEL: test_netf2:
148 ; CHECK: call __netf2
149 %cmp = fcmp une fp128 %a, %b
153 define i1 @test_gesf2(float %a, float %b) #0 {
154 ; CHECK-LABEL: test_gesf2:
155 ; CHECK: call __gesf2
156 %cmp = fcmp oge float %a, %b
160 define i1 @test_gedf2(double %a, double %b) #0 {
161 ; CHECK-LABEL: test_gedf2:
162 ; CHECK: call __gedf2
163 %cmp = fcmp oge double %a, %b
167 define i1 @test_getf2(fp128 %a, fp128 %b) #0 {
168 ; CHECK-LABEL: test_getf2:
169 ; CHECK: call __getf2
170 %cmp = fcmp oge fp128 %a, %b
174 define i1 @test_ltsf2(float %a, float %b) #0 {
175 ; CHECK-LABEL: test_ltsf2:
176 ; CHECK: call __ltsf2
177 %cmp = fcmp olt float %a, %b
181 define i1 @test_ltdf2(double %a, double %b) #0 {
182 ; CHECK-LABEL: test_ltdf2:
183 ; CHECK: call __ltdf2
184 %cmp = fcmp olt double %a, %b
188 define i1 @test_lttf2(fp128 %a, fp128 %b) #0 {
189 ; CHECK-LABEL: test_lttf2:
190 ; CHECK: call __lttf2
191 %cmp = fcmp olt fp128 %a, %b
195 define i1 @test_lesf2(float %a, float %b) #0 {
196 ; CHECK-LABEL: test_lesf2:
197 ; CHECK: call __lesf2
198 %cmp = fcmp ole float %a, %b
202 define i1 @test_ledf2(double %a, double %b) #0 {
203 ; CHECK-LABEL: test_ledf2:
204 ; CHECK: call __ledf2
205 %cmp = fcmp ole double %a, %b
209 define i1 @test_letf2(fp128 %a, fp128 %b) #0 {
210 ; CHECK-LABEL: test_letf2:
211 ; CHECK: call __letf2
212 %cmp = fcmp ole fp128 %a, %b
216 define i1 @test_gtsf2(float %a, float %b) #0 {
217 ; CHECK-LABEL: test_gtsf2:
218 ; CHECK: call __gtsf2
219 %cmp = fcmp ogt float %a, %b
223 define i1 @test_gtdf2(double %a, double %b) #0 {
224 ; CHECK-LABEL: test_gtdf2:
225 ; CHECK: call __gtdf2
226 %cmp = fcmp ogt double %a, %b
230 define i1 @test_gttf2(fp128 %a, fp128 %b) #0 {
231 ; CHECK-LABEL: test_gttf2:
232 ; CHECK: call __gttf2
233 %cmp = fcmp ogt fp128 %a, %b