aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/avx512f-setzero-ps-1.c
blob: 5b1ee29e340eca2302fdffdd39c49d2449850036 (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-options "-O2 -mavx512f" } */
/* { dg-require-effective-target avx512f } */

#include "avx512f-check.h"

void static
avx512f_test (void)
{
  int i;
  union512 res;
  float res_ref[16];

  res.x = _mm512_setzero_ps ();

  for (i = 0; i < 16; i++)
    res_ref[i] = 0.0;

  if (check_union512 (res, res_ref))
    abort ();
}