1 |
321 |
jeremybenn |
/* Test attributes for interrupt handlers */
|
2 |
|
|
/* { dg-do assemble } */
|
3 |
|
|
/* { dg-options "-mips32r2 -msoft-float" } */
|
4 |
|
|
|
5 |
|
|
void f () { }
|
6 |
|
|
|
7 |
|
|
NOMIPS16 void __attribute__ ((interrupt)) v0 () { }
|
8 |
|
|
NOMIPS16 void __attribute__ ((interrupt, use_shadow_register_set)) v1 () { }
|
9 |
|
|
NOMIPS16 void __attribute__ ((interrupt, keep_interrupts_masked)) v2 () { }
|
10 |
|
|
NOMIPS16 void __attribute__ ((interrupt, use_debug_exception_return)) v3 () { }
|
11 |
|
|
NOMIPS16 void __attribute__ ((interrupt, use_shadow_register_set, keep_interrupts_masked)) v4 () { }
|
12 |
|
|
NOMIPS16 void __attribute__ ((interrupt, use_shadow_register_set, use_debug_exception_return)) v5 () { }
|
13 |
|
|
NOMIPS16 void __attribute__ ((interrupt, keep_interrupts_masked, use_debug_exception_return)) v6 () { }
|
14 |
|
|
NOMIPS16 void __attribute__ ((interrupt, use_shadow_register_set, keep_interrupts_masked, use_debug_exception_return)) v7 () { }
|
15 |
|
|
|
16 |
|
|
NOMIPS16 void __attribute__ ((interrupt)) w0 () { t(); }
|
17 |
|
|
NOMIPS16 void __attribute__ ((interrupt, use_shadow_register_set)) w1 () { t(); }
|
18 |
|
|
NOMIPS16 void __attribute__ ((interrupt, keep_interrupts_masked)) w2 () { t(); }
|
19 |
|
|
NOMIPS16 void __attribute__ ((interrupt, use_debug_exception_return)) w3 () { t(); }
|
20 |
|
|
NOMIPS16 void __attribute__ ((interrupt, use_shadow_register_set, keep_interrupts_masked)) w4 () { t(); }
|
21 |
|
|
NOMIPS16 void __attribute__ ((interrupt, use_shadow_register_set, use_debug_exception_return)) w5 () { t(); }
|
22 |
|
|
NOMIPS16 void __attribute__ ((interrupt, keep_interrupts_masked, use_debug_exception_return)) w6 () { t(); }
|
23 |
|
|
NOMIPS16 void __attribute__ ((interrupt, use_shadow_register_set, keep_interrupts_masked, use_debug_exception_return)) w7 () { t(); }
|