URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 313 |
Rev 384 |
/* Verify that mov is preferred on XScale for loading a 1 byte constant. */
|
/* Verify that mov is preferred on XScale for loading a 1 byte constant. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-mcpu=xscale -O" } */
|
/* { dg-options "-mcpu=xscale -O" } */
|
|
|
unsigned load1(void) __attribute__ ((naked));
|
unsigned load1(void) __attribute__ ((naked));
|
unsigned load1(void)
|
unsigned load1(void)
|
{
|
{
|
/* Best code would be:
|
/* Best code would be:
|
mov r0, =17
|
mov r0, =17
|
mov pc, lr */
|
mov pc, lr */
|
|
|
return 17;
|
return 17;
|
}
|
}
|
|
|
/* { dg-final { scan-assembler "mov\[ ].*17" } } */
|
/* { dg-final { scan-assembler "mov\[ ].*17" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.