annotate gcc/testsuite/gcc.target/arm/scd42-2.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Verify that mov is preferred on XScale for loading a 2 byte constant. */
kono
parents:
diff changeset
2 /* { dg-do compile } */
kono
parents:
diff changeset
3 /* { dg-skip-if "Test is specific to the Xscale" { arm*-*-* } { "-march=*" } { "-march=xscale" } } */
kono
parents:
diff changeset
4 /* { dg-skip-if "Test is specific to the Xscale" { arm*-*-* } { "-mcpu=*" } { "-mcpu=xscale" } } */
kono
parents:
diff changeset
5 /* { dg-skip-if "Test is specific to ARM mode" { arm*-*-* } { "-mthumb" } { "" } } */
kono
parents:
diff changeset
6 /* { dg-require-effective-target arm32 } */
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
7 /* { dg-require-effective-target arm_arch_v5te_arm_ok } */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
8 /* { dg-options "-mcpu=xscale -O -marm" } */
111
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 unsigned load2(void) __attribute__ ((naked));
kono
parents:
diff changeset
11 unsigned load2(void)
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 /* Best code would be:
kono
parents:
diff changeset
14 mov r0, =272
kono
parents:
diff changeset
15 add r0, r0, =1
kono
parents:
diff changeset
16 mov pc, lr */
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 return 273;
kono
parents:
diff changeset
19 }
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 /* { dg-final { scan-assembler "mov\[ ].*272" } } */