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