1 /* { dg-do run } */ 2 /* { dg-options "-O2 -mavx512bw" } */ 3 /* { dg-require-effective-target avx512bw } */ 4 5 #define AVX512BW 6 7 #include "avx512f-helper.h" 8 9 static __mmask64 __attribute__((noinline,noclone)) unpack(__mmask64 arg1,__mmask64 arg2)10unpack (__mmask64 arg1, __mmask64 arg2) 11 { 12 __mmask64 res; 13 14 res = _mm512_kunpackd (arg1, arg2); 15 16 return res; 17 } 18 19 void TEST(void)20TEST (void) 21 { 22 if (unpack (0x07UL, 0x70UL) != 0x0700000070UL) 23 __builtin_abort (); 24 } 25