* g++.dg/other/i386-2.C (dg-options): Add -mavx512pf.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vcvttsd2usi64-1.c
blob87bbcb7be6e067eb86d27c0bfaa42bd88fd1ee71
1 /* { dg-do compile { target { ! { ia32 } } } } */
2 /* { dg-options "-O2 -mavx512f" } */
3 /* { dg-final { scan-assembler-times "vcvttsd2usi\[ \\t\]+\[^\n\]*%xmm\[0-9\]" 2 } } */
4 /* { dg-final { scan-assembler-times "vcvttsd2usi\[ \\t\]+\[^\n\]*\{sae\}\[^\n\]*%xmm\[0-9\]" 1 } } */
6 #include <immintrin.h>
8 volatile __m128d x;
9 volatile unsigned long long y;
11 void extern
12 avx512f_test (void)
14 y = _mm_cvttsd_u64 (x);
15 y = _mm_cvtt_roundsd_u64 (x, _MM_FROUND_NO_EXC);