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/] [pr15349.c] - Blame information for rev 378

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR 15349.  Merge two PHI nodes.  */
2
/* { dg-do compile } */
3
/* { dg-options "-O1 -fdump-tree-mergephi" } */
4
 
5
int
6
foo (int a, int b)
7
{
8
  int t;
9
 
10
  if (b)
11
    {
12
      if (a)
13
        t = 3;
14
      else
15
        t = 5;
16
 
17
      a = 0;
18
    }
19
  else
20
    t = 7;
21
 
22
  return t;
23
}
24
 
25
/* { dg-final { scan-tree-dump-times "PHI" 1 "mergephi2"} } */
26
/* { 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.