blob: af6f5f19f69f83032e6e0a59f8cac2e6622da31c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* { dg-do compile } */
/* { dg-options "-O0 -mavx512f" } */
/* { dg-final { scan-assembler-times "kortestw\[ \\t\]+\[^\{\n\]*%k\[0-7\](?:\n|\[ \\t\]+#)" 4 } } */
#include <immintrin.h>
void
avx512f_test () {
volatile __mmask16 k1 = 0;
__mmask16 k2 = 0;
volatile __mmask8 k3 = 0;
__mmask8 k4 = 0;
volatile short r __attribute__((unused));
/* Check that appropriate insn sequence is generated at -O0. */
r = _mm512_kortestc (k1, k2);
r = _mm512_kortestz (k1, k2);
r = _mm512_kortestc (k3, k4);
r = _mm512_kortestz (k3, k4);
}
|