diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/avx512vl-i64scatterq-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/avx512vl-i64scatterq-1.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/avx512vl-i64scatterq-1.c b/gcc/testsuite/gcc.target/i386/avx512vl-i64scatterq-1.c new file mode 100644 index 00000000000..ca7175fdf85 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/avx512vl-i64scatterq-1.c @@ -0,0 +1,21 @@ +/* { dg-do compile } */ +/* { dg-options "-mavx512vl -O2" } */ +/* { dg-final { scan-assembler-times "vpscatterqq\[ \\t\]+\[^\{\n\]*ymm\[0-9\]\[^\n\]*ymm\[0-9\]\[^\n\]*{%k\[1-7\]}(?:\n|\[ \\t\]+#)" 2 } } */ +/* { dg-final { scan-assembler-times "vpscatterqq\[ \\t\]+\[^\{\n\]*xmm\[0-9\]\[^\n\]*xmm\[0-9\]\[^\n\]*{%k\[1-7\]}(?:\n|\[ \\t\]+#)" 2 } } */ + +#include <immintrin.h> + +volatile __m256i src1, idx1; +volatile __m128i src2, idx2; +volatile __mmask8 m8; +long long *addr; + +void extern +avx512vl_test (void) +{ + _mm256_i64scatter_epi64 (addr, idx1, src1, 8); + _mm256_mask_i64scatter_epi64 (addr, m8, idx1, src1, 8); + + _mm_i64scatter_epi64 (addr, idx2, src2, 8); + _mm_mask_i64scatter_epi64 (addr, m8, idx2, src2, 8); +} |