PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-korw-1.c
blobf62734e6b3f89ae70bfe162ccf23bf0dcda9f38a
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-final { scan-assembler-times "korw\[ \\t\]+\[^\{\n\]*%k\[0-7\](?:\n|\[ \\t\]+#)" 1 } } */
5 #include <immintrin.h>
7 void
8 avx512f_test ()
10 __mmask16 k1, k2, k3;
11 volatile __m512 x = _mm512_setzero_ps();
14 __asm__( "kmovw %1, %0" : "=k" (k1) : "r" (1) );
15 __asm__( "kmovw %1, %0" : "=k" (k2) : "r" (2) );
17 k3 = _mm512_kor (k1, k2);
18 x = _mm512_mask_add_ps (x, k3, x, x);