Commit | Line | Data |
---|---|---|
5e1f6430 HPN |
1 | # mach: crisv3 crisv8 crisv10 |
2 | # output: 23\n | |
3 | ||
4 | # Test that jsr [] records the correct return-address. | |
5 | ||
6 | .include "testutils.inc" | |
7 | start | |
8 | x: | |
9 | moveq 0,r3 | |
10 | jsr [z] | |
11 | addq 1,r3 | |
12 | nop | |
13 | nop | |
14 | nop | |
15 | nop | |
16 | nop | |
17 | move.d w,r2 | |
18 | jsr [r2] | |
19 | addq 1,r3 | |
20 | nop | |
21 | nop | |
22 | nop | |
23 | nop | |
24 | nop | |
25 | dumpr3 ; 23 | |
26 | quit | |
27 | y: | |
28 | ret | |
29 | addq 1,r3 | |
30 | quit | |
31 | ||
32 | v: | |
33 | ret | |
34 | addq 32,r3 | |
35 | quit | |
36 | ||
37 | z: | |
38 | .dword y | |
39 | w: | |
40 | .dword v |