1 /* Exercise nested function decomposition, gcc/tree-nested.c. */
11 __builtin_memset (a
, 0, sizeof (a
));
14 #pragma acc loop collapse(4 - 1)
15 for (i
= 1; i
<= 3; i
++)
16 for (j
= 4; j
<= 6; j
++)
17 for (k
= 5; k
<= 7; k
++)
18 a
[i
][j
][k
] = i
+ j
+ k
;
20 for (i
= 1; i
<= 3; i
++)
21 for (j
= 4; j
<= 6; j
++)
22 for (k
= 5; k
<= 7; k
++)
23 if (a
[i
][j
][k
] != i
+ j
+ k
)
32 __builtin_memset (a
, 0, sizeof (a
));
35 #pragma acc loop collapse(3)
36 for (i
= 1; i
<= 3; i
++)
37 for (j
= 1; j
<= 3; j
++)
38 for (k
= 1; k
<= 3; k
++)
41 for (i
= 1; i
<= 3; i
++)
42 for (j
= 1; j
<= 3; j
++)
43 for (k
= 1; k
<= 3; k
++)