2 /* { dg-require-effective-target avx2 } */
3 /* { dg-options "-O2 -mavx2" } */
5 #include "avx2-check.h"
8 compute_por256 (long long int *s1
, long long int *s2
, long long int *r
)
12 for (i
= 0; i
< 4; i
++)
19 union256i_q s1
, s2
, res
;
20 long long int res_ref
[4];
24 for (i
= 0; i
< 10; i
++)
26 for (j
= 0; j
< 4; j
++)
28 s1
.a
[j
] = i
* j
* sign
;
29 s2
.a
[j
] = (j
+ 20) * sign
;
33 res
.x
= _mm256_or_si256 (s1
.x
, s2
.x
);
34 compute_por256 (s1
.a
, s2
.a
, res_ref
);
36 fail
+= check_union256i_q (res
, res_ref
);