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
, char *r
)
12 char *b1
= (char *) i1
;
15 for (i
= 0; i
< 32; i
++)
31 for (i
= 0; i
< 256; ++i
)
33 /* Recompute the results for 256-bits */
34 compute_pabs256 (&vals
[i
], ck
);
36 s
.x
= _mm256_loadu_si256 ((__m256i
*) & vals
[i
]);
38 /* Run the 256-bit tests */
39 d
.x
= _mm256_abs_epi8 (s
.x
);
41 fail
+= check_union256i_b (d
, ck
);