* gcc.dg/ucnid-[23456].c: XFAIL on AIX.
[official-gcc.git] / gcc / testsuite / gcc.dg / arm-scd42-3.c
blob80a4ba8dbf1123538019fcf3c88bf8b863597e52
1 /* Verify that ldr is preferred on XScale for loading a 3 or 4 byte constant. */
2 /* { dg-do compile { target xscale-*-* } } */
3 /* { dg-options "-mcpu=xscale -O" } */
5 unsigned load4(void) __attribute__ ((naked));
6 unsigned load4(void)
8 /* Best code would be:
9 ldr r0, =65809
10 mov pc, lr */
12 return 65809;
15 /* { dg-final { scan-assembler "ldr\[ ].*" } } */