summaryrefslogtreecommitdiff
path: root/sim/testsuite/cr16/bne.cgs
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/cr16/bne.cgs')
-rw-r--r--sim/testsuite/cr16/bne.cgs22
1 files changed, 22 insertions, 0 deletions
diff --git a/sim/testsuite/cr16/bne.cgs b/sim/testsuite/cr16/bne.cgs
new file mode 100644
index 00000000000..3740f2463ec
--- /dev/null
+++ b/sim/testsuite/cr16/bne.cgs
@@ -0,0 +1,22 @@
+# cr16 testcase for bne disp16
+# mach(): cr16
+
+ .include "testutils.inc"
+
+ start
+
+ .global bne
+bne:
+ movw $1, r4
+ movw $2, r5
+ cmpw r4,r5
+ bne test0pass
+test1fail:
+ fail
+
+test0pass:
+ movw $1, r5
+ cmpw r4,r5
+ bne test1fail
+
+ pass