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

#include "avx-check.h"

void static
avx_test (void)
{
  int i;
  union256i_q u;
  long long e [4];

  u.x = _mm256_setzero_si256 ();

  for (i = 0; i < 4; i++)
    e[i] = 0;

  if (check_union256i_q (u, e))
    abort ();
}