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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [attr-isr-trap_exit.c] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile { target sh-*-* sh[1234ble]*-*-*} } */
2
/* { dg-options "-O" } */
3
/* Check that trapa / interrput_handler attributes can paired in
4
   either order.  */
5
void h0() __attribute__ ((trap_exit (4))) __attribute__ ((interrupt_handler));
6
void h1() __attribute__ ((interrupt_handler)) __attribute__ ((trap_exit (5)));
7
 
8
void foo ()
9
{
10
}
11
 
12
void h0 () {}
13
/* { dg-final { scan-assembler "trapa\[ \t\]\[ \t\]*#4"} } */
14
/* { dg-final { scan-assembler-times "trapa" 1} } */
15
 
16
void delay(int a)
17
{
18
}
19
int main()
20
{
21
  return 0;
22
}
23
 

powered by: WebSVN 2.1.0

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