Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-vpmovzxbq-1.c
blobaf642114afb7f0ebd8e3890ad396babb4bb4bee1
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vpmovzxbq\[ \\t\]+\[^\n\]*%xmm\[0-9\]\[^\n\]*%ymm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
4 /* { dg-final { scan-assembler-times "vpmovzxbq\[ \\t\]+\[^\n\]*%xmm\[0-9\]\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
5 /* { dg-final { scan-assembler-times "vpmovzxbq\[ \\t\]+\[^\n\]*%xmm\[0-9\]\[^\n\]*%ymm\[0-9\]\{%k\[1-7\]\}\{z\}" 1 } } */
6 /* { dg-final { scan-assembler-times "vpmovzxbq\[ \\t\]+\[^\n\]*%xmm\[0-9\]\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\{z\}" 1 } } */
8 #include <immintrin.h>
10 volatile __m128i s, res2;
11 volatile __m256i res1;
12 volatile __mmask8 m;
14 void extern
15 avx512vl_test (void)
17 res1 = _mm256_mask_cvtepu8_epi64 (res1, m, s);
18 res2 = _mm_mask_cvtepu8_epi64 (res2, m, s);
20 res1 = _mm256_maskz_cvtepu8_epi64 (m, s);
21 res2 = _mm_maskz_cvtepu8_epi64 (m, s);