| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -mgeneral-regs-only -mno-cld -mno-iamcu -m80387" } */ |
| 3 |
|
| 4 |
typedef unsigned int uword_t __attribute__ ((mode (__word__))); |
| 5 |
|
| 6 |
void |
| 7 |
__attribute__((interrupt)) |
| 8 |
fn1 (void *frame, uword_t error) |
| 9 |
{ /* { dg-message "80387 instructions aren't allowed in an exception service routine" } */ |
| 10 |
} |
| 11 |
|
| 12 |
void |
| 13 |
__attribute__((interrupt)) |
| 14 |
fn2 (void *frame) |
| 15 |
{ /* { dg-message "80387 instructions aren't allowed in an interrupt service routine" } */ |
| 16 |
} |