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/] [ssa-fre-10.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
 
4
union loc {  unsigned reg; signed offset; };
5
void __frame_state_for (volatile char *state_in, int x)
6
{
7
  /* We should move all the loads out of this loop. Right now, we only
8
     move one.  It takes two insertions because we insert a cast.  */
9
    union loc fs;
10
    int reg;
11
    for (;;)     {
12
        switch (x)  {
13
            case 0:
14
                *state_in = fs.reg;
15
            case 1:
16
                *state_in = fs.offset;
17
        }
18
    }
19
}
20
 
21
/* This is a weird testcase.  It should need PPRE to hoist the loop
22
   invariants and the volatileness of state_in prevents DSE of the
23
   first store.  Thus, this is XFAILed.  */
24
 
25
/* { dg-final { scan-tree-dump "Insertions: 2" "pre" { xfail *-*-* } } } */
26
/* { 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.