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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pragma-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
/* This test case will check whether trapa is generated only for isr.  */
4
#pragma interrupt
5
void isr() __attribute__ ((trap_exit (4)));
6
void isr()
7
{
8
}
9
void delay(int a)
10
{
11
}
12
int main()
13
{
14
  return 0;
15
}
16
 
17
/* { dg-final { scan-assembler-times "trapa\[ \t\]\[ \t\]*#4" 1} } */

powered by: WebSVN 2.1.0

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