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