2 /* { dg-require-effective-target avx2 } */
3 /* { dg-options "-O2 -mavx2" } */
6 #include "avx2-check.h"
13 long long int res_ref
[4];
16 for (j
= 0; j
< 4; j
++)
19 for (j
= 0; j
< 2; j
++)
22 res
.x
= _mm256_inserti128_si256 (s1
.x
, s2
.x
, 0);
24 memcpy (res_ref
, s1
.a
, 32);
25 memcpy (res_ref
, s2
.a
, 16);
27 if (check_union256i_q (res
, res_ref
))
30 res
.x
= _mm256_inserti128_si256 (s1
.x
, s2
.x
, 1);
32 memcpy (res_ref
, s1
.a
, 32);
33 memcpy (res_ref
+ 2, s2
.a
, 16);
35 if (check_union256i_q (res
, res_ref
))