summaryrefslogtreecommitdiff
path: root/sim/testsuite/cr16/lshw_i.cgs
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/cr16/lshw_i.cgs')
-rw-r--r--sim/testsuite/cr16/lshw_i.cgs14
1 files changed, 14 insertions, 0 deletions
diff --git a/sim/testsuite/cr16/lshw_i.cgs b/sim/testsuite/cr16/lshw_i.cgs
new file mode 100644
index 00000000000..9e94a5ebf7f
--- /dev/null
+++ b/sim/testsuite/cr16/lshw_i.cgs
@@ -0,0 +1,14 @@
+# cr16 testcase for lshb_i $uimm4, reg
+# mach(): cr16
+
+ .include "testutils.inc"
+
+ start
+
+ .global lshb_i
+lshb_i:
+ movw $0x1234,r4
+ lshw $8, r4
+ test_h_gr r4, 0x3400
+
+ pass