diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/avx512vl-vpbroadcastmw2d-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/avx512vl-vpbroadcastmw2d-1.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/avx512vl-vpbroadcastmw2d-1.c b/gcc/testsuite/gcc.target/i386/avx512vl-vpbroadcastmw2d-1.c new file mode 100644 index 00000000000..d39f6ef6e20 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/avx512vl-vpbroadcastmw2d-1.c @@ -0,0 +1,17 @@ +/* { dg-do compile } */ +/* { dg-options "-mavx512vl -mavx512cd -O2" } */ +/* { dg-final { scan-assembler-times "vpbroadcastmw2d\[ \\t\]+\[^\{\n\]*k\[1-7\]\[^\n\]*%xmm\[0-7\]+(?:\n|\[ \\t\]+#)" 1 } } */ +/* { dg-final { scan-assembler-times "vpbroadcastmw2d\[ \\t\]+\[^\{\n\]*k\[1-7\]\[^\n\]*%ymm\[0-7\]+(?:\n|\[ \\t\]+#)" 1 } } */ + +#include <immintrin.h> + +volatile __m128i x128; +volatile __m256i x256; +volatile __mmask16 m16; + +void extern +avx512vl_test (void) +{ + x128 = _mm_broadcastmw_epi32 (m16); + x256 = _mm256_broadcastmw_epi32 (m16); +} |