URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr36753.c] - Rev 516
Compare with Previous | Blame | View Log
/* { dg-options "-O2" } */ /* { dg-do run } */ #if defined __i386__ #define REG "edi" #else #define REG "r14" #endif register unsigned long *ds asm(REG); extern void abort (void); __attribute__ ((noinline)) void test (void) { *++ds = 31337; } int main () { unsigned long stack[2]; stack[0] = 0; stack[1] = 0; ds = stack; test (); if (ds != stack + 1 || *ds != 31337) abort (); return 0; }