2 /* { dg-require-effective-target avx2 } */
3 /* { dg-options "-O2 -mavx2" } */
5 #include "ssse3-vals.h"
6 #include "avx2-check.h"
8 /* Routine to manually compute the results */
10 compute_pabs256 (int *i1
, int *r
)
14 for (i
= 0; i
< 8; i
++)
30 for (i
= 0; i
< 256; ++i
)
32 /* Recompute the results for 256-bits */
33 compute_pabs256 (&vals
[i
], ck
);
35 s
.x
= _mm256_loadu_si256 ((__m256i
*) & vals
[i
]);
37 /* Run the 256-bit tests */
38 d
.x
= _mm256_abs_epi32 (s
.x
);
40 fail
+= check_union256i_d (d
, ck
);