1 /* { dg-do compile } */
2 /* { dg-options "-mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vcvtdq2pd\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vcvtdq2pd\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vcvtdq2pd\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "vcvtdq2pd\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
7 
8 #include <immintrin.h>
9 
10 volatile __m128i s;
11 volatile __m256d res1;
12 volatile __m128d res2;
13 volatile __mmask8 m;
14 
15 void extern
avx512vl_test(void)16 avx512vl_test (void)
17 {
18   res1 = _mm256_mask_cvtepi32_pd (res1, m, s);
19   res2 = _mm_mask_cvtepi32_pd (res2, m, s);
20 
21   res1 = _mm256_maskz_cvtepi32_pd (m, s);
22   res2 = _mm_maskz_cvtepi32_pd (m, s);
23 }
24