1 /* Verify that mov is preferred on XScale for loading a 1 byte constant. */
2 /* { dg-do compile } */
3 /* { dg-skip-if "Test is specific to Xscale" { arm*-*-* } { "-march=*" } { "-march=xscale" } } */
4 /* { dg-skip-if "Test is specific to Xscale" { arm*-*-* } { "-mcpu=*" } { "-mcpu=xscale" } } */
5 /* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=softfp" } } */
6 /* { dg-options "-mcpu=xscale -O -mfloat-abi=softfp" } */
8 unsigned load1(void) __attribute__ ((naked
));
11 /* Best code would be:
18 /* { dg-final { scan-assembler "mov\[ ].*17" { target { arm_nothumb } } } } */
19 /* { dg-final { scan-assembler "movs\[ ].*17" { target { ! arm_nothumb } } } } */