2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512bw-vpmovb2m-1.c
blobc2d34245b55b01f6161aca4e832537dc3077f6ea
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512bw -mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vpmovb2m\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%k\[1-7\](?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vpmovb2m\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\[^\n\]*%k\[1-7\](?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vpmovb2m\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\]*%k\[1-7\](?:\n|\[ \\t\]+#)" 1 } } */
7 #include <immintrin.h>
9 volatile __m512i x512;
10 volatile __m256i x256;
11 volatile __m128i x128;
12 volatile __mmask64 m64;
13 volatile __mmask32 m32;
14 volatile __mmask16 m16;
16 void extern
17 avx512bw_test (void)
19 m16 = _mm_movepi8_mask (x128);
20 m32 = _mm256_movepi8_mask (x256);
21 m64 = _mm512_movepi8_mask (x512);