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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20090328-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
union loc {  unsigned reg; signed offset; };
2
void __frame_state_for (volatile char *state_in, int x)
3
{
4
  /* We should move all the loads out of this loop. Right now, we only
5
     move one.  It takes two insertions because we insert a cast.  */
6
    union loc fs;
7
    int reg;
8
    for (;;)     {
9
        switch (x)  {
10
            case 0:
11
                *state_in = fs.reg;
12
            case 1:
13
                *state_in = fs.offset;
14
        }
15
    }
16
}
17
 

powered by: WebSVN 2.1.0

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