blob: 70b34de2d1248b842dbe018ae29c04a53353e6c4 [file] [log] [blame]
/* Verify that mov is preferred on XScale for loading a 1 byte constant. */
/* { dg-do compile { target xscale-*-* } } */
/* { dg-options "-mcpu=xscale -O" } */
unsigned load1(void) __attribute__ ((naked));
unsigned load1(void)
{
/* Best code would be:
mov r0, =17
mov pc, lr */
return 17;
}
/* { dg-final { scan-assembler "mov\[ ].*17" } } */