1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-linux-gnu | FileCheck %s --check-prefix=X86-NOF16C
3 ; RUN: llc < %s -mtriple=i686-linux-gnu -mattr=f16c | FileCheck %s --check-prefix=X86-F16C
4 ; RUN: llc < %s -mtriple=x86_64-linux-gnu | FileCheck %s --check-prefix=X64-NOF16C
5 ; RUN: llc < %s -mtriple=x86_64-linux-gnu -mattr=f16c | FileCheck %s --check-prefix=X64-F16C
7 @a = global half 0xH0000, align 2
8 @b = global half 0xH0000, align 2
9 @c = global half 0xH0000, align 2
11 define float @half_to_float() strictfp {
12 ; X86-NOF16C-LABEL: half_to_float:
13 ; X86-NOF16C: # %bb.0:
14 ; X86-NOF16C-NEXT: subl $12, %esp
15 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 16
16 ; X86-NOF16C-NEXT: movzwl a, %eax
17 ; X86-NOF16C-NEXT: movl %eax, (%esp)
18 ; X86-NOF16C-NEXT: calll __gnu_h2f_ieee
19 ; X86-NOF16C-NEXT: addl $12, %esp
20 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 4
21 ; X86-NOF16C-NEXT: retl
23 ; X86-F16C-LABEL: half_to_float:
25 ; X86-F16C-NEXT: pushl %eax
26 ; X86-F16C-NEXT: .cfi_def_cfa_offset 8
27 ; X86-F16C-NEXT: movzwl a, %eax
28 ; X86-F16C-NEXT: vmovd %eax, %xmm0
29 ; X86-F16C-NEXT: vcvtph2ps %xmm0, %xmm0
30 ; X86-F16C-NEXT: vmovss %xmm0, (%esp)
31 ; X86-F16C-NEXT: flds (%esp)
33 ; X86-F16C-NEXT: popl %eax
34 ; X86-F16C-NEXT: .cfi_def_cfa_offset 4
37 ; X64-NOF16C-LABEL: half_to_float:
38 ; X64-NOF16C: # %bb.0:
39 ; X64-NOF16C-NEXT: pushq %rax
40 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 16
41 ; X64-NOF16C-NEXT: movq a@GOTPCREL(%rip), %rax
42 ; X64-NOF16C-NEXT: pinsrw $0, (%rax), %xmm0
43 ; X64-NOF16C-NEXT: callq __extendhfsf2@PLT
44 ; X64-NOF16C-NEXT: popq %rax
45 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 8
46 ; X64-NOF16C-NEXT: retq
48 ; X64-F16C-LABEL: half_to_float:
50 ; X64-F16C-NEXT: movq a@GOTPCREL(%rip), %rax
51 ; X64-F16C-NEXT: movzwl (%rax), %eax
52 ; X64-F16C-NEXT: vmovd %eax, %xmm0
53 ; X64-F16C-NEXT: vcvtph2ps %xmm0, %xmm0
55 %1 = load half, ptr @a, align 2
56 %2 = tail call float @llvm.experimental.constrained.fpext.f32.f16(half %1, metadata !"fpexcept.strict") #0
60 define double @half_to_double() strictfp {
61 ; X86-NOF16C-LABEL: half_to_double:
62 ; X86-NOF16C: # %bb.0:
63 ; X86-NOF16C-NEXT: subl $12, %esp
64 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 16
65 ; X86-NOF16C-NEXT: movzwl a, %eax
66 ; X86-NOF16C-NEXT: movl %eax, (%esp)
67 ; X86-NOF16C-NEXT: calll __gnu_h2f_ieee
68 ; X86-NOF16C-NEXT: addl $12, %esp
69 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 4
70 ; X86-NOF16C-NEXT: retl
72 ; X86-F16C-LABEL: half_to_double:
74 ; X86-F16C-NEXT: subl $12, %esp
75 ; X86-F16C-NEXT: .cfi_def_cfa_offset 16
76 ; X86-F16C-NEXT: movzwl a, %eax
77 ; X86-F16C-NEXT: vmovd %eax, %xmm0
78 ; X86-F16C-NEXT: vcvtph2ps %xmm0, %xmm0
79 ; X86-F16C-NEXT: vcvtss2sd %xmm0, %xmm0, %xmm0
80 ; X86-F16C-NEXT: vmovsd %xmm0, (%esp)
81 ; X86-F16C-NEXT: fldl (%esp)
83 ; X86-F16C-NEXT: addl $12, %esp
84 ; X86-F16C-NEXT: .cfi_def_cfa_offset 4
87 ; X64-NOF16C-LABEL: half_to_double:
88 ; X64-NOF16C: # %bb.0:
89 ; X64-NOF16C-NEXT: pushq %rax
90 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 16
91 ; X64-NOF16C-NEXT: movq a@GOTPCREL(%rip), %rax
92 ; X64-NOF16C-NEXT: pinsrw $0, (%rax), %xmm0
93 ; X64-NOF16C-NEXT: callq __extendhfsf2@PLT
94 ; X64-NOF16C-NEXT: cvtss2sd %xmm0, %xmm0
95 ; X64-NOF16C-NEXT: popq %rax
96 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 8
97 ; X64-NOF16C-NEXT: retq
99 ; X64-F16C-LABEL: half_to_double:
101 ; X64-F16C-NEXT: movq a@GOTPCREL(%rip), %rax
102 ; X64-F16C-NEXT: movzwl (%rax), %eax
103 ; X64-F16C-NEXT: vmovd %eax, %xmm0
104 ; X64-F16C-NEXT: vcvtph2ps %xmm0, %xmm0
105 ; X64-F16C-NEXT: vcvtss2sd %xmm0, %xmm0, %xmm0
106 ; X64-F16C-NEXT: retq
107 %1 = load half, ptr @a, align 2
108 %2 = tail call double @llvm.experimental.constrained.fpext.f64.f16(half %1, metadata !"fpexcept.strict") #0
112 define x86_fp80 @half_to_fp80() strictfp {
113 ; X86-NOF16C-LABEL: half_to_fp80:
114 ; X86-NOF16C: # %bb.0:
115 ; X86-NOF16C-NEXT: subl $12, %esp
116 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 16
117 ; X86-NOF16C-NEXT: movzwl a, %eax
118 ; X86-NOF16C-NEXT: movl %eax, (%esp)
119 ; X86-NOF16C-NEXT: calll __gnu_h2f_ieee
120 ; X86-NOF16C-NEXT: addl $12, %esp
121 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 4
122 ; X86-NOF16C-NEXT: retl
124 ; X86-F16C-LABEL: half_to_fp80:
126 ; X86-F16C-NEXT: subl $12, %esp
127 ; X86-F16C-NEXT: .cfi_def_cfa_offset 16
128 ; X86-F16C-NEXT: vpinsrw $0, a, %xmm0, %xmm0
129 ; X86-F16C-NEXT: vpextrw $0, %xmm0, (%esp)
130 ; X86-F16C-NEXT: calll __extendhfxf2
131 ; X86-F16C-NEXT: addl $12, %esp
132 ; X86-F16C-NEXT: .cfi_def_cfa_offset 4
133 ; X86-F16C-NEXT: retl
135 ; X64-NOF16C-LABEL: half_to_fp80:
136 ; X64-NOF16C: # %bb.0:
137 ; X64-NOF16C-NEXT: pushq %rax
138 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 16
139 ; X64-NOF16C-NEXT: movq a@GOTPCREL(%rip), %rax
140 ; X64-NOF16C-NEXT: pinsrw $0, (%rax), %xmm0
141 ; X64-NOF16C-NEXT: callq __extendhfxf2@PLT
142 ; X64-NOF16C-NEXT: popq %rax
143 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 8
144 ; X64-NOF16C-NEXT: retq
146 ; X64-F16C-LABEL: half_to_fp80:
148 ; X64-F16C-NEXT: pushq %rax
149 ; X64-F16C-NEXT: .cfi_def_cfa_offset 16
150 ; X64-F16C-NEXT: movq a@GOTPCREL(%rip), %rax
151 ; X64-F16C-NEXT: vpinsrw $0, (%rax), %xmm0, %xmm0
152 ; X64-F16C-NEXT: callq __extendhfxf2@PLT
153 ; X64-F16C-NEXT: popq %rax
154 ; X64-F16C-NEXT: .cfi_def_cfa_offset 8
155 ; X64-F16C-NEXT: retq
156 %1 = load half, ptr @a, align 2
157 %2 = tail call x86_fp80 @llvm.experimental.constrained.fpext.f80.f16(half %1, metadata !"fpexcept.strict") #0
161 define void @float_to_half(float %0) strictfp {
162 ; X86-NOF16C-LABEL: float_to_half:
163 ; X86-NOF16C: # %bb.0:
164 ; X86-NOF16C-NEXT: subl $12, %esp
165 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 16
166 ; X86-NOF16C-NEXT: flds {{[0-9]+}}(%esp)
167 ; X86-NOF16C-NEXT: fstps (%esp)
168 ; X86-NOF16C-NEXT: wait
169 ; X86-NOF16C-NEXT: calll __gnu_f2h_ieee
170 ; X86-NOF16C-NEXT: movw %ax, a
171 ; X86-NOF16C-NEXT: addl $12, %esp
172 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 4
173 ; X86-NOF16C-NEXT: retl
175 ; X86-F16C-LABEL: float_to_half:
177 ; X86-F16C-NEXT: vmovss {{.*#+}} xmm0 = mem[0],zero,zero,zero
178 ; X86-F16C-NEXT: vcvtps2ph $4, %xmm0, %xmm0
179 ; X86-F16C-NEXT: vmovd %xmm0, %eax
180 ; X86-F16C-NEXT: movw %ax, a
181 ; X86-F16C-NEXT: retl
183 ; X64-NOF16C-LABEL: float_to_half:
184 ; X64-NOF16C: # %bb.0:
185 ; X64-NOF16C-NEXT: pushq %rax
186 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 16
187 ; X64-NOF16C-NEXT: callq __truncsfhf2@PLT
188 ; X64-NOF16C-NEXT: pextrw $0, %xmm0, %eax
189 ; X64-NOF16C-NEXT: movq a@GOTPCREL(%rip), %rcx
190 ; X64-NOF16C-NEXT: movw %ax, (%rcx)
191 ; X64-NOF16C-NEXT: popq %rax
192 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 8
193 ; X64-NOF16C-NEXT: retq
195 ; X64-F16C-LABEL: float_to_half:
197 ; X64-F16C-NEXT: vxorps %xmm1, %xmm1, %xmm1
198 ; X64-F16C-NEXT: vblendps {{.*#+}} xmm0 = xmm0[0],xmm1[1,2,3]
199 ; X64-F16C-NEXT: vcvtps2ph $4, %xmm0, %xmm0
200 ; X64-F16C-NEXT: vmovd %xmm0, %eax
201 ; X64-F16C-NEXT: movq a@GOTPCREL(%rip), %rcx
202 ; X64-F16C-NEXT: movw %ax, (%rcx)
203 ; X64-F16C-NEXT: retq
204 %2 = tail call half @llvm.experimental.constrained.fptrunc.f16.f32(float %0, metadata !"round.tonearest", metadata !"fpexcept.strict") #0
205 store half %2, ptr @a, align 2
209 define void @double_to_half(double %0) strictfp {
210 ; X86-NOF16C-LABEL: double_to_half:
211 ; X86-NOF16C: # %bb.0:
212 ; X86-NOF16C-NEXT: subl $12, %esp
213 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 16
214 ; X86-NOF16C-NEXT: fldl {{[0-9]+}}(%esp)
215 ; X86-NOF16C-NEXT: fstpl (%esp)
216 ; X86-NOF16C-NEXT: wait
217 ; X86-NOF16C-NEXT: calll __truncdfhf2
218 ; X86-NOF16C-NEXT: movw %ax, a
219 ; X86-NOF16C-NEXT: addl $12, %esp
220 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 4
221 ; X86-NOF16C-NEXT: retl
223 ; X86-F16C-LABEL: double_to_half:
225 ; X86-F16C-NEXT: subl $12, %esp
226 ; X86-F16C-NEXT: .cfi_def_cfa_offset 16
227 ; X86-F16C-NEXT: vmovq {{.*#+}} xmm0 = mem[0],zero
228 ; X86-F16C-NEXT: vmovq %xmm0, (%esp)
229 ; X86-F16C-NEXT: calll __truncdfhf2
230 ; X86-F16C-NEXT: vpextrw $0, %xmm0, a
231 ; X86-F16C-NEXT: addl $12, %esp
232 ; X86-F16C-NEXT: .cfi_def_cfa_offset 4
233 ; X86-F16C-NEXT: retl
235 ; X64-NOF16C-LABEL: double_to_half:
236 ; X64-NOF16C: # %bb.0:
237 ; X64-NOF16C-NEXT: pushq %rax
238 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 16
239 ; X64-NOF16C-NEXT: callq __truncdfhf2@PLT
240 ; X64-NOF16C-NEXT: pextrw $0, %xmm0, %eax
241 ; X64-NOF16C-NEXT: movq a@GOTPCREL(%rip), %rcx
242 ; X64-NOF16C-NEXT: movw %ax, (%rcx)
243 ; X64-NOF16C-NEXT: popq %rax
244 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 8
245 ; X64-NOF16C-NEXT: retq
247 ; X64-F16C-LABEL: double_to_half:
249 ; X64-F16C-NEXT: pushq %rax
250 ; X64-F16C-NEXT: .cfi_def_cfa_offset 16
251 ; X64-F16C-NEXT: callq __truncdfhf2@PLT
252 ; X64-F16C-NEXT: movq a@GOTPCREL(%rip), %rax
253 ; X64-F16C-NEXT: vpextrw $0, %xmm0, (%rax)
254 ; X64-F16C-NEXT: popq %rax
255 ; X64-F16C-NEXT: .cfi_def_cfa_offset 8
256 ; X64-F16C-NEXT: retq
257 %2 = tail call half @llvm.experimental.constrained.fptrunc.f16.f64(double %0, metadata !"round.tonearest", metadata !"fpexcept.strict") #0
258 store half %2, ptr @a, align 2
262 define void @fp80_to_half(x86_fp80 %0) strictfp {
263 ; X86-NOF16C-LABEL: fp80_to_half:
264 ; X86-NOF16C: # %bb.0:
265 ; X86-NOF16C-NEXT: subl $12, %esp
266 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 16
267 ; X86-NOF16C-NEXT: fldt {{[0-9]+}}(%esp)
268 ; X86-NOF16C-NEXT: fstpt (%esp)
269 ; X86-NOF16C-NEXT: wait
270 ; X86-NOF16C-NEXT: calll __truncxfhf2
271 ; X86-NOF16C-NEXT: movw %ax, a
272 ; X86-NOF16C-NEXT: addl $12, %esp
273 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 4
274 ; X86-NOF16C-NEXT: retl
276 ; X86-F16C-LABEL: fp80_to_half:
278 ; X86-F16C-NEXT: subl $12, %esp
279 ; X86-F16C-NEXT: .cfi_def_cfa_offset 16
280 ; X86-F16C-NEXT: fldt {{[0-9]+}}(%esp)
281 ; X86-F16C-NEXT: fstpt (%esp)
282 ; X86-F16C-NEXT: wait
283 ; X86-F16C-NEXT: calll __truncxfhf2
284 ; X86-F16C-NEXT: vpextrw $0, %xmm0, a
285 ; X86-F16C-NEXT: addl $12, %esp
286 ; X86-F16C-NEXT: .cfi_def_cfa_offset 4
287 ; X86-F16C-NEXT: retl
289 ; X64-NOF16C-LABEL: fp80_to_half:
290 ; X64-NOF16C: # %bb.0:
291 ; X64-NOF16C-NEXT: subq $24, %rsp
292 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 32
293 ; X64-NOF16C-NEXT: fldt {{[0-9]+}}(%rsp)
294 ; X64-NOF16C-NEXT: fstpt (%rsp)
295 ; X64-NOF16C-NEXT: wait
296 ; X64-NOF16C-NEXT: callq __truncxfhf2@PLT
297 ; X64-NOF16C-NEXT: pextrw $0, %xmm0, %eax
298 ; X64-NOF16C-NEXT: movq a@GOTPCREL(%rip), %rcx
299 ; X64-NOF16C-NEXT: movw %ax, (%rcx)
300 ; X64-NOF16C-NEXT: addq $24, %rsp
301 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 8
302 ; X64-NOF16C-NEXT: retq
304 ; X64-F16C-LABEL: fp80_to_half:
306 ; X64-F16C-NEXT: subq $24, %rsp
307 ; X64-F16C-NEXT: .cfi_def_cfa_offset 32
308 ; X64-F16C-NEXT: fldt {{[0-9]+}}(%rsp)
309 ; X64-F16C-NEXT: fstpt (%rsp)
310 ; X64-F16C-NEXT: wait
311 ; X64-F16C-NEXT: callq __truncxfhf2@PLT
312 ; X64-F16C-NEXT: movq a@GOTPCREL(%rip), %rax
313 ; X64-F16C-NEXT: vpextrw $0, %xmm0, (%rax)
314 ; X64-F16C-NEXT: addq $24, %rsp
315 ; X64-F16C-NEXT: .cfi_def_cfa_offset 8
316 ; X64-F16C-NEXT: retq
317 %2 = tail call half @llvm.experimental.constrained.fptrunc.f16.f80(x86_fp80 %0, metadata !"round.tonearest", metadata !"fpexcept.strict") #0
318 store half %2, ptr @a, align 2
322 define void @add() strictfp {
323 ; X86-NOF16C-LABEL: add:
324 ; X86-NOF16C: # %bb.0:
325 ; X86-NOF16C-NEXT: subl $12, %esp
326 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 16
327 ; X86-NOF16C-NEXT: movzwl a, %eax
328 ; X86-NOF16C-NEXT: movl %eax, (%esp)
329 ; X86-NOF16C-NEXT: calll __gnu_h2f_ieee
330 ; X86-NOF16C-NEXT: fstps {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Spill
331 ; X86-NOF16C-NEXT: wait
332 ; X86-NOF16C-NEXT: movzwl b, %eax
333 ; X86-NOF16C-NEXT: movl %eax, (%esp)
334 ; X86-NOF16C-NEXT: calll __gnu_h2f_ieee
335 ; X86-NOF16C-NEXT: flds {{[-0-9]+}}(%e{{[sb]}}p) # 4-byte Folded Reload
336 ; X86-NOF16C-NEXT: faddp %st, %st(1)
337 ; X86-NOF16C-NEXT: fstps (%esp)
338 ; X86-NOF16C-NEXT: wait
339 ; X86-NOF16C-NEXT: calll __gnu_f2h_ieee
340 ; X86-NOF16C-NEXT: movw %ax, c
341 ; X86-NOF16C-NEXT: addl $12, %esp
342 ; X86-NOF16C-NEXT: .cfi_def_cfa_offset 4
343 ; X86-NOF16C-NEXT: retl
345 ; X86-F16C-LABEL: add:
347 ; X86-F16C-NEXT: movzwl a, %eax
348 ; X86-F16C-NEXT: vmovd %eax, %xmm0
349 ; X86-F16C-NEXT: vcvtph2ps %xmm0, %xmm0
350 ; X86-F16C-NEXT: movzwl b, %eax
351 ; X86-F16C-NEXT: vmovd %eax, %xmm1
352 ; X86-F16C-NEXT: vcvtph2ps %xmm1, %xmm1
353 ; X86-F16C-NEXT: vaddss %xmm1, %xmm0, %xmm0
354 ; X86-F16C-NEXT: vxorps %xmm1, %xmm1, %xmm1
355 ; X86-F16C-NEXT: vblendps {{.*#+}} xmm0 = xmm0[0],xmm1[1,2,3]
356 ; X86-F16C-NEXT: vcvtps2ph $4, %xmm0, %xmm0
357 ; X86-F16C-NEXT: vmovd %xmm0, %eax
358 ; X86-F16C-NEXT: movw %ax, c
359 ; X86-F16C-NEXT: retl
361 ; X64-NOF16C-LABEL: add:
362 ; X64-NOF16C: # %bb.0:
363 ; X64-NOF16C-NEXT: pushq %rax
364 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 16
365 ; X64-NOF16C-NEXT: movq a@GOTPCREL(%rip), %rax
366 ; X64-NOF16C-NEXT: pinsrw $0, (%rax), %xmm0
367 ; X64-NOF16C-NEXT: callq __extendhfsf2@PLT
368 ; X64-NOF16C-NEXT: movd %xmm0, {{[-0-9]+}}(%r{{[sb]}}p) # 4-byte Folded Spill
369 ; X64-NOF16C-NEXT: movq b@GOTPCREL(%rip), %rax
370 ; X64-NOF16C-NEXT: pinsrw $0, (%rax), %xmm0
371 ; X64-NOF16C-NEXT: callq __extendhfsf2@PLT
372 ; X64-NOF16C-NEXT: addss {{[-0-9]+}}(%r{{[sb]}}p), %xmm0 # 4-byte Folded Reload
373 ; X64-NOF16C-NEXT: callq __truncsfhf2@PLT
374 ; X64-NOF16C-NEXT: pextrw $0, %xmm0, %eax
375 ; X64-NOF16C-NEXT: movq c@GOTPCREL(%rip), %rcx
376 ; X64-NOF16C-NEXT: movw %ax, (%rcx)
377 ; X64-NOF16C-NEXT: popq %rax
378 ; X64-NOF16C-NEXT: .cfi_def_cfa_offset 8
379 ; X64-NOF16C-NEXT: retq
381 ; X64-F16C-LABEL: add:
383 ; X64-F16C-NEXT: movq a@GOTPCREL(%rip), %rax
384 ; X64-F16C-NEXT: movzwl (%rax), %eax
385 ; X64-F16C-NEXT: vmovd %eax, %xmm0
386 ; X64-F16C-NEXT: vcvtph2ps %xmm0, %xmm0
387 ; X64-F16C-NEXT: movq b@GOTPCREL(%rip), %rax
388 ; X64-F16C-NEXT: movzwl (%rax), %eax
389 ; X64-F16C-NEXT: vmovd %eax, %xmm1
390 ; X64-F16C-NEXT: vcvtph2ps %xmm1, %xmm1
391 ; X64-F16C-NEXT: vaddss %xmm1, %xmm0, %xmm0
392 ; X64-F16C-NEXT: vxorps %xmm1, %xmm1, %xmm1
393 ; X64-F16C-NEXT: vblendps {{.*#+}} xmm0 = xmm0[0],xmm1[1,2,3]
394 ; X64-F16C-NEXT: vcvtps2ph $4, %xmm0, %xmm0
395 ; X64-F16C-NEXT: vmovd %xmm0, %eax
396 ; X64-F16C-NEXT: movq c@GOTPCREL(%rip), %rcx
397 ; X64-F16C-NEXT: movw %ax, (%rcx)
398 ; X64-F16C-NEXT: retq
399 %1 = load half, ptr @a, align 2
400 %2 = tail call float @llvm.experimental.constrained.fpext.f32.f16(half %1, metadata !"fpexcept.strict") #0
401 %3 = load half, ptr @b, align 2
402 %4 = tail call float @llvm.experimental.constrained.fpext.f32.f16(half %3, metadata !"fpexcept.strict") #0
403 %5 = tail call float @llvm.experimental.constrained.fadd.f32(float %2, float %4, metadata !"round.tonearest", metadata !"fpexcept.strict") #0
404 %6 = tail call half @llvm.experimental.constrained.fptrunc.f16.f32(float %5, metadata !"round.tonearest", metadata !"fpexcept.strict") #0
405 store half %6, ptr @c, align 2
409 declare float @llvm.experimental.constrained.fpext.f32.f16(half, metadata)
410 declare double @llvm.experimental.constrained.fpext.f64.f16(half, metadata)
411 declare x86_fp80 @llvm.experimental.constrained.fpext.f80.f16(half, metadata)
412 declare float @llvm.experimental.constrained.fadd.f32(float, float, metadata, metadata)
413 declare half @llvm.experimental.constrained.fptrunc.f16.f32(float, metadata, metadata)
414 declare half @llvm.experimental.constrained.fptrunc.f16.f64(double, metadata, metadata)
415 declare half @llvm.experimental.constrained.fptrunc.f16.f80(x86_fp80, metadata, metadata)
417 attributes #0 = { strictfp }