blob: 363252d8d5d2643061ad44e6729fe159f7cac942 [file] [log] [blame]
/* { dg-do compile { target { ! ia32 } } } */
/* { dg-options "-mavx512fp16 -O2 " } */
/* { dg-final { scan-assembler-times "vcvtsh2usi\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%rax" 1 } } */
/* { dg-final { scan-assembler-times "vcvtsh2usi\[ \\t\]+\{rz-sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%rax" 1 } } */
#include <immintrin.h>
volatile __m128h x1;
volatile unsigned long long res2;
void extern
avx512f_test (void)
{
res2 = _mm_cvtsh_u64 (x1);
res2 = _mm_cvt_roundsh_u64 (x1, 11);
}