summaryrefslogtreecommitdiff
path: root/sim/testsuite/cr16/lshb.cgs
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/cr16/lshb.cgs')
-rw-r--r--sim/testsuite/cr16/lshb.cgs15
1 files changed, 15 insertions, 0 deletions
diff --git a/sim/testsuite/cr16/lshb.cgs b/sim/testsuite/cr16/lshb.cgs
new file mode 100644
index 00000000000..59ddbba1a67
--- /dev/null
+++ b/sim/testsuite/cr16/lshb.cgs
@@ -0,0 +1,15 @@
+# cr16 testcase for lshb count, reg
+# mach(): cr16
+
+ .include "testutils.inc"
+
+ start
+
+ .global lshb
+lshb:
+ movb $6, r4
+ movb $1, r5
+ lshb r5, r4
+ test_h_gr r4, 12
+
+ pass