2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / arm-scd42-1.c
blob70b34de2d1248b842dbe018ae29c04a53353e6c4
1 /* Verify that mov is preferred on XScale for loading a 1 byte constant. */
2 /* { dg-do compile { target xscale-*-* } } */
3 /* { dg-options "-mcpu=xscale -O" } */
5 unsigned load1(void) __attribute__ ((naked));
6 unsigned load1(void)
8 /* Best code would be:
9 mov r0, =17
10 mov pc, lr */
12 return 17;
15 /* { dg-final { scan-assembler "mov\[ ].*17" } } */