aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cr16/bcs.cgs
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/cr16/bcs.cgs')
-rw-r--r--sim/testsuite/cr16/bcs.cgs18
1 files changed, 18 insertions, 0 deletions
diff --git a/sim/testsuite/cr16/bcs.cgs b/sim/testsuite/cr16/bcs.cgs
new file mode 100644
index 0000000..0ba14b1
--- /dev/null
+++ b/sim/testsuite/cr16/bcs.cgs
@@ -0,0 +1,18 @@
+# cr16 testcase for bcs disp16
+# mach(): cr16
+
+ .include "testutils.inc"
+
+ start
+
+ .global bcs
+bcs:
+ mvi_h_condbit 0
+ movw $12, r4
+ movw $10, r5
+ subw r4, r5
+ bcs ok
+not_ok:
+ fail
+ok:
+ pass