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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr20913.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR tree-optimization/20913
2
   COPY-PROP did not fold COND_EXPR, blocking some copy propagation
3
   opportunities.  */
4
 
5
/* { dg-do link } */
6
/* { dg-options "-O2 -fno-tree-dominator-opts" } */
7
 
8
int
9
foo (int a, int b, int c, int d)
10
{
11
  int x, y;
12
 
13
  b = a;
14
  if (a == b)
15
    x = c;
16
  else
17
    {
18
      link_error ();
19
      x = d;
20
    }
21
 
22
  if (x == c)
23
    return a;
24
  else
25
    {
26
      link_error ();
27
      return b;
28
    }
29
}
30
 
31
main()
32
{
33
  foo (1, 2, 3, 4);
34
}

powered by: WebSVN 2.1.0

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