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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [useless-1.c] - Blame information for rev 298

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-gimple" } */
3
 
4
void
5
foo (void)
6
{
7
  int i, a;
8
  for (i = 0; i < 10; i++)
9
    { a = i; }
10
}
11
 
12
/* There should be three gotos in the dump.  If one was removed
13
   in the loop exit condition, it would be re-introduced during
14
   GIMPLE lowering, at the cost of an extra statement, label,
15
   and basic block.  */
16
/* { dg-final { scan-tree-dump-times "goto" 3 "gimple"} } */
17
/* { dg-final { cleanup-tree-dump "gimple" } } */

powered by: WebSVN 2.1.0

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