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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [990617-1.c] - Rev 688

Compare with Previous | Blame | View Log

/* 0x70000000 is too large a constant to become a pointer on
   xstormy16. */
/* { dg-do assemble } */
/* { dg-xfail-if "" { xstormy16-*-* } { "*" } { "" } } */
 
int main()
{
    do {
        long l;
        long *p = &l;
 
        *p = 0x0000000070000000L;
        p += 2;
        {
            unsigned int *addr = (unsigned int *)0x70000000;
            printf("%d, %d\n", addr[1], addr[0]);
        }
 
    } while (1);
}
 
 

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.