1 /* { dg-do compile } */
2 /* { dg-options "-mavx512bw -mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vpermi2w\[ \\t\]+\[^\n\]*%zmm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
4 /* { dg-final { scan-assembler-times "vpermi2w\[ \\t\]+\[^\n\]*%ymm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
5 /* { dg-final { scan-assembler-times "vpermi2w\[ \\t\]+\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
15 volatile __mmask32 m3
;
16 volatile __mmask16 m2
;
22 x3
= _mm512_mask2_permutex2var_epi16 (x3
, z
, m3
, x3
);
23 x2
= _mm256_mask2_permutex2var_epi16 (x2
, y
, m2
, x2
);
24 x1
= _mm_mask2_permutex2var_epi16 (x1
, x
, m1
, x1
);