summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx-set1-ps-256-1.c
blob: c5f2d10236e6f42caa36a4e529c3aca09f29cf76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { 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];
  float	 source[1] = {1234.234f};

  u.x = _mm256_set1_ps (source[0]);

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

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