OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [call-saved-3.c] - Blame information for rev 321

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* Check that we save all call-saved GPRs in a MIPS16 __builtin_setjmp
2
   function.  */
3
/* { dg-options "(-mips16) isa_rev=0 -O2" } */
4
 
5
void bar (void);
6
extern int buf[];
7
 
8
MIPS16 void
9
foo (int x)
10
{
11
  if (__builtin_setjmp (buf) == 0)
12
    bar();
13
}
14
/* { dg-final { scan-assembler "\\\$16" } } */
15
/* { dg-final { scan-assembler "\\\$17" } } */
16
/* { dg-final { scan-assembler "\\\$18" } } */
17
/* { dg-final { scan-assembler "\\\$19" } } */
18
/* { dg-final { scan-assembler "\\\$20" } } */
19
/* { dg-final { scan-assembler "\\\$21" } } */
20
/* { dg-final { scan-assembler "\\\$22" } } */
21
/* { dg-final { scan-assembler "\\\$23" } } */
22
/* { dg-final { scan-assembler "\\\$(30|fp)" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.