diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/avx512vl-vpconflictq-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/avx512vl-vpconflictq-1.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/avx512vl-vpconflictq-1.c b/gcc/testsuite/gcc.target/i386/avx512vl-vpconflictq-1.c new file mode 100644 index 00000000000..1aa81a2451d --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/avx512vl-vpconflictq-1.c @@ -0,0 +1,26 @@ +/* { dg-do compile } */ +/* { dg-options "-mavx512vl -mavx512cd -O2" } */ +/* { dg-final { scan-assembler-times "vpconflictq\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ +/* { dg-final { scan-assembler-times "vpconflictq\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ +/* { dg-final { scan-assembler-times "vpconflictq\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ +/* { dg-final { scan-assembler-times "vpconflictq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ +/* { dg-final { scan-assembler-times "vpconflictq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ +/* { dg-final { scan-assembler-times "vpconflictq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ + +#include <immintrin.h> + +volatile __m256i s; +volatile __m256i res; +volatile __m128i s2; +volatile __m128i res2; + +void extern +avx512vl_test (void) +{ + res = _mm256_conflict_epi64 (s); + res = _mm256_mask_conflict_epi64 (res, 2, s); + res = _mm256_maskz_conflict_epi64 (2, s); + res2 = _mm_conflict_epi64 (s2); + res2 = _mm_mask_conflict_epi64 (res2, 2, s2); + res2 = _mm_maskz_conflict_epi64 (2, s2); +} |