mips.h (ISA_HAS_DSP, [...]): New macros.
[official-gcc.git] / gcc / testsuite / gcc.dg / pragma-isr-trapa.c
blob2d32885dbdd0d81cdda0f74430d9220c80ab5fe4
1 /* { dg-do compile { target { { sh-*-* sh[1234ble]*-*-* } && nonpic } } } */
2 /* { dg-options "-O" } */
3 extern void foo ();
4 #pragma trapa
5 void
6 isr()
8 foo ();
11 /* { dg-final { scan-assembler-times "rte" 1} } */
12 /* No interrupt-specific saves should be needed. /
13 /* { dg-final { scan-assembler-not "r\[0-7\]\[ \t,\]\[^\n\]*r15" } } */
14 /* { dg-final { scan-assembler-not "@r15\[^\n\]*r\[0-7\]\n" } } */
15 /* { dg-final { scan-assembler-not "r\[8-9\]" } } */
16 /* { dg-final { scan-assembler-not "r1\[,0-3\]" } } */
17 /* { dg-final { scan-assembler-not "macl" } } */