aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/avx512f-setzero-pd-1.c
blob: f0589bd18a3acdba84316188504b339079a0282c (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;
  union512d res;
  double res_ref[8];

  res.x = _mm512_setzero_pd ();

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

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