sim: bfin: import testsuite
[deliverable/binutils-gdb.git] / sim / testsuite / sim / bfin / c_calla_ljump.s
1 //Original:/testcases/core/c_calla_ljump/c_calla_ljump.dsp
2 // Spec Reference: progctrl calla ljump
3 # mach: bfin
4
5 .include "testutils.inc"
6 start
7
8
9 INIT_R_REGS 0;
10
11 JUMP.L SUBR;
12
13 JBACK:
14
15 CHECKREG r0, 0x00000000;
16 CHECKREG r1, 0x00001111;
17 CHECKREG r2, 0x00000000;
18 CHECKREG r3, 0x00000000;
19 CHECKREG r4, 0x00000000;
20 CHECKREG r5, 0x00000000;
21 CHECKREG r6, 0x00000000;
22 CHECKREG r7, 0x00000000;
23
24 pass
25
26 SUBR: // should jump here
27 R1.L = 0x1111;
28 JUMP.L JBACK;
29 R2.L = 0x2222; // should not go here
30 JUMP.L JBACK;
31 RTS;
This page took 0.030766 seconds and 4 git commands to generate.