summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/call-saved-2.c
blob: 9ac7a2735adf77189ba4addb8923841f6c0f68e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Check that we save non-MIPS16 GPRs if they are explicitly clobbered.  */
/* { dg-options "(-mips16) isa_rev=0 -O2" } */

MIPS16 void
foo (void)
{
  asm volatile ("" ::: "$19", "$23", "$24", "$30");
}
/* { dg-final { scan-assembler-not "\\\$16" } } */
/* { dg-final { scan-assembler-not "\\\$17" } } */
/* { dg-final { scan-assembler-not "\\\$18" } } */
/* { dg-final { scan-assembler "\\\$19" } } */
/* { dg-final { scan-assembler-not "\\\$20" } } */
/* { dg-final { scan-assembler-not "\\\$21" } } */
/* { dg-final { scan-assembler-not "\\\$22" } } */
/* { dg-final { scan-assembler "\\\$23" } } */
/* { dg-final { scan-assembler-not "\\\$24" } } */
/* { dg-final { scan-assembler "\\\$(30|fp)" } } */