1 /* { dg-do run } */ 2 /* { dg-require-effective-target avx2 } */ 3 /* { dg-options "-O2 -mavx2" } */ 4 5 #include "avx2-check.h" 6 7 void static avx2_test(void)8avx2_test (void) 9 { 10 union256i_q s1, res; 11 int i, j; 12 int fail = 0; 13 14 for (i = 0; i < 10; i++) 15 { 16 for (j = 0; j < 4; j++) 17 s1.a[j] = j * i; 18 19 res.x = _mm256_stream_load_si256 (&s1.x); 20 21 fail += check_union256i_q (res, s1.a); 22 } 23 24 if (fail != 0) 25 abort (); 26 } 27