Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-reduc-or_2.c
blob71a70aef622e2afe4d1d86aacbebc71c46a05ec6
1 /* { dg-require-effective-target whole_vector_shift } */
3 /* Write a reduction loop to be reduced using vector shifts and folded. */
5 #include "tree-vect.h"
7 extern void abort(void);
9 int
10 main (unsigned char argc, char **argv)
12 unsigned char in[16] __attribute__((aligned(16)));
13 unsigned char i = 0;
14 unsigned char sum = 1;
16 check_vect ();
18 for (i = 0; i < 16; i++)
19 in[i] = (i + i + 1) & 0xfd;
21 for (i = 0; i < 16; i++)
22 sum |= in[i];
24 if (sum != 29)
26 __builtin_printf("Failed %d\n", sum);
27 abort();
30 return 0;
33 /* { dg-final { scan-tree-dump "Reduce using vector shifts" "vect" } } */