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