aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cr16/lshd.cgs
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/cr16/lshd.cgs')
-rw-r--r--sim/testsuite/cr16/lshd.cgs15
1 files changed, 15 insertions, 0 deletions
diff --git a/sim/testsuite/cr16/lshd.cgs b/sim/testsuite/cr16/lshd.cgs
new file mode 100644
index 0000000..e146ca1
--- /dev/null
+++ b/sim/testsuite/cr16/lshd.cgs
@@ -0,0 +1,15 @@
+# cr16 testcase for lshd reg, regp
+# mach(): cr16
+
+ .include "testutils.inc"
+
+ start
+
+ .global lshd
+lshd:
+ movd $0x12345678, (r4,r3)
+ movw $0x10, r5
+ lshd r5, (r4,r3)
+ test_h_grp "(r4,r3)", 0x56780000
+
+ pass