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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pragma-isr-trapa2.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile { target { { sh-*-* sh4*-*-* } && nonpic } } } */
2
/* { dg-skip-if "FPU Required" { "sh*-*-*" } { "-m*nofpu*" } { "" } } */
3
/* { dg-skip-if "FPU Required" { "sh*-*-*" } { "-m4al*" } { "" } } */
4
/* { dg-options "-O -m4" } */
5
 
6
extern void foo ();
7
#pragma trapa
8
void
9
isr()
10
{
11
  foo ();
12
}
13
 
14
/* { dg-final { scan-assembler-times "rte" 1} } */
15
/* No interrupt-specific saves should be needed.
16
   The function call will require to load the address first into a register,
17
   then use that for a jsr or jmp.  It will also need to load a constant
18
   address in order to load fpscr.  */
19
/* { dg-final { scan-assembler-times "r\[0-7\]\n" 3 } } */
20
/* { dg-final { scan-assembler-not "r\[8-9\]" } } */
21
/* { dg-final { scan-assembler-not "r1\[,0-3\]" } } */
22
/* { dg-final { scan-assembler-not "macl" } } */
23
/* fpscr needs to be saved, loaded and restored.  */
24
/* { dg-final { scan-assembler-times "\[^_\]fpscr" 3 } } */

powered by: WebSVN 2.1.0

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