Debian Codegraph @

gcc/testsuite/gcc.dg/graphite/pr83255.c

raw
1 /* { dg-do run } */
2 /* { dg-options "-O -floop-nest-optimize -fno-tree-scev-cprop -fdump-tree-graphite-details" } */
3
4 int rx, in;
5
6 int
7 main (void)
8 {
9 const int tj = 3;
10 int as[tj];
11 static int l4;
12
13 while (l4 < 1)
14 {
15 for (rx = 0; rx < tj; ++rx)
16 {
17 for (in = 0; in < tj; ++in)
18 as[in] = 1;
19 as[rx] = 0;
20 }
21 ++l4;
22 }
23
24 if (as[tj - 1] != 0)
25 __builtin_abort ();
26 }
27
28 /* { dg-final { scan-tree-dump "loop nest optimized" "graphite" } } */