1 /* { dg-do compile } */ 2 /* { dg-options "-mavx512f -O2" } */ 3 /* { dg-final { scan-assembler-times "kshiftlw\[ \\t\]+\[^\{\n\]*%k\[0-7\](?:\n|\[ \\t\]+#)" 1 } } */ 4 5 #include <immintrin.h> 6 7 void avx512f_test()8avx512f_test () 9 { 10 __mmask16 k1, k2; 11 unsigned int i = 5; 12 volatile __m512 x = _mm512_setzero_ps(); 13 14 __asm__( "kmovw %1, %0" : "=k" (k1) : "r" (1) ); 15 16 k2 = _kshiftli_mask16 (k1, i); 17 x = _mm512_mask_add_ps (x, k2, x, x); 18 } 19