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

#define AVX512BW

#include "avx512f-helper.h"

static __mmask32 __attribute__((noinline,noclone))
unpack (__mmask32 arg1, __mmask32 arg2)
{
  __mmask32 res;

  res = _mm512_kunpackw (arg1, arg2);

  return res;
}

void
TEST (void)
{
  if (unpack (0x07, 0x70) != 0x070070)
    __builtin_abort ();
}