1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512f" } */
3 /* { dg-final { scan-assembler-times "vcvttss2usi\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+.{6}(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vcvttss2usi\[ \\t\]+\[^\{\n\]*\{sae\}\[^\n\]*%xmm\[0-9\]+.{6}(?:\n|\[ \\t\]+#)" 1 } } */
5 #include <immintrin.h>
6 
7 volatile __m128 x;
8 volatile unsigned y;
9 
10 void extern
avx512f_test(void)11 avx512f_test (void)
12 {
13   y = _mm_cvttss_u32 (x);
14   y = _mm_cvtt_roundss_u32 (x, _MM_FROUND_NO_EXC);
15 }
16