gcc/testsuite/gcc.target/i386/avx512fp16-vcvttsh2si-1a.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-mavx512fp16 -O2" } */ |
| 3 | /* { dg-final { scan-assembler-times "vcvttsh2si\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e\[ad]x" 1 } } */ |
| 4 | /* { dg-final { scan-assembler-times "vcvttsh2si\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%e\[ad]x" 1 } } */ |
| 5 | |
| 6 | #include <immintrin.h> |
| 7 | |
| 8 | volatile __m128h x1; |
| 9 | volatile int res1; |
| 10 | |
| 11 | void extern |
| 12 | avx512f_test (void) |
| 13 | { |
| 14 | res1 = _mm_cvttsh_i32 (x1); |
| 15 | res1 = _mm_cvtt_roundsh_i32 (x1, 8); |
| 16 | } |