* tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new block.
[official-gcc.git] / gcc / testsuite / gcc.dg / pragma-isr-trapa2.c
blob21c940b702cee6a32574913debec2159e99a18f0
1 /* { dg-do compile { target sh-*-* sh4*-*-*} } */
2 /* { dg-options "-O -m4" } */
4 extern void foo ();
5 #pragma trapa
6 void
7 isr()
9 foo ();
12 /* { dg-final { scan-assembler-times "rte" 1} } */
13 /* No interrupt-specific saves should be needed.
14 The function call will require to load the address first into a register,
15 then use that for a jsr or jmp. It will also need to load a constant
16 address in order to load fpscr. */
17 /* { dg-final { scan-assembler-times "r\[0-7\]\n" 3 } } */
18 /* { dg-final { scan-assembler-not "r\[8-9\]" } } */
19 /* { dg-final { scan-assembler-not "r1\[,0-3\]" } } */
20 /* { dg-final { scan-assembler-not "macl" } } */
21 /* fpscr needs to be saved, loaded and restored. */
22 /* { dg-final { scan-assembler-times "\[^_\]fpscr" 3 } } */