OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [cris/] [asm/] [jsrmv10.ms] - Blame information for rev 840

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# 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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.