OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr25501.c] - Blame information for rev 300

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR tree-optimization/25501
2
   The PHI merge pass used to try to merge PHI nodes that cannot
3
   actually merged, causing a segfault later.  Make sure that does not
4
   happen any more.  */
5
 
6
/* { dg-options "-O1 -fdump-tree-mergephi" } */
7
 
8
int
9
foo (int a)
10
{
11
  int b;
12
  int c;
13
  int d;
14
 
15
  if (a == 2)
16
    b = 3;
17
  else
18
    b = 5;
19
 
20
  c = 7;
21
 
22
  d = 11;
23
 
24
  for (;;)
25
    {
26
      if (d == 5)
27
        break;
28
 
29
      d = b;
30
    }
31
 
32
  return 13;
33
}
34
 
35
/* { dg-final { scan-tree-dump-times "Removing basic block" 0 "mergephi1"} } */
36
/* { dg-final { cleanup-tree-dump "mergephi\[1-2\]" } } */

powered by: WebSVN 2.1.0

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