* config/bfin/bfin.c (effective_address_32bit_p): Return true for
[official-gcc/alias-decl.git] / gcc / testsuite / gcc.dg / arm-scd42-2.c
blob1c257c173b6d532ce03449331db739b7b49d4c0f
1 /* Verify that mov is preferred on XScale for loading a 2 byte constant. */
2 /* { dg-do compile } */
3 /* { dg-options "-mcpu=xscale -O" } */
4 /* { dg-require-effective-target arm32 } */
6 unsigned load2(void) __attribute__ ((naked));
7 unsigned load2(void)
9 /* Best code would be:
10 mov r0, =272
11 add r0, r0, =1
12 mov pc, lr */
14 return 273;
17 /* { dg-final { scan-assembler "mov\[ ].*272" } } */