No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / tree-ssa / loop-5.c
blobc797cd176fbf17114e2657e1d71c91789d325ca3
1 /* A test for induction variable merging. */
3 /* { dg-do compile } */
4 /* { dg-options "-O1 -fdump-tree-vars" } */
6 void foo(long);
8 void xxx(void)
10 long iter, jter;
12 for (iter = 0, jter = 2; iter < 100; iter++, jter++)
14 foo (iter);
15 foo (jter);
19 /* Only iter variable should remain. */
21 /* { dg-final { scan-tree-dump-times "int iter" 1 "vars" } } */
22 /* { dg-final { scan-tree-dump-times "jter" 0 "vars" } } */
24 /* And the use of jter should be replaced by iter + 2 */
26 /* { dg-final { scan-tree-dump-times " \\+ 2" 1 "vars" } } */
28 /* { dg-final { cleanup-tree-dump "vars" } } */