Test rachi instruction.
This commit is contained in:
parent
8cb060b6b0
commit
51624b4bf6
8
sim/testsuite/d10v-elf/ChangeLog
Normal file
8
sim/testsuite/d10v-elf/ChangeLog
Normal file
@ -0,0 +1,8 @@
|
||||
Mon Nov 10 19:21:26 1997 Andrew Cagney <cagney@b1.cygnus.com>
|
||||
|
||||
* t-macros.i (_start): New file.
|
||||
* t-rachi.s: New file.
|
||||
|
||||
* Makefile.in (RUN_FOR_TARGET): Look for simulator in d10v
|
||||
directory.
|
||||
|
@ -39,7 +39,8 @@ RPATH_ENVVAR = @RPATH_ENVVAR@
|
||||
|
||||
TESTS = \
|
||||
exit47.ko \
|
||||
hello.hi
|
||||
hello.hi \
|
||||
t-rachi.ok
|
||||
|
||||
AS_FOR_TARGET = `\
|
||||
if [ -x ../../../gas/as-new ]; then \
|
||||
@ -56,8 +57,8 @@ LD_FOR_TARGET = `\
|
||||
fi`
|
||||
|
||||
RUN_FOR_TARGET = `\
|
||||
if [ -x ../../../sim/v850/run ]; then \
|
||||
echo ../../../sim/v850/run ; \
|
||||
if [ -x ../../../sim/d10v/run ]; then \
|
||||
echo ../../../sim/d10v/run ; \
|
||||
else \
|
||||
echo $(target_alias)-run ; \
|
||||
fi`
|
||||
|
32
sim/testsuite/d10v-elf/t-rachi.s
Normal file
32
sim/testsuite/d10v-elf/t-rachi.s
Normal file
@ -0,0 +1,32 @@
|
||||
.include "t-macros.i"
|
||||
|
||||
start
|
||||
|
||||
load r2 0x7FFF8000
|
||||
mv2wtac r2, a0
|
||||
test_rachi_1:
|
||||
rachi r4, a0, 0
|
||||
check1 r4 0x7FFF
|
||||
|
||||
|
||||
load r2 0x80001000
|
||||
mv2wtac r2, a0
|
||||
test_rachi_2:
|
||||
rachi r4, a0, 0
|
||||
check1 r4 0x8000
|
||||
|
||||
|
||||
load r2 0x1000A000
|
||||
mv2wtac r2, a0
|
||||
test_rachi_3:
|
||||
rachi r4, a0, 0
|
||||
check1 r4 0x1001
|
||||
|
||||
|
||||
load r2 0xA0007FFF
|
||||
mv2wtac r2, a0
|
||||
test_rachi_4:
|
||||
rachi r4, a0, 0
|
||||
check1 r4 0xa000
|
||||
|
||||
exit0
|
Loading…
Reference in New Issue
Block a user