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