summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx512f-kunpckbw-2.c
blob: 86580f289aab27ac427299950af5175ea372f815 (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 -mavx512f" } */
/* { dg-require-effective-target avx512f } */

#define AVX512F

#include "avx512f-helper.h"

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

  res = _mm512_kunpackb (arg1, arg2);

  return res;
}

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