1 /* { dg-do compile } */ 2 /* { dg-options "-mavx512vbmi2 -mavx512bw -mavx512f -O2" } */ 3 /* { dg-final { scan-assembler-times "vpexpandw\[ \\t\]+\[^\{\n\]*\\(\[^\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ 4 /* { dg-final { scan-assembler-times "vpexpandw\[ \\t\]+\[^\{\n\]*\\(\[^\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ 5 /* { dg-final { scan-assembler-times "vpexpandw\[ \\t\]+\[^\{\n\(]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ 6 /* { dg-final { scan-assembler-times "vpexpandw\[ \\t\]+\[^\{\n\(]*%zmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ 7 8 #include <immintrin.h> 9 10 int *p; 11 volatile __m512i x; 12 volatile __mmask16 m; 13 14 void extern avx512f_test(void)15avx512f_test (void) 16 { 17 x = _mm512_mask_expand_epi16 (x, m, x); 18 x = _mm512_maskz_expand_epi16 (m, x); 19 20 x = _mm512_mask_expandloadu_epi16 (x, m, p); 21 x = _mm512_maskz_expandloadu_epi16 (m, p); 22 } 23