1 /* { dg-do run } */
2 /* { dg-require-effective-target avx } */
3 /* { dg-options "-O2 -mavx" } */
4
5 #include "avx-check.h"
6
7 static void
8 __attribute__((noinline))
test(double * p,__m256d s)9 test (double *p, __m256d s)
10 {
11 return _mm256_stream_pd (p, s);
12 }
13
14 static void
avx_test(void)15 avx_test (void)
16 {
17 union256d u;
18 double e[4] __attribute__ ((aligned(32))) = {1,1,1,1};
19
20 u.x = _mm256_set_pd (2134.3343, 1234.635654, -13443.35, 43.35345);
21 test (e, u.x);
22
23 if (check_union256d (u, e))
24 abort ();
25 }
26