summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/frv/mwtacc.cgs
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/sim/frv/mwtacc.cgs')
-rw-r--r--sim/testsuite/sim/frv/mwtacc.cgs23
1 files changed, 23 insertions, 0 deletions
diff --git a/sim/testsuite/sim/frv/mwtacc.cgs b/sim/testsuite/sim/frv/mwtacc.cgs
new file mode 100644
index 00000000000..20b4d31885b
--- /dev/null
+++ b/sim/testsuite/sim/frv/mwtacc.cgs
@@ -0,0 +1,23 @@
+# frv testcase for mwtacc $FRinti,$ACC40k
+# mach: all
+
+ .include "testutils.inc"
+
+ start
+
+ .global mwtacc
+mwtacc:
+ test_accg_immed 0x00,accg0
+ test_acc_immed 0x00000000,acc0
+
+ set_fr_iimmed 0xdead,0xbeef,fr10
+ mwtacc fr10,acc0
+ test_accg_immed 0x00,accg0
+ test_acc_immed 0xdeadbeef,acc0
+
+ set_fr_iimmed 0x1234,0x5678,fr10
+ mwtacc fr10,acc0
+ test_accg_immed 0x00,accg0
+ test_acc_immed 0x12345678,acc0
+
+ pass