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.target/] [ia64/] [20030405-1.c] - Rev 319
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2" } */ int foo (int x, int y) { if (y == 0) { register long r8 asm ("r8"); register long r15 asm ("r15") = 1; long retval; __asm __volatile ("foo" : "=r" (r8), "=r" (r15) : "1" (r15)); retval = r8; y = retval; } { register long r8 asm ("r8"); register long r15 asm ("r15") = 2; long retval; register long _out1 asm ("out1") = x; register long _out0 asm ("out0") = y; __asm __volatile ("foo" : "=r" (r8), "=r" (r15) , "=r" (_out0), "=r" (_out1) : "1" (r15) , "2" (_out0), "3" (_out1)); retval = r8; return retval; } }