Test rachi instruction.
authorAndrew Cagney <cagney@redhat.com>
Mon, 10 Nov 1997 08:27:15 +0000 (08:27 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 10 Nov 1997 08:27:15 +0000 (08:27 +0000)
sim/testsuite/d10v-elf/ChangeLog [new file with mode: 0644]
sim/testsuite/d10v-elf/Makefile.in
sim/testsuite/d10v-elf/t-rachi.s [new file with mode: 0644]

diff --git a/sim/testsuite/d10v-elf/ChangeLog b/sim/testsuite/d10v-elf/ChangeLog
new file mode 100644 (file)
index 0000000..5f2acd3
--- /dev/null
@@ -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.
+
index 84b0c30782506dcb517387aea1ccb9700198a008..dab5b66708f3c9e8b8989ad44350636058da4a0c 100644 (file)
@@ -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 (file)
index 0000000..479839c
--- /dev/null
@@ -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
This page took 0.027137 seconds and 4 git commands to generate.