1 /* { dg-do compile } */ 2 /* { dg-options "-mavx512dq -O2" } */ 3 /* { dg-final { scan-assembler-times "kandb\[ \\t\]+\[^\{\n\]*%k\[0-7\](?:\n|\[ \\t\]+#)" 1 } } */ 4 5 #include <immintrin.h> 6 7 void avx512dq_test()8avx512dq_test () 9 { 10 __mmask8 k1, k2, k3; 11 volatile __m512i x = _mm512_setzero_epi32(); 12 13 __asm__( "kmovb %1, %0" : "=k" (k1) : "r" (1) ); 14 __asm__( "kmovb %1, %0" : "=k" (k2) : "r" (2) ); 15 16 k3 = _kand_mask8 (k1, k2); 17 x = _mm512_mask_add_epi64 (x, k3, x, x); 18 } 19