1//Original:/proj/frio/dv/testcases/core/c_progctrl_rts/c_progctrl_rts.dsp 2// Spec Reference: progctrl rts 3# mach: bfin 4 5.include "testutils.inc" 6 start 7 8 INIT_R_REGS 0; 9 10 ASTAT = r0; 11 12 loadsym R2, SUBR; 13 RETS = R2; 14 RTS; 15 16STOP: 17 18 CHECKREG r0, 0x00000000; 19 CHECKREG r1, 0x00000000; 20 CHECKREG r4, 0x00004444; 21 CHECKREG r5, 0x00000000; 22 CHECKREG r6, 0x00000000; 23 CHECKREG r7, 0x00000000; 24 25 pass 26 27SUBR: // should jump here 28 loadsym R3, STOP; 29 RETS = R3; 30 R4.L = 0x4444; 31 RTS; 32 RETS = R3; 33 R5.L = 0x5555; // should not go here 34 RTS; 35 36 fail 37