1 /* { dg-require-effective-target vect_int } */
8 /* Test vectorization of reduction of unsigned-int in the presence
9 of unknown-loop-bound. */
11 __attribute__ ((noinline))
12 int main1 (int n, int res)
15 unsigned int ub[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
16 unsigned int uc[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
20 for (i = 0; i < n; i++) {
21 udiff += (ub[i] - uc[i]);
40 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_add } } } */
41 /* { dg-final { cleanup-tree-dump "vect" } } */