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

#include "avx-check.h"

static void
__attribute__((noinline, unused))
test (float *e, __m256 a)
{
  return _mm256_storeu_ps (e, a);
}

void static
avx_test (void)
{
  union256 u;
  float e [8]  = {0.0};

  u.x = _mm256_set_ps (1.17, 24567.16, 3.15, 4567.14, 5.13, 65467.12, 788.11, 8.9);

  test (e, u.x);

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