2 /* { dg-options "-mavx2 -O2" } */
3 /* { dg-require-effective-target avx2 } */
5 #include "avx2-check.h"
11 init_pbroadcastb128 (char *src
, int seed
)
15 for (i
= 0; i
< 16; i
++)
17 src
[i
] = (i
+ seed
) * (i
+ seed
) * sign
;
23 calc_pbroadcastb128 (char *src
, char *dst
)
27 for (i
= 0; i
< 16; i
++)
38 for (i
= 0; i
< NUM
; i
++)
40 init_pbroadcastb128 (src
.a
, i
);
42 dst
.x
= _mm_broadcastb_epi8 (src
.x
);
43 calc_pbroadcastb128 (src
.a
, dst_ref
);
45 if (check_union128i_b (dst
, dst_ref
))