aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/avx-vmovapd-256-1.c
blob: cc524c8a64126492718948778d1e047c51415577 (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
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */

#include "avx-check.h"

static __m256d
__attribute__((noinline, unused))
test (double *e)
{
  return _mm256_load_pd (e);
}

void static
avx_test (void)
{
  union256d u;
  double e [4] __attribute__ ((aligned (32)))  = {41124.234,2344.2354,8653.65635,856.43576};

  u.x = test (e);

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