Debian Codegraph @

gcc/testsuite/gcc.target/sh/sp-switch.c

raw
1 /* { dg-do compile } */
2 /* { dg-final { scan-assembler "mov\tr0,r15" } } */
3 /* { dg-final { scan-assembler ".long\t\[_\]*alt_stack" } } */
4
5 void *alt_stack;
6 void f() __attribute__ ((interrupt_handler, sp_switch ("alt_stack")));
7
8 void f()
9 {
10 }