URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 157 |
# mach: crisv3 crisv8 crisv10
|
# mach: crisv3 crisv8 crisv10
|
# output: 23\n
|
# output: 23\n
|
|
|
# Test that jsr [] records the correct return-address.
|
# Test that jsr [] records the correct return-address.
|
|
|
.include "testutils.inc"
|
.include "testutils.inc"
|
start
|
start
|
x:
|
x:
|
moveq 0,r3
|
moveq 0,r3
|
jsr [z]
|
jsr [z]
|
addq 1,r3
|
addq 1,r3
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
move.d w,r2
|
move.d w,r2
|
jsr [r2]
|
jsr [r2]
|
addq 1,r3
|
addq 1,r3
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
nop
|
dumpr3 ; 23
|
dumpr3 ; 23
|
quit
|
quit
|
y:
|
y:
|
ret
|
ret
|
addq 1,r3
|
addq 1,r3
|
quit
|
quit
|
|
|
v:
|
v:
|
ret
|
ret
|
addq 32,r3
|
addq 32,r3
|
quit
|
quit
|
|
|
z:
|
z:
|
.dword y
|
.dword y
|
w:
|
w:
|
.dword v
|
.dword v
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.