1/* { dg-do compile } */ 2/* { dg-options "-mavx512vl -O2" } */ 3/* { dg-final { scan-assembler-times "vunpcklps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ 4/* { dg-final { scan-assembler-times "vunpcklps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ 5/* { dg-final { scan-assembler-times "vunpcklps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ 6/* { dg-final { scan-assembler-times "vunpcklps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ 7/* { dg-final { scan-assembler-times "vunpcklps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ 8/* { dg-final { scan-assembler-times "vunpcklps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ 9 10#include <immintrin.h> 11 12volatile __m256 x, y, z; 13volatile __m128 xx, yy, zz; 14 15void extern 16avx512vl_test (void) 17{ 18 x = _mm256_unpacklo_ps (y, z); 19 x = _mm256_mask_unpacklo_ps (x, 2, y, z); 20 x = _mm256_maskz_unpacklo_ps (2, y, z); 21 xx = _mm_unpacklo_ps (yy, zz); 22 xx = _mm_mask_unpacklo_ps (xx, 2, yy, zz); 23 xx = _mm_maskz_unpacklo_ps (2, yy, zz); 24} 25