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