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