Rebase.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / call-saved-2.c
blobb55c30ab06286c8bc6b84cfe04a1a1e7e94a89a8
1 /* Check that we save non-MIPS16 GPRs if they are explicitly clobbered. */
2 /* { dg-options "(-mips16) isa_rev=0" } */
3 /* { dg-skip-if "naming registers makes this a code quality test" { *-*-* } { "-O0" } { "" } } */
5 MIPS16 void
6 foo (void)
8 asm volatile ("" ::: "$19", "$23", "$24", "$30");
10 /* { dg-final { scan-assembler-not "\\\$16" } } */
11 /* { dg-final { scan-assembler-not "\\\$17" } } */
12 /* { dg-final { scan-assembler-not "\\\$18" } } */
13 /* { dg-final { scan-assembler "\\\$19" } } */
14 /* { dg-final { scan-assembler-not "\\\$20" } } */
15 /* { dg-final { scan-assembler-not "\\\$21" } } */
16 /* { dg-final { scan-assembler-not "\\\$22" } } */
17 /* { dg-final { scan-assembler "\\\$23" } } */
18 /* { dg-final { scan-assembler-not "\\\$24" } } */
19 /* { dg-final { scan-assembler "\\\$(30|fp)" } } */