Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr68633.c

raw
1 /* { dg-do run } */
2 /* { dg-options "-Ofast -mavx512f" } */
3 /* { dg-require-effective-target avx512f } */
4
5 #include <immintrin.h>
6
7 #define AVX512F
8
9 #include "avx512f-helper.h"
10
11 void abort ();
12
13 void
14 TEST ()
15 {
16 __mmask16 k1, k2, k3;
17
18 __asm__( "kmovw %1, %0" : "=k" (k1) : "r" (1) );
19 __asm__( "kmovw %1, %0" : "=k" (k2) : "r" (2) );
20
21 k3 = _mm512_kunpackb (k1, k2);
22 if (k3 != 0x102)
23 abort ();
24 }