Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx512vl-vpbroadcastmw2d-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512vl -mavx512cd -O2" } */
3 /* { dg-final { scan-assembler-times "vpbroadcastmw2d\[ \\t\]+\[^\{\n\]*%k\[0-7\]\[^\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vpbroadcastmw2d\[ \\t\]+\[^\{\n\]*%k\[0-7\]\[^\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
5
6 #include <immintrin.h>
7
8 volatile __m128i x128;
9 volatile __m256i x256;
10 volatile __mmask16 m16;
11
12 void extern
13 avx512vl_test (void)
14 {
15 x128 = _mm_broadcastmw_epi32 (m16);
16 x256 = _mm256_broadcastmw_epi32 (m16);
17 }