1 /* { dg-require-effective-target whole_vector_shift } */
3 /* Write a reduction loop to be reduced using vector shifts and folded. */
7 extern void abort(void);
10 main (unsigned char argc
, char **argv
)
12 unsigned char in
[16] __attribute__((aligned(16)));
14 unsigned char sum
= 1;
18 for (i
= 0; i
< 16; i
++)
19 in
[i
] = (i
+ i
+ 1) & 0xfd;
21 for (i
= 0; i
< 16; i
++)
26 __builtin_printf("Failed %d\n", sum
);
33 /* { dg-final { scan-tree-dump "Reduce using vector shifts" "vect" } } */