summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx512bw-kortestq-2.c
blob: 9efaac22ec24ffc0782b3dc74b3e00dd55373295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do run } */
/* { dg-options "-O2 -mavx512bw" } */
/* { dg-require-effective-target avx512bw } */

#include "avx512bw-check.h"

void
avx512bw_test ()
{
  __mmask64 k1, k2;
  unsigned char r1, r2;

  k1 = _cvtu64_mask64(0);
  k2 = _cvtu64_mask64(-1);

  r1 = _kortest_mask64_u8(k1, k2, &r2);

  if (r1 != 0 || r2 != 1)
    abort ();
}