1 /* { dg-do compile } */ 2 /* { dg-options "-mavx512f -O2" } */ 3 /* { dg-final { scan-assembler-times "vpermi2d\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ 4 5 #include <immintrin.h> 6 7 volatile __m512i x; 8 volatile __mmask16 m; 9 10 void extern avx512f_test(void)11avx512f_test (void) 12 { 13 x = _mm512_mask2_permutex2var_epi32 (x, x, m, x); 14 } 15