1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-parallelize-loops=4 -fdump-tree-parloops-details -fdump-tree-optimized" } */
11 for (ii
= 0; ii
< N
; ii
++)
12 for (i
= 0; i
< N
; i
++)
13 for (j
= 0; j
< N
; j
++)
14 x
[i
][j
][ii
] = ii
+i
+ j
+ 3;
16 for (ii
= 0; ii
< N
; ii
++)
17 for (i
= 0; i
< N
;i
++)
18 for (j
= 0; j
< N
; j
++)
19 if (x
[i
][j
][ii
] != ii
+i
+ j
+ 3)
30 /* { dg-final { scan-tree-dump-times "parallelizing outer loop" 1 "parloops" } } */
31 /* { dg-final { scan-tree-dump-times "loopfn" 4 "optimized" } } */