1 /* { dg-do run } */ 2 /* { dg-options "-O2 -mavx512bw" } */ 3 /* { dg-require-effective-target avx512bw } */ 4 5 #include "avx512bw-check.h" 6 7 void avx512bw_test()8avx512bw_test () 9 { 10 __mmask64 k1, k2; 11 unsigned char r1, r2; 12 13 k1 = _cvtu64_mask64(0); 14 k2 = _cvtu64_mask64(-1); 15 16 r1 = _ktest_mask64_u8(k1, k2, &r2); 17 18 if (r1 != 1 || r2 != 0) 19 abort (); 20 } 21