Update gcc-auto-profile / gen_autofdo_event.py
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512bw-vpmovzxbw-1.c
blobcefa8dff3fbc8cb2e7a26c1c7a8fbf05b5c9b591
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512bw -mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vpmovzxbw\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\[^\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vpmovzxbw\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\[^\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vpmovzxbw\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "vpmovzxbw\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
7 /* { dg-final { scan-assembler-times "vpmovzxbw\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\[^\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
8 /* { dg-final { scan-assembler-times "vpmovzxbw\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
9 /* { dg-final { scan-assembler-times "vpmovzxbw\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
11 #include <immintrin.h>
13 volatile __m512i res1;
14 volatile __m256i s1, res2;
15 volatile __m128i s2, res3;
16 volatile __mmask32 m32;
17 volatile __mmask16 m16;
18 volatile __mmask8 m8;
20 void extern
21 avx512bw_test (void)
23 res1 = _mm512_cvtepu8_epi16 (s1);
25 res1 = _mm512_mask_cvtepu8_epi16 (res1, m32, s1);
26 res2 = _mm256_mask_cvtepu8_epi16 (res2, m16, s2);
27 res3 = _mm_mask_cvtepu8_epi16 (res3, m8, s2);
29 res1 = _mm512_maskz_cvtepu8_epi16 (m32, s1);
30 res2 = _mm256_maskz_cvtepu8_epi16 (m16, s2);
31 res3 = _mm_maskz_cvtepu8_epi16 (m8, s2);