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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20041213-2.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* PR tree-optimization/18694
2
 
3
   The dominator optimization didn't take the PHI evaluation order
4
   into account when threading an edge.  */
5
 
6
extern void abort (void) __attribute__((noreturn));
7
extern void exit (int) __attribute__((noreturn));
8
 
9
void __attribute__((noinline))
10
foo (int i)
11
{
12
  int next_n = 1;
13
  int j = 0;
14
 
15
  for (; i != 0; i--)
16
    {
17
      int n;
18
 
19
      for (n = next_n; j < n; j++)
20
        next_n++;
21
 
22
      if (j != n)
23
        abort ();
24
    }
25
}
26
 
27
int
28
main (void)
29
{
30
  foo (2);
31
  exit (0);
32
}

powered by: WebSVN 2.1.0

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