| 1 |
/* { dg-do compile { target { ! ia32 } } } */ |
| 2 |
/* { dg-options "-mavx512fp16 -O2" } */ |
| 3 |
/* { dg-final { scan-assembler-times "vcvttsh2si\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%rax" 1 } } */ |
| 4 |
/* { dg-final { scan-assembler-times "vcvttsh2si\[ \\t\]+\{sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%rax" 1 } } */ |
| 5 |
|
| 6 |
#include <immintrin.h> |
| 7 |
|
| 8 |
volatile __m128h x1; |
| 9 |
volatile long long res2; |
| 10 |
|
| 11 |
void extern |
| 12 |
avx512f_test (void) |
| 13 |
{ |
| 14 |
res2 = _mm_cvttsh_i64 (x1); |
| 15 |
res2 = _mm_cvtt_roundsh_i64 (x1, 8); |
| 16 |
} |