aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/avx-setzero-ps-256-1.c
blob: ffbf431fc3514f577654b83e319baec66dce530f (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;
  union256 u;
  float e [8];

  u.x = _mm256_setzero_ps ();

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

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