* gcc.dg/predict-12.c: New testcase.
[official-gcc.git] / gcc / testsuite / gcc.dg / autopar / parloops-exit-first-loop-alt-6.c
blob186eab32e9bd0f6c17f98b654af363ffcbf19dac
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-parallelize-loops=2 -fdump-tree-parloops2-details" } */
4 /* Variable bound, vector addition, unsigned loop counter, signed bound. */
6 void
7 f (int n, unsigned int *__restrict__ a, unsigned int *__restrict__ b,
8 unsigned int *__restrict__ c)
10 unsigned int i;
12 for (i = 0; i < n; ++i)
13 c[i] = a[i] + b[i];
16 /* { dg-final { scan-tree-dump-times "alternative exit-first loop transform succeeded" 1 "parloops2" } } */