1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
2 ; RUN: opt -aa-pipeline=basic-aa -passes=attributor -attributor-manifest-internal -S < %s | FileCheck %s --check-prefixes=CHECK,TUNIT
4 define double @ret_fpext_f32_to_f64(float %arg0) {
5 ; CHECK-LABEL: define nofpclass(sub) double @ret_fpext_f32_to_f64
6 ; CHECK-SAME: (float nofpclass(sub) [[ARG0:%.*]]) #[[ATTR0:[0-9]+]] {
7 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
8 ; CHECK-NEXT: ret double [[EXT]]
10 %ext = fpext float %arg0 to double
14 define <2 x double> @ret_fpext_v2f32_to_v2f64(<2 x float> %arg0) {
15 ; CHECK-LABEL: define nofpclass(sub) <2 x double> @ret_fpext_v2f32_to_v2f64
16 ; CHECK-SAME: (<2 x float> nofpclass(sub) [[ARG0:%.*]]) #[[ATTR0]] {
17 ; CHECK-NEXT: [[EXT:%.*]] = fpext <2 x float> [[ARG0]] to <2 x double>
18 ; CHECK-NEXT: ret <2 x double> [[EXT]]
20 %ext = fpext <2 x float> %arg0 to <2 x double>
24 define double @ret_fpext_f32_to_f64_nonan(float nofpclass(nan) %arg0) {
25 ; CHECK-LABEL: define nofpclass(nan sub) double @ret_fpext_f32_to_f64_nonan
26 ; CHECK-SAME: (float nofpclass(nan sub) [[ARG0:%.*]]) #[[ATTR0]] {
27 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
28 ; CHECK-NEXT: ret double [[EXT]]
30 %ext = fpext float %arg0 to double
34 define <2 x double> @ret_fpext_v2f32_to_v2f64_nonan(<2 x float> nofpclass(nan) %arg0) {
35 ; CHECK-LABEL: define nofpclass(nan sub) <2 x double> @ret_fpext_v2f32_to_v2f64_nonan
36 ; CHECK-SAME: (<2 x float> nofpclass(nan sub) [[ARG0:%.*]]) #[[ATTR0]] {
37 ; CHECK-NEXT: [[EXT:%.*]] = fpext <2 x float> [[ARG0]] to <2 x double>
38 ; CHECK-NEXT: ret <2 x double> [[EXT]]
40 %ext = fpext <2 x float> %arg0 to <2 x double>
44 define double @ret_fpext_f32_to_f64_noqnan(float nofpclass(qnan) %arg0) {
45 ; CHECK-LABEL: define nofpclass(qnan sub) double @ret_fpext_f32_to_f64_noqnan
46 ; CHECK-SAME: (float nofpclass(qnan sub) [[ARG0:%.*]]) #[[ATTR0]] {
47 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
48 ; CHECK-NEXT: ret double [[EXT]]
50 %ext = fpext float %arg0 to double
54 define double @ret_fpext_f32_to_f64_nosnan(float nofpclass(snan) %arg0) {
55 ; CHECK-LABEL: define nofpclass(snan sub) double @ret_fpext_f32_to_f64_nosnan
56 ; CHECK-SAME: (float nofpclass(snan sub) [[ARG0:%.*]]) #[[ATTR0]] {
57 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
58 ; CHECK-NEXT: ret double [[EXT]]
60 %ext = fpext float %arg0 to double
64 define double @ret_fpext_f32_to_f64_noinf(float nofpclass(inf) %arg0) {
65 ; CHECK-LABEL: define nofpclass(inf sub) double @ret_fpext_f32_to_f64_noinf
66 ; CHECK-SAME: (float nofpclass(inf sub) [[ARG0:%.*]]) #[[ATTR0]] {
67 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
68 ; CHECK-NEXT: ret double [[EXT]]
70 %ext = fpext float %arg0 to double
74 define double @ret_fpext_f32_to_f64_nopinf(float nofpclass(pinf) %arg0) {
75 ; CHECK-LABEL: define nofpclass(pinf sub) double @ret_fpext_f32_to_f64_nopinf
76 ; CHECK-SAME: (float nofpclass(pinf sub) [[ARG0:%.*]]) #[[ATTR0]] {
77 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
78 ; CHECK-NEXT: ret double [[EXT]]
80 %ext = fpext float %arg0 to double
84 define double @ret_fpext_f32_to_f64_noninf(float nofpclass(ninf) %arg0) {
85 ; CHECK-LABEL: define nofpclass(ninf sub) double @ret_fpext_f32_to_f64_noninf
86 ; CHECK-SAME: (float nofpclass(ninf sub) [[ARG0:%.*]]) #[[ATTR0]] {
87 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
88 ; CHECK-NEXT: ret double [[EXT]]
90 %ext = fpext float %arg0 to double
94 define double @ret_fpext_f32_to_f64_nozero(float nofpclass(zero) %arg0) {
95 ; CHECK-LABEL: define nofpclass(zero sub) double @ret_fpext_f32_to_f64_nozero
96 ; CHECK-SAME: (float nofpclass(zero sub) [[ARG0:%.*]]) #[[ATTR0]] {
97 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
98 ; CHECK-NEXT: ret double [[EXT]]
100 %ext = fpext float %arg0 to double
104 define double @ret_fpext_f32_to_f64_nopzero(float nofpclass(pzero) %arg0) {
105 ; CHECK-LABEL: define nofpclass(pzero sub) double @ret_fpext_f32_to_f64_nopzero
106 ; CHECK-SAME: (float nofpclass(pzero sub) [[ARG0:%.*]]) #[[ATTR0]] {
107 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
108 ; CHECK-NEXT: ret double [[EXT]]
110 %ext = fpext float %arg0 to double
114 define double @ret_fpext_f32_to_f64_nonzero(float nofpclass(nzero) %arg0) {
115 ; CHECK-LABEL: define nofpclass(nzero sub) double @ret_fpext_f32_to_f64_nonzero
116 ; CHECK-SAME: (float nofpclass(nzero sub) [[ARG0:%.*]]) #[[ATTR0]] {
117 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
118 ; CHECK-NEXT: ret double [[EXT]]
120 %ext = fpext float %arg0 to double
124 define double @ret_fpext_f32_to_f64_nonan_noinf(float nofpclass(nan inf) %arg0) {
125 ; CHECK-LABEL: define nofpclass(nan inf sub) double @ret_fpext_f32_to_f64_nonan_noinf
126 ; CHECK-SAME: (float nofpclass(nan inf sub) [[ARG0:%.*]]) #[[ATTR0]] {
127 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
128 ; CHECK-NEXT: ret double [[EXT]]
130 %ext = fpext float %arg0 to double
134 define double @ret_fpext_f32_to_f64_nosub(float nofpclass(sub) %arg0) {
135 ; CHECK-LABEL: define nofpclass(sub) double @ret_fpext_f32_to_f64_nosub
136 ; CHECK-SAME: (float nofpclass(sub) [[ARG0:%.*]]) #[[ATTR0]] {
137 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
138 ; CHECK-NEXT: ret double [[EXT]]
140 %ext = fpext float %arg0 to double
144 define double @ret_fpext_f32_to_f64_nonorm(float nofpclass(norm) %arg0) {
145 ; CHECK-LABEL: define nofpclass(sub norm) double @ret_fpext_f32_to_f64_nonorm
146 ; CHECK-SAME: (float nofpclass(sub norm) [[ARG0:%.*]]) #[[ATTR0]] {
147 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
148 ; CHECK-NEXT: ret double [[EXT]]
150 %ext = fpext float %arg0 to double
154 define double @ret_fpext_f32_to_f64_negonly_zero(float nofpclass(pinf pnorm psub pzero) %arg0) {
155 ; CHECK-LABEL: define nofpclass(pinf pzero sub pnorm) double @ret_fpext_f32_to_f64_negonly_zero
156 ; CHECK-SAME: (float nofpclass(pinf pzero sub pnorm) [[ARG0:%.*]]) #[[ATTR0]] {
157 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
158 ; CHECK-NEXT: ret double [[EXT]]
160 %ext = fpext float %arg0 to double
164 define double @ret_fpext_f32_to_f64_negonly(float nofpclass(pinf pnorm psub) %arg0) {
165 ; CHECK-LABEL: define nofpclass(pinf sub pnorm) double @ret_fpext_f32_to_f64_negonly
166 ; CHECK-SAME: (float nofpclass(pinf sub pnorm) [[ARG0:%.*]]) #[[ATTR0]] {
167 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
168 ; CHECK-NEXT: ret double [[EXT]]
170 %ext = fpext float %arg0 to double
174 define double @ret_fpext_f32_to_f64_negonly_ord(float nofpclass(pinf pnorm psub pzero nan) %arg0) {
175 ; CHECK-LABEL: define nofpclass(nan pinf pzero sub pnorm) double @ret_fpext_f32_to_f64_negonly_ord
176 ; CHECK-SAME: (float nofpclass(nan pinf pzero sub pnorm) [[ARG0:%.*]]) #[[ATTR0]] {
177 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
178 ; CHECK-NEXT: ret double [[EXT]]
180 %ext = fpext float %arg0 to double
184 define double @ret_fpext_f32_to_f64_posonly_zero(float nofpclass(ninf nnorm nsub nzero) %arg0) {
185 ; CHECK-LABEL: define nofpclass(ninf nzero sub nnorm) double @ret_fpext_f32_to_f64_posonly_zero
186 ; CHECK-SAME: (float nofpclass(ninf nzero sub nnorm) [[ARG0:%.*]]) #[[ATTR0]] {
187 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
188 ; CHECK-NEXT: ret double [[EXT]]
190 %ext = fpext float %arg0 to double
194 define double @ret_fpext_f32_to_f64_posonly(float nofpclass(ninf nnorm nsub) %arg0) {
195 ; CHECK-LABEL: define nofpclass(ninf sub nnorm) double @ret_fpext_f32_to_f64_posonly
196 ; CHECK-SAME: (float nofpclass(ninf sub nnorm) [[ARG0:%.*]]) #[[ATTR0]] {
197 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
198 ; CHECK-NEXT: ret double [[EXT]]
200 %ext = fpext float %arg0 to double
204 define double @ret_fpext_f32_to_f64_posonly_nan(float nofpclass(ninf nnorm nsub nzero nan) %arg0) {
205 ; CHECK-LABEL: define nofpclass(nan ninf nzero sub nnorm) double @ret_fpext_f32_to_f64_posonly_nan
206 ; CHECK-SAME: (float nofpclass(nan ninf nzero sub nnorm) [[ARG0:%.*]]) #[[ATTR0]] {
207 ; CHECK-NEXT: [[EXT:%.*]] = fpext float [[ARG0]] to double
208 ; CHECK-NEXT: ret double [[EXT]]
210 %ext = fpext float %arg0 to double
214 define float @ret_fpext_bf16_f32(bfloat %arg0) {
215 ; CHECK-LABEL: define float @ret_fpext_bf16_f32
216 ; CHECK-SAME: (bfloat [[ARG0:%.*]]) #[[ATTR0]] {
217 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
218 ; CHECK-NEXT: ret float [[EXT]]
220 %ext = fpext bfloat %arg0 to float
224 define <2 x float> @ret_fpext_v2bf16_v2f32(<2 x bfloat> %arg0) {
225 ; CHECK-LABEL: define <2 x float> @ret_fpext_v2bf16_v2f32
226 ; CHECK-SAME: (<2 x bfloat> [[ARG0:%.*]]) #[[ATTR0]] {
227 ; CHECK-NEXT: [[EXT:%.*]] = fpext <2 x bfloat> [[ARG0]] to <2 x float>
228 ; CHECK-NEXT: ret <2 x float> [[EXT]]
230 %ext = fpext <2 x bfloat> %arg0 to <2 x float>
234 define float @ret_fpext_bf16_f32_nonan(bfloat nofpclass(nan) %arg0) {
235 ; CHECK-LABEL: define nofpclass(nan) float @ret_fpext_bf16_f32_nonan
236 ; CHECK-SAME: (bfloat nofpclass(nan) [[ARG0:%.*]]) #[[ATTR0]] {
237 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
238 ; CHECK-NEXT: ret float [[EXT]]
240 %ext = fpext bfloat %arg0 to float
244 define <2 x float> @ret_fpext_v2bf16_v2f32_nonan(<2 x bfloat> nofpclass(nan) %arg0) {
245 ; CHECK-LABEL: define nofpclass(nan) <2 x float> @ret_fpext_v2bf16_v2f32_nonan
246 ; CHECK-SAME: (<2 x bfloat> nofpclass(nan) [[ARG0:%.*]]) #[[ATTR0]] {
247 ; CHECK-NEXT: [[EXT:%.*]] = fpext <2 x bfloat> [[ARG0]] to <2 x float>
248 ; CHECK-NEXT: ret <2 x float> [[EXT]]
250 %ext = fpext <2 x bfloat> %arg0 to <2 x float>
254 define float @ret_fpext_bf16_f32_noqnan(bfloat nofpclass(qnan) %arg0) {
255 ; CHECK-LABEL: define nofpclass(qnan) float @ret_fpext_bf16_f32_noqnan
256 ; CHECK-SAME: (bfloat nofpclass(qnan) [[ARG0:%.*]]) #[[ATTR0]] {
257 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
258 ; CHECK-NEXT: ret float [[EXT]]
260 %ext = fpext bfloat %arg0 to float
264 define float @ret_fpext_bf16_f32_nosnan(bfloat nofpclass(snan) %arg0) {
265 ; CHECK-LABEL: define nofpclass(snan) float @ret_fpext_bf16_f32_nosnan
266 ; CHECK-SAME: (bfloat nofpclass(snan) [[ARG0:%.*]]) #[[ATTR0]] {
267 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
268 ; CHECK-NEXT: ret float [[EXT]]
270 %ext = fpext bfloat %arg0 to float
274 define float @ret_fpext_bf16_f32_noinf(bfloat nofpclass(inf) %arg0) {
275 ; CHECK-LABEL: define nofpclass(inf) float @ret_fpext_bf16_f32_noinf
276 ; CHECK-SAME: (bfloat nofpclass(inf) [[ARG0:%.*]]) #[[ATTR0]] {
277 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
278 ; CHECK-NEXT: ret float [[EXT]]
280 %ext = fpext bfloat %arg0 to float
284 define float @ret_fpext_bf16_f32_nopinf(bfloat nofpclass(pinf) %arg0) {
285 ; CHECK-LABEL: define nofpclass(pinf) float @ret_fpext_bf16_f32_nopinf
286 ; CHECK-SAME: (bfloat nofpclass(pinf) [[ARG0:%.*]]) #[[ATTR0]] {
287 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
288 ; CHECK-NEXT: ret float [[EXT]]
290 %ext = fpext bfloat %arg0 to float
294 define float @ret_fpext_bf16_f32_noninf(bfloat nofpclass(ninf) %arg0) {
295 ; CHECK-LABEL: define nofpclass(ninf) float @ret_fpext_bf16_f32_noninf
296 ; CHECK-SAME: (bfloat nofpclass(ninf) [[ARG0:%.*]]) #[[ATTR0]] {
297 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
298 ; CHECK-NEXT: ret float [[EXT]]
300 %ext = fpext bfloat %arg0 to float
304 define float @ret_fpext_bf16_f32_nozero(bfloat nofpclass(zero) %arg0) {
305 ; CHECK-LABEL: define nofpclass(zero) float @ret_fpext_bf16_f32_nozero
306 ; CHECK-SAME: (bfloat nofpclass(zero) [[ARG0:%.*]]) #[[ATTR0]] {
307 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
308 ; CHECK-NEXT: ret float [[EXT]]
310 %ext = fpext bfloat %arg0 to float
314 define float @ret_fpext_bf16_f32_nopzero(bfloat nofpclass(pzero) %arg0) {
315 ; CHECK-LABEL: define nofpclass(pzero) float @ret_fpext_bf16_f32_nopzero
316 ; CHECK-SAME: (bfloat nofpclass(pzero) [[ARG0:%.*]]) #[[ATTR0]] {
317 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
318 ; CHECK-NEXT: ret float [[EXT]]
320 %ext = fpext bfloat %arg0 to float
324 define float @ret_fpext_bf16_f32_nonzero(bfloat nofpclass(nzero) %arg0) {
325 ; CHECK-LABEL: define nofpclass(nzero) float @ret_fpext_bf16_f32_nonzero
326 ; CHECK-SAME: (bfloat nofpclass(nzero) [[ARG0:%.*]]) #[[ATTR0]] {
327 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
328 ; CHECK-NEXT: ret float [[EXT]]
330 %ext = fpext bfloat %arg0 to float
334 define float @ret_fpext_bf16_f32_nonan_noinf(bfloat nofpclass(nan inf) %arg0) {
335 ; CHECK-LABEL: define nofpclass(nan inf) float @ret_fpext_bf16_f32_nonan_noinf
336 ; CHECK-SAME: (bfloat nofpclass(nan inf) [[ARG0:%.*]]) #[[ATTR0]] {
337 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
338 ; CHECK-NEXT: ret float [[EXT]]
340 %ext = fpext bfloat %arg0 to float
344 define float @ret_fpext_bf16_f32_nosub(bfloat nofpclass(sub) %arg0) {
345 ; CHECK-LABEL: define nofpclass(sub) float @ret_fpext_bf16_f32_nosub
346 ; CHECK-SAME: (bfloat nofpclass(sub) [[ARG0:%.*]]) #[[ATTR0]] {
347 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
348 ; CHECK-NEXT: ret float [[EXT]]
350 %ext = fpext bfloat %arg0 to float
354 define float @ret_fpext_bf16_f32_nonorm(bfloat nofpclass(norm) %arg0) {
355 ; CHECK-LABEL: define nofpclass(norm) float @ret_fpext_bf16_f32_nonorm
356 ; CHECK-SAME: (bfloat nofpclass(norm) [[ARG0:%.*]]) #[[ATTR0]] {
357 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to float
358 ; CHECK-NEXT: ret float [[EXT]]
360 %ext = fpext bfloat %arg0 to float
364 define double @ret_fpext_bf16_f64(bfloat %arg0) {
365 ; CHECK-LABEL: define nofpclass(sub) double @ret_fpext_bf16_f64
366 ; CHECK-SAME: (bfloat nofpclass(sub) [[ARG0:%.*]]) #[[ATTR0]] {
367 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
368 ; CHECK-NEXT: ret double [[EXT]]
370 %ext = fpext bfloat %arg0 to double
374 define double @ret_fpext_bf16_f64_nonan(bfloat nofpclass(nan) %arg0) {
375 ; CHECK-LABEL: define nofpclass(nan sub) double @ret_fpext_bf16_f64_nonan
376 ; CHECK-SAME: (bfloat nofpclass(nan sub) [[ARG0:%.*]]) #[[ATTR0]] {
377 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
378 ; CHECK-NEXT: ret double [[EXT]]
380 %ext = fpext bfloat %arg0 to double
384 define double @ret_fpext_bf16_f64_noqnan(bfloat nofpclass(qnan) %arg0) {
385 ; CHECK-LABEL: define nofpclass(qnan sub) double @ret_fpext_bf16_f64_noqnan
386 ; CHECK-SAME: (bfloat nofpclass(qnan sub) [[ARG0:%.*]]) #[[ATTR0]] {
387 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
388 ; CHECK-NEXT: ret double [[EXT]]
390 %ext = fpext bfloat %arg0 to double
394 define double @ret_fpext_bf16_f64_nosnan(bfloat nofpclass(snan) %arg0) {
395 ; CHECK-LABEL: define nofpclass(snan sub) double @ret_fpext_bf16_f64_nosnan
396 ; CHECK-SAME: (bfloat nofpclass(snan sub) [[ARG0:%.*]]) #[[ATTR0]] {
397 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
398 ; CHECK-NEXT: ret double [[EXT]]
400 %ext = fpext bfloat %arg0 to double
404 define double @ret_fpext_bf16_f64_noinf(bfloat nofpclass(inf) %arg0) {
405 ; CHECK-LABEL: define nofpclass(inf sub) double @ret_fpext_bf16_f64_noinf
406 ; CHECK-SAME: (bfloat nofpclass(inf sub) [[ARG0:%.*]]) #[[ATTR0]] {
407 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
408 ; CHECK-NEXT: ret double [[EXT]]
410 %ext = fpext bfloat %arg0 to double
414 define double @ret_fpext_bf16_f64_nopinf(bfloat nofpclass(pinf) %arg0) {
415 ; CHECK-LABEL: define nofpclass(pinf sub) double @ret_fpext_bf16_f64_nopinf
416 ; CHECK-SAME: (bfloat nofpclass(pinf sub) [[ARG0:%.*]]) #[[ATTR0]] {
417 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
418 ; CHECK-NEXT: ret double [[EXT]]
420 %ext = fpext bfloat %arg0 to double
424 define double @ret_fpext_bf16_f64_noninf(bfloat nofpclass(ninf) %arg0) {
425 ; CHECK-LABEL: define nofpclass(ninf sub) double @ret_fpext_bf16_f64_noninf
426 ; CHECK-SAME: (bfloat nofpclass(ninf sub) [[ARG0:%.*]]) #[[ATTR0]] {
427 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
428 ; CHECK-NEXT: ret double [[EXT]]
430 %ext = fpext bfloat %arg0 to double
434 define double @ret_fpext_bf16_f64_nozero(bfloat nofpclass(zero) %arg0) {
435 ; CHECK-LABEL: define nofpclass(zero sub) double @ret_fpext_bf16_f64_nozero
436 ; CHECK-SAME: (bfloat nofpclass(zero sub) [[ARG0:%.*]]) #[[ATTR0]] {
437 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
438 ; CHECK-NEXT: ret double [[EXT]]
440 %ext = fpext bfloat %arg0 to double
444 define double @ret_fpext_bf16_f64_nopzero(bfloat nofpclass(pzero) %arg0) {
445 ; CHECK-LABEL: define nofpclass(pzero sub) double @ret_fpext_bf16_f64_nopzero
446 ; CHECK-SAME: (bfloat nofpclass(pzero sub) [[ARG0:%.*]]) #[[ATTR0]] {
447 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
448 ; CHECK-NEXT: ret double [[EXT]]
450 %ext = fpext bfloat %arg0 to double
454 define double @ret_fpext_bf16_f64_nonzero(bfloat nofpclass(nzero) %arg0) {
455 ; CHECK-LABEL: define nofpclass(nzero sub) double @ret_fpext_bf16_f64_nonzero
456 ; CHECK-SAME: (bfloat nofpclass(nzero sub) [[ARG0:%.*]]) #[[ATTR0]] {
457 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
458 ; CHECK-NEXT: ret double [[EXT]]
460 %ext = fpext bfloat %arg0 to double
464 define double @ret_fpext_bf16_f64_nonan_noinf(bfloat nofpclass(nan inf) %arg0) {
465 ; CHECK-LABEL: define nofpclass(nan inf sub) double @ret_fpext_bf16_f64_nonan_noinf
466 ; CHECK-SAME: (bfloat nofpclass(nan inf sub) [[ARG0:%.*]]) #[[ATTR0]] {
467 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
468 ; CHECK-NEXT: ret double [[EXT]]
470 %ext = fpext bfloat %arg0 to double
474 define double @ret_fpext_bf16_f64_nosub(bfloat nofpclass(sub) %arg0) {
475 ; CHECK-LABEL: define nofpclass(sub) double @ret_fpext_bf16_f64_nosub
476 ; CHECK-SAME: (bfloat nofpclass(sub) [[ARG0:%.*]]) #[[ATTR0]] {
477 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
478 ; CHECK-NEXT: ret double [[EXT]]
480 %ext = fpext bfloat %arg0 to double
484 define double @ret_fpext_bf16_f64_nonorm(bfloat nofpclass(norm) %arg0) {
485 ; CHECK-LABEL: define nofpclass(sub norm) double @ret_fpext_bf16_f64_nonorm
486 ; CHECK-SAME: (bfloat nofpclass(sub norm) [[ARG0:%.*]]) #[[ATTR0]] {
487 ; CHECK-NEXT: [[EXT:%.*]] = fpext bfloat [[ARG0]] to double
488 ; CHECK-NEXT: ret double [[EXT]]
490 %ext = fpext bfloat %arg0 to double
493 ;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: