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/] [cfgcleanup-1.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-dce1" } */
3
void
4
cleanup (int a, int b)
5
{
6
  if (a)
7
    if (b)
8
      a = 1;
9
    else
10
      b = 1;
11
  else if (a)
12
    a = 1;
13
  else
14
    b = 1;
15
  return;
16
}
17
/* Dce should get rid of the initializers and cfgcleanup should elliminate ifs  */
18
/* { dg-final { scan-tree-dump-times "if " 0 "dce1"} } */
19
/* { dg-final { cleanup-tree-dump "dce1" } } */

powered by: WebSVN 2.1.0

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