2 /* { dg-options "-mavx2 -O2" } */
3 /* { dg-require-effective-target avx2 } */
5 #include "avx2-check.h"
11 init_pbroadcastw256 (short *src
, int seed
)
15 for (i
= 0; i
< 8; i
++)
17 src
[i
] = (i
+ seed
) * (i
+ seed
) * sign
;
23 calc_pbroadcastw256 (short *src
, short *dst
)
27 for (i
= 0; i
< 16; i
++)
39 for (i
= 0; i
< NUM
; i
++)
41 init_pbroadcastw256 (src
.a
, i
);
43 dst
.x
= _mm256_broadcastw_epi16 (src
.x
);
44 calc_pbroadcastw256 (src
.a
, dst_ref
);
46 if (check_union256i_w (dst
, dst_ref
))