PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512bw-vpmovm2w-1.c
blob10eab4d6db4389a73cfcbee6b3684d1a9735009e
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512bw -mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vpmovm2w\[ \\t\]+\[^\{\n\]*%k\[1-7\]\[^\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vpmovm2w\[ \\t\]+\[^\{\n\]*%k\[1-7\]\[^\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vpmovm2w\[ \\t\]+\[^\{\n\]*%k\[1-7\]\[^\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
7 #include <immintrin.h>
9 volatile __m512i x512;
10 volatile __m256i x256;
11 volatile __m128i x128;
12 volatile __mmask32 m32;
13 volatile __mmask16 m16;
14 volatile __mmask8 m8;
16 void extern
17 avx512bw_test (void)
19 x128 = _mm_movm_epi16 (m8);
20 x256 = _mm256_movm_epi16 (m16);
21 x512 = _mm512_movm_epi16 (m32);