Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vcvtss2usi-1.c
blobcc3bfcebebc5cf4babd29e52a1a676b79ad4a115
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512f" } */
3 /* { dg-final { scan-assembler-times "vcvtss2usi\[ \\t\]+\[^\n\]*%xmm\[0-9\]" 2 } } */
4 /* { dg-final { scan-assembler-times "vcvtss2usi\[ \\t\]+\[^\n\]*\{rd-sae\}\[^\n\]*%xmm\[0-9\]" 1 } } */
5 #include <immintrin.h>
7 volatile __m128 x;
8 volatile unsigned y;
10 void extern
11 avx512f_test (void)
13 y = _mm_cvtss_u32 (x);
14 y = _mm_cvt_roundss_u32 (x, _MM_FROUND_TO_NEG_INF | _MM_FROUND_NO_EXC);