aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cr16/subd.cgs
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/cr16/subd.cgs')
-rw-r--r--sim/testsuite/cr16/subd.cgs18
1 files changed, 18 insertions, 0 deletions
diff --git a/sim/testsuite/cr16/subd.cgs b/sim/testsuite/cr16/subd.cgs
new file mode 100644
index 0000000..2e2a334
--- /dev/null
+++ b/sim/testsuite/cr16/subd.cgs
@@ -0,0 +1,18 @@
+# cr16 testcase for subd $sr,$dr
+# mach(): cr16
+
+ .include "testutils.inc"
+
+ start
+
+ .global subd
+subd:
+
+ movd $0x12345678, (r4,r3)
+ movd $0x11111111, (r6,r5)
+
+ subd (r6,r5), (r4,r3)
+
+ test_h_grp "(r4,r3)", 0x1234567
+
+ pass