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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [dce-1.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-cddce1" } */
3
int foo (int b, int j)
4
{
5
  if (b)
6
    {
7
      int i;
8
      for (i = 0; i<1000; ++i)
9
        ;
10
      j = 0;
11
    }
12
  return j;
13
}
14
/* Check that empty loop is eliminated in this case.  We should no longer have
15
   the exit condition after the loop.  */
16
/* { dg-final { scan-tree-dump-not "999" "cddce1"} } */
17
/* { dg-final { scan-tree-dump-not "1000" "cddce1"} } */
18
/* { dg-final { cleanup-tree-dump "cddce1" } } */
19
 

powered by: WebSVN 2.1.0

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