1/* { dg-do run } */ 2/* { dg-require-effective-target avx } */ 3/* { dg-options "-O2 -mavx" } */ 4 5#include "avx-check.h" 6 7static void 8__attribute__((noinline)) 9test (double *p, __m256d s) 10{ 11 return _mm256_stream_pd (p, s); 12} 13 14static void 15avx_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