| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -ftree-parallelize-loops=2 -fdump-tree-parloops2-details" } */ |
| 3 |
|
| 4 |
/* Variable bound, vector addition, signed loop counter, unsigned bound. */ |
| 5 |
|
| 6 |
void |
| 7 |
f (unsigned int n, unsigned int *__restrict__ a, unsigned int *__restrict__ b, |
| 8 |
unsigned int *__restrict__ c) |
| 9 |
{ |
| 10 |
int i; |
| 11 |
|
| 12 |
for (i = 0; i < n; ++i) |
| 13 |
c[i] = a[i] + b[i]; |
| 14 |
} |
| 15 |
|
| 16 |
/* { dg-final { scan-tree-dump-times "alternative exit-first loop transform succeeded" 1 "parloops2" } } */ |
| 17 |
|