interrupt_handler.c: New test.
2009-04-02 Chao-ying Fu <fu@mips.com> * gcc.target/mips/interrupt_handler.c: New test. From-SVN: r145482
This commit is contained in:
parent
e19da24c65
commit
e97d7fa9f9
@ -1,3 +1,7 @@
|
||||
2009-04-02 Chao-ying Fu <fu@mips.com>
|
||||
|
||||
* gcc.target/mips/interrupt_handler.c: New test.
|
||||
|
||||
2009-04-02 David Ayers <ayers@fsfe.org>
|
||||
|
||||
PR objc/18456
|
||||
|
23
gcc/testsuite/gcc.target/mips/interrupt_handler.c
Normal file
23
gcc/testsuite/gcc.target/mips/interrupt_handler.c
Normal file
@ -0,0 +1,23 @@
|
||||
/* Test attributes for interrupt handlers */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-mips32r2 -msoft-float" } */
|
||||
|
||||
void f () { }
|
||||
|
||||
void __attribute__ ((interrupt)) v0 () { }
|
||||
void __attribute__ ((interrupt, use_shadow_register_set)) v1 () { }
|
||||
void __attribute__ ((interrupt, keep_interrupts_masked)) v2 () { }
|
||||
void __attribute__ ((interrupt, use_debug_exception_return)) v3 () { }
|
||||
void __attribute__ ((interrupt, use_shadow_register_set, keep_interrupts_masked)) v4 () { }
|
||||
void __attribute__ ((interrupt, use_shadow_register_set, use_debug_exception_return)) v5 () { }
|
||||
void __attribute__ ((interrupt, keep_interrupts_masked, use_debug_exception_return)) v6 () { }
|
||||
void __attribute__ ((interrupt, use_shadow_register_set, keep_interrupts_masked, use_debug_exception_return)) v7 () { }
|
||||
|
||||
void __attribute__ ((interrupt)) w0 () { t(); }
|
||||
void __attribute__ ((interrupt, use_shadow_register_set)) w1 () { t(); }
|
||||
void __attribute__ ((interrupt, keep_interrupts_masked)) w2 () { t(); }
|
||||
void __attribute__ ((interrupt, use_debug_exception_return)) w3 () { t(); }
|
||||
void __attribute__ ((interrupt, use_shadow_register_set, keep_interrupts_masked)) w4 () { t(); }
|
||||
void __attribute__ ((interrupt, use_shadow_register_set, use_debug_exception_return)) w5 () { t(); }
|
||||
void __attribute__ ((interrupt, keep_interrupts_masked, use_debug_exception_return)) w6 () { t(); }
|
||||
void __attribute__ ((interrupt, use_shadow_register_set, keep_interrupts_masked, use_debug_exception_return)) w7 () { t(); }
|
Loading…
Reference in New Issue
Block a user