diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/avx512f-vcvtsd2usi64-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/avx512f-vcvtsd2usi64-1.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/avx512f-vcvtsd2usi64-1.c b/gcc/testsuite/gcc.target/i386/avx512f-vcvtsd2usi64-1.c new file mode 100644 index 00000000000..9edecd31d8f --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/avx512f-vcvtsd2usi64-1.c @@ -0,0 +1,16 @@ +/* { dg-do compile { target { ! { ia32 } } } } */ +/* { dg-options "-O2 -mavx512f" } */ +/* { dg-final { scan-assembler-times "vcvtsd2usi\[ \\t\]+\[^\n\]*%xmm\[0-9\]" 2 } } */ +/* { dg-final { scan-assembler-times "vcvtsd2usi\[ \\t\]+\[^\n\]*\{ru-sae\}\[^\n\]*%xmm\[0-9\]" 1 } } */ + +#include <immintrin.h> + +volatile __m128d x; +volatile unsigned long long y; + +void extern +avx512f_test (void) +{ + y = _mm_cvtsd_u64 (x); + y = _mm_cvt_roundsd_u64 (x, _MM_FROUND_TO_POS_INF); +} |