1 /* { dg-do compile } */ 2 /* { dg-options "-mavx512vl -O2" } */ 3 /* { dg-final { scan-assembler-times "vcvtudq2ps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ 4 /* { dg-final { scan-assembler-times "vcvtudq2ps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ 5 /* { dg-final { scan-assembler-times "vcvtudq2ps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ 6 /* { dg-final { scan-assembler-times "vcvtudq2ps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ 7 /* { dg-final { scan-assembler-times "vcvtudq2ps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ 8 /* { dg-final { scan-assembler-times "vcvtudq2ps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ 9 10 #include <immintrin.h> 11 12 volatile __m256i s1; 13 volatile __m128i s2; 14 volatile __m256 res1; 15 volatile __m128 res2; 16 volatile __mmask8 m; 17 18 void extern avx512vl_test(void)19avx512vl_test (void) 20 { 21 res1 = _mm256_cvtepu32_ps (s1); 22 res2 = _mm_cvtepu32_ps (s2); 23 24 res1 = _mm256_mask_cvtepu32_ps (res1, m, s1); 25 res2 = _mm_mask_cvtepu32_ps (res2, m, s2); 26 27 res1 = _mm256_maskz_cvtepu32_ps (m, s1); 28 res2 = _mm_maskz_cvtepu32_ps (m, s2); 29 } 30