/* { dg-do compile } */ /* { dg-options "-O2 -fno-tree-loop-vectorize -ftree-parallelize-loops=4 -fdump-tree-parloops-details -fdump-tree-optimized" } */ #include #include #define N 1600 unsigned int ub[N]; unsigned int uc[N]; /* Reduction of unsigned-int. */ __attribute__ ((noinline)) int main1 (int n, int res) { int i; unsigned int udiff; udiff = 0; for (i = 0; i < n; i++) { udiff += (ub[i] - uc[i]); } /* check results: */ if (udiff != res) abort (); return 0; } __attribute__((noinline)) void init_arrays () { int i; for (i=0; i