summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/call-saved-1.c
blob: 5c86b6c8cf9293e369e840564f509e1a36cf81a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Check that we save all call-saved GPRs in a MIPS16 __builtin_eh_return
   function.  */
/* { dg-options "(-mips16) isa_rev=0" } */

void bar (void);

MIPS16 void
foo (int x)
{
  __builtin_unwind_init ();
  __builtin_eh_return (x, bar);
}
/* { dg-final { scan-assembler "\\\$16" } } */
/* { dg-final { scan-assembler "\\\$17" } } */
/* { dg-final { scan-assembler "\\\$18" } } */
/* { dg-final { scan-assembler "\\\$19" } } */
/* { dg-final { scan-assembler "\\\$20" } } */
/* { dg-final { scan-assembler "\\\$21" } } */
/* { dg-final { scan-assembler "\\\$22" } } */
/* { dg-final { scan-assembler "\\\$23" } } */
/* { dg-final { scan-assembler "\\\$(30|fp)" } } */