Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vcvttsd2si64-1.c
bloba3b870c1004db3cc9ac950961188d6be21088449
1 /* { dg-do compile { target { ! { ia32 } } } } */
2 /* { dg-options "-O2 -mavx512f" } */
3 /* { dg-final { scan-assembler-times "vcvttsd2siq\[ \\t\]+\[^\n\]*%xmm\[0-9\]" 2 } } */
4 /* { dg-final { scan-assembler-times "vcvttsd2siq\[ \\t\]+\[^\n\]*\{sae\}\[^\n\]*%xmm\[0-9\]" 1 } } */
6 #include <immintrin.h>
8 volatile __m128d x;
9 volatile long long y;
11 void extern
12 avx512f_test (void)
14 y = _mm_cvttsd_i64 (x);
15 y = _mm_cvtt_roundsd_i64 (x, _MM_FROUND_NO_EXC);