OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [loop-14.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* A test for final value replacement.  */
2
 
3
/* { dg-options "-O2 -fdump-tree-vars" } */
4
 
5
int foo(void);
6
 
7
int bla(void)
8
{
9
  int i, j = foo ();
10
 
11
  for (i = 0; i < 100; i++, j++)
12
    foo ();
13
 
14
  /* Should be replaced with return j0 + 100;  */
15
  return j;
16
}
17
 
18
/* { dg-final { scan-tree-dump-times "\\+ 100" 1 "vars" } } */
19
/* { dg-final { cleanup-tree-dump "vars" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.