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

#include "avx-check.h"

static void 
__attribute__((noinline))
test (double *p, __m256d s)
{
  return _mm256_stream_pd (p, s); 
}

static void
avx_test (void)
{
  union256d u;
  double e[4] __attribute__ ((aligned(32))) = {1,1,1,1};
   
  u.x = _mm256_set_pd (2134.3343, 1234.635654, -13443.35, 43.35345);
  test (e, u.x); 
   
  if (check_union256d (u, e))
    abort ();
}