1 /* { dg-do compile } */ 2 /* { dg-options "-mavx512bw -O2" } */ 3 /* { dg-final { scan-assembler-times "kunpckdq\[ \\t\]+\[^\{\n\]*%k\[0-7\](?:\n|\[ \\t\]+#)" 1 } } */ 4 5 #include <immintrin.h> 6 7 void avx512bw_test()8avx512bw_test () { 9 volatile __mmask64 k3; 10 __mmask32 k1, k2; 11 12 __asm__( "kmovd %1, %0" : "=k" (k1) : "r" (1) ); 13 __asm__( "kmovd %1, %0" : "=k" (k2) : "r" (2) ); 14 15 k3 = _kunpackd_mask64 (k1, k2); 16 } 17