| 1 |
extern int a; |
| 2 |
|
| 3 |
#if defined (__ARCHS__) || defined (__ARCEM__) |
| 4 |
__attribute__ ((interrupt("ilink"))) |
| 5 |
#else |
| 6 |
__attribute__ ((interrupt("ilink2"))) |
| 7 |
#endif |
| 8 |
void isr_1 (void) |
| 9 |
{ |
| 10 |
a++; |
| 11 |
} |
| 12 |
|
| 13 |
/* { dg-final { scan-assembler-times "j.*\[ilink2\]" 1 { target { arc6xx } } } } */ |
| 14 |
/* { dg-final { scan-assembler-times "rtie" 1 { target { ! { arc6xx } } } } } */ |
| 15 |
/* { dg-final { scan-assembler-times "push_s\\s+r\[0-9\]" 1 } } */ |
| 16 |
/* { dg-final { scan-assembler-times "pop_s\\s+r\[0-9\]" 1 } } */ |