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

Subversion Repositories openrisc_me

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
3
int
4
foo (int i)
5
{
6
        int a, b;
7
        if (i)
8
                a = 3, b = 2;
9
        else
10
                a = 2, b = 3;
11
        return a + b;
12
}
13
/* We should detect that a+b is the same along both edges, and replace it with
14
   5  */
15
/* { dg-final { scan-tree-dump-times "Constified: 1" 1 "pre"} } */
16
/* { dg-final { cleanup-tree-dump "pre" } } */

powered by: WebSVN 2.1.0

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