Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512bw-vpmaddubsw-1.c
blob5803eee5752f91ba19ea24370b655a35b29100e7
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512bw -mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vpmaddubsw\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vpmaddubsw\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vpmaddubsw\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "vpmaddubsw\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
7 /* { dg-final { scan-assembler-times "vpmaddubsw\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
8 /* { dg-final { scan-assembler-times "vpmaddubsw\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
9 /* { dg-final { scan-assembler-times "vpmaddubsw\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
11 #include <immintrin.h>
13 volatile __m512i x;
14 volatile __m256i xq;
15 volatile __m128i xw;
17 void extern
18 avx512bw_test (void)
20 x = _mm512_maddubs_epi16 (x, x);
21 x = _mm512_mask_maddubs_epi16 (x, 2, x, x);
22 x = _mm512_maskz_maddubs_epi16 (2, x, x);
23 xq = _mm256_mask_maddubs_epi16 (xq, 2, xq, xq);
24 xq = _mm256_maskz_maddubs_epi16 (2, xq, xq);
25 xw = _mm_mask_maddubs_epi16 (xw, 2, xw, xw);
26 xw = _mm_maskz_maddubs_epi16 (2, xw, xw);