blob: 94422f36010a0f3401c6b91b3f600eb738ead82c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* { dg-do compile } */
/* { dg-options "-mavx512bw -O2" } */
/* { dg-final { scan-assembler-times "kunpckwd\[ \\t\]+\[^\{\n\]*%k\[1-7\](?:\n|\[ \\t\]+#)" 1 } } */
#include <immintrin.h>
void
avx512bw_test () {
volatile __mmask32 k1, k2, k3;
volatile __m256i x;
__asm__( "kmovd %1, %0" : "=k" (k1) : "r" (1) );
__asm__( "kmovd %1, %0" : "=k" (k2) : "r" (2) );
k3 = _mm512_kunpackw (k1, k2);
//x = _mm256_mask_avg_epu8 (x, k3, x, x);
}
|