Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / tree-ssa / loop-11.c
blob58a1349f22c64ebdc8b6ff11a68a1b2beedf8c8d
1 /* A test for final value replacement and higher-order ivs,
2 see PR 22442. */
4 /* { dg-do compile } */
5 /* { dg-options "-O1 -fdump-tree-vars" } */
7 void bar (unsigned);
9 void foo (void)
11 unsigned i, a;
13 for (i = 0; i < 5; i++)
14 a = i * i;
16 bar (a);
19 /* Final value of a gets replaced. */
21 /* { dg-final { scan-tree-dump-times "\\(16\\)" 1 "vars" } } */
23 /* And the empty loop is removed. */
25 /* { dg-final { scan-tree-dump-times "if " 0 "vars" } } */
27 /* { dg-final { cleanup-tree-dump "vars" } } */