More v850 simulator tests.

This commit is contained in:
Andrew Cagney 1997-09-17 05:27:56 +00:00
parent f33e31a61a
commit fc07e279aa
8 changed files with 62 additions and 8 deletions

View File

@ -85,6 +85,9 @@ TESTS= \
\
t-bsh.ok \
t-bsw.ok \
t-callt.ok \
t-ctret.ok \
t-hsw.ok \
t-ldsr.ok \
t-sxb.ok \
t-sxh.ok \

View File

@ -4,7 +4,7 @@
load r2 0x11223344
test_bsw:
bsw r2
check1 r2 0x44332211
bsw r2, r3
check1 r3 0x44332211
exit0

View File

@ -0,0 +1,27 @@
.include "t-macros.i"
start
# Set the callt base pointer
load r1 callt_base
ldsr r1, ctbp
test_callt:
callt 2
exit47
.align 1
callt_base:
.short -1
.short -1
.short (dest - callt_base)
.short -1
.short -1
dest:
stsr ctpc, r2
check1 r2 test_callt+2
exit0

View File

@ -0,0 +1,14 @@
.include "t-macros.i"
start
# Set the callt base pointer
load r1 ctret_dest
ldsr r1, ctpc
test_ctret:
ctret
exit47
ctret_dest:
exit0

View File

@ -0,0 +1,10 @@
.include "t-macros.i"
start
load r2 0x11223344
test_hsw:
hsw r2, r3
check1 r3 0x33441122
exit0

View File

@ -5,11 +5,11 @@
load r2 0x80
test_sxb:
sxb r2
check r2 0xffffff80
check1 r2 0xffffff80
load r2 0x7f
test_sxb2:
sxb r2
check r2 0x7f
check1 r2 0x7f
exit0

View File

@ -5,11 +5,11 @@
load r2 0xffffff80
test_zxb:
zxb r2
check r2 0x80
check1 r2 0x80
load r2 0xffffff7f
test_zxb2:
zxb r2
check r2 0x7f
check1 r2 0x7f
exit0

View File

@ -5,11 +5,11 @@
load r2 0xffff8000
test_zxh:
zxh r2
check r2 0x80
check1 r2 0x8000
load r2 0xffff7fff
test_zxh2:
zxh r2
check r2 0x7fff
check1 r2 0x7fff
exit0