blob: 7d00867247e91fad74fc5a2538903e385ecd3e37 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-mavx512fp16 -O2" } */
/* { dg-final { scan-assembler-times "vcvtsh2usi\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%eax" 1 } } */
/* { dg-final { scan-assembler-times "vcvtsh2usi\[ \\t\]+\{rn-sae\}\[^\{\n\]*%xmm\[0-9\]+\[^\n\r]*%eax" 1 } } */
#include <immintrin.h>
volatile __m128h x1;
volatile unsigned int res1;
void extern
avx512f_test (void)
{
res1 = _mm_cvtsh_u32 (x1);
res1 = _mm_cvt_roundsh_u32 (x1, 8);
}