2 /* { dg-require-effective-target avx2 } */
3 /* { dg-options "-O2 -mavx2" } */
6 #include "avx2-check.h"
9 compute_pslld256 (int *s1
, long long int *s2
, int *r
)
12 long long int count
= s2
[0];
17 for (i
= 0; i
< 8; ++i
)
18 r
[i
] = s1
[i
] << count
;
31 for (i
= 0; i
< 10; i
++)
33 for (j
= 0; j
< 8; j
++)
38 res
.x
= _mm256_sll_epi32 (s1
.x
, s2
.x
);
40 compute_pslld256 (s1
.a
, s2
.a
, res_ref
);
42 fail
+= check_union256i_d (res
, res_ref
);