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/] [20040305-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-cddce2 -fdump-tree-forwprop1-details" } */
3
 
4
int abarney[2];
5
int afred[1];
6
 
7
void foo(int edx, int eax)
8
{
9
  if (eax == 100)
10
    {
11
      if (edx == 1)
12
        {
13
          abarney[0] = 5;
14
          abarney[1] = 6;
15
        }
16
    }
17
  if (eax == 100)
18
    {
19
      if (-- edx == 0)
20
        afred[0] = 2;
21
    }
22
}
23
 
24
 
25
/* Verify that we did a forward propagation.  */
26
/* { dg-final { scan-tree-dump-times "Replaced" 1 "forwprop1"} } */
27
/* { dg-final { cleanup-tree-dump "forwprop1" } } */
28
 
29
/* After cddce we should have two IF statements remaining as the other
30
   two tests can be threaded.  */
31
/* { dg-final { scan-tree-dump-times "if " 2 "cddce2"} } */
32
/* { dg-final { cleanup-tree-dump "cddce2" } } */

powered by: WebSVN 2.1.0

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