URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [arm/] [scd42-3.c] - Rev 826
Compare with Previous | Blame | View Log
/* Verify that ldr is preferred on XScale for loading a 3 or 4 byte constant. */ /* { dg-do compile } */ /* { dg-options "-mcpu=xscale -O" } */ unsigned load4(void) __attribute__ ((naked)); unsigned load4(void) { /* Best code would be: ldr r0, =65809 mov pc, lr */ return 65809; } /* { dg-final { scan-assembler "ldr\[ ].*" } } */