6 int X
[2*N
], Y
[2*N
], B
[2*N
];
7 int A
[2*N
][2*N
], C
[2*N
][2*N
];
9 static void __attribute__((noinline
,noclone
))
14 for (i
= 0; i
< 2 * N
; ++i
)
19 for (j
= 0; j
< 2 * N
; ++j
)
27 static void __attribute__((noinline
,noclone
))
32 for (i
= 0; i
< M
; i
++)
35 for (j
= 0; j
< M
; j
++)
38 for (k
= 0; k
< N
; k
++)
40 A
[j
+1][k
] = B
[j
] + C
[j
][k
];
47 static void __attribute__((noinline
,noclone
))
52 for (i
= 0; i
< 2 * N
; ++i
)
54 int expect_x
= i
< M
? 11 : 1;
61 for (j
= 0; j
< 2 * N
; ++j
)
63 int expect_a
= (0 < i
&& i
<= M
&& j
< N
) ? 2 : 1;
65 if (A
[i
][j
] != expect_a
81 /* Check that parallel code generation part make the right answer. */
82 /* { dg-final { scan-tree-dump-times "1 loops carried no dependency" 1 "graphite" } } */
83 /* { dg-final { scan-tree-dump-times "loopfn.0" 4 "optimized" } } */