]> matita.cs.unibo.it Git - pkg-cerco/acc.git/blob - tests/GCCTestSuite/arm-scd42-1.c.expected
Imported Upstream version 0.2
[pkg-cerco/acc.git] / tests / GCCTestSuite / arm-scd42-1.c.expected
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" } */
4
5 unsigned load1(void) __attribute__ ((naked));
6 unsigned load1(void)
7 {
8     /* Best code would be:
9        mov r0, =17
10        mov pc, lr */
11
12     return 17;
13 }
14
15 /* { dg-final { scan-assembler "mov\[   ].*17" } } */