2 /* { dg-require-effective-target avx2 } */
3 /* { dg-options "-O2 -mavx2" } */
6 #include "avx2-check.h"
11 compute_punpcklbw256 (char *s1
, char *s2
, char *r
)
15 for (i
= 0; i
< 8; i
++)
20 r
[2 * i
+ 16] = s1
[i
+ 16];
21 r
[2 * i
+ 16 + 1] = s2
[i
+ 16];
28 union256i_b s1
, s2
, res
;
33 for (i
= 0; i
< 10; i
++)
35 for (j
= 0; j
< 32; j
++)
41 res
.x
= _mm256_unpacklo_epi8 (s1
.x
, s2
.x
);
43 compute_punpcklbw256 (s1
.a
, s2
.a
, res_ref
);
45 fail
+= check_union256i_b (res
, res_ref
);