Add test for "mtsa"
authorAndrew Cagney <cagney@redhat.com>
Tue, 29 Jul 1997 00:57:39 +0000 (00:57 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 29 Jul 1997 00:57:39 +0000 (00:57 +0000)
sim/testsuite/mips64vr5900el-elf/ChangeLog
sim/testsuite/mips64vr5900el-elf/Makefile.in
sim/testsuite/mips64vr5900el-elf/t-mtsa.s [new file with mode: 0644]

index a6ad061770fe705d8ed0808ffeea9ed58ae39fdc..444ff9a866f0d68690f157336a000b55b8857295 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jul 29 10:56:53 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * t-mtsa.s: Check move/from SA instructions.
+
 Mon Jul 28 20:51:16 1997  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * t-pdivuw.s: Also check normal cases.
index 2efdd7a6410b80ff3d3f8c7d464e6ee628d5ce64..849efb3d10f85b2694ce28bdc47d17a74a50fca8 100644 (file)
@@ -82,6 +82,7 @@ TESTS = \
        hello.ok \
        exit47.ko \
        \
+       t-mtsa.ok \
        t-paddb.ok \
        t-paddsb.ok \
        t-paddsh.ok \
diff --git a/sim/testsuite/mips64vr5900el-elf/t-mtsa.s b/sim/testsuite/mips64vr5900el-elf/t-mtsa.s
new file mode 100644 (file)
index 0000000..04ad529
--- /dev/null
@@ -0,0 +1,11 @@
+.include "t-macros.i"
+
+       start
+
+test_mtsa:     
+        load $9 0x0000000000000000 0x0000000000000020 # 32
+        mtsa $9
+        mfsa $10      #Expectation rd:0x20
+        check10 0x0000000000000000 0x0000000000000020
+
+       exit0