mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
More v850 simulator tests.
This commit is contained in:
parent
f33e31a61a
commit
fc07e279aa
@ -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 \
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
load r2 0x11223344
|
||||
test_bsw:
|
||||
bsw r2
|
||||
check1 r2 0x44332211
|
||||
bsw r2, r3
|
||||
check1 r3 0x44332211
|
||||
|
||||
exit0
|
||||
|
27
sim/testsuite/v850eq-elf/t-callt.s
Normal file
27
sim/testsuite/v850eq-elf/t-callt.s
Normal 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
|
14
sim/testsuite/v850eq-elf/t-ctret.s
Normal file
14
sim/testsuite/v850eq-elf/t-ctret.s
Normal 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
|
10
sim/testsuite/v850eq-elf/t-hsw.s
Normal file
10
sim/testsuite/v850eq-elf/t-hsw.s
Normal file
@ -0,0 +1,10 @@
|
||||
.include "t-macros.i"
|
||||
|
||||
start
|
||||
|
||||
load r2 0x11223344
|
||||
test_hsw:
|
||||
hsw r2, r3
|
||||
check1 r3 0x33441122
|
||||
|
||||
exit0
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user