From 51624b4bf6afd8ea0d69b890a8023cf365cd6228 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Mon, 10 Nov 1997 08:27:15 +0000 Subject: [PATCH] Test rachi instruction. --- sim/testsuite/d10v-elf/ChangeLog | 8 ++++++++ sim/testsuite/d10v-elf/Makefile.in | 7 ++++--- sim/testsuite/d10v-elf/t-rachi.s | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 sim/testsuite/d10v-elf/ChangeLog create mode 100644 sim/testsuite/d10v-elf/t-rachi.s diff --git a/sim/testsuite/d10v-elf/ChangeLog b/sim/testsuite/d10v-elf/ChangeLog new file mode 100644 index 0000000..5f2acd3 --- /dev/null +++ b/sim/testsuite/d10v-elf/ChangeLog @@ -0,0 +1,8 @@ +Mon Nov 10 19:21:26 1997 Andrew Cagney + + * t-macros.i (_start): New file. + * t-rachi.s: New file. + + * Makefile.in (RUN_FOR_TARGET): Look for simulator in d10v + directory. + diff --git a/sim/testsuite/d10v-elf/Makefile.in b/sim/testsuite/d10v-elf/Makefile.in index 84b0c30..dab5b66 100644 --- a/sim/testsuite/d10v-elf/Makefile.in +++ b/sim/testsuite/d10v-elf/Makefile.in @@ -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` diff --git a/sim/testsuite/d10v-elf/t-rachi.s b/sim/testsuite/d10v-elf/t-rachi.s new file mode 100644 index 0000000..479839c --- /dev/null +++ b/sim/testsuite/d10v-elf/t-rachi.s @@ -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 -- 2.7.4