gcc/testsuite/gcc.target/i386/extendbfsf.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-mavx512bf16 -mavx512vl -O2 -ffast-math" } */ |
| 3 | /* { dg-final { scan-assembler-times "pslld" 1 } } */ |
| 4 | /* { dg-final { scan-assembler-times "vcvtneps2bf16" 1 } } */ |
| 5 | |
| 6 | float |
| 7 | extendsfbf (__bf16 a) |
| 8 | { |
| 9 | return a; |
| 10 | } |
| 11 | |
| 12 | __bf16 |
| 13 | truncsfbf (float a) |
| 14 | { |
| 15 | return a; |
| 16 | } |