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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20061031-1.c] - Rev 849

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

/* PR rtl-optimization/29631 */
/* Origin: Falk Hueffner <falk@debian.org> */
 
const signed char nunmap[] = { 17, -1, 1 };
 
__attribute__((noinline))
void ff(int i) {
    asm volatile("");
}
 
__attribute__((noinline))
void f(short delta)
{
    short p0 = 2, s;
    for (s = 0; s < 2; s++)
    {
        p0 += delta;
        ff(s);
        if (nunmap[p0] == 17)
            asm volatile("");
    }
}
 
int main(void)
{
    f(-1);
    return 0;
}
 

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

powered by: WebSVN 2.1.0

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