2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512bw-vpblendmb-1.c
blob788aca40e6ea245fba169f4ed35bb086fc5266fc
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512bw -mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "(?:vpblendmb|vmovdqu8)\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "(?:vpblendmb|vmovdqu8)\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "(?:vpblendmb|vmovdqu8)\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
7 #include <immintrin.h>
9 volatile __m256i x;
10 volatile __m128i xx;
11 volatile __m512i xxx;
12 volatile __mmask8 m;
14 void extern
15 avx512bw_test (void)
17 x = _mm256_mask_blend_epi8 (m, x, x);
18 xx = _mm_mask_blend_epi8 (m, xx, xx);
19 xxx = _mm512_mask_blend_epi8 (m, xxx, xxx);