summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/m32r/beqz.cgs
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/sim/m32r/beqz.cgs')
-rw-r--r--sim/testsuite/sim/m32r/beqz.cgs18
1 files changed, 18 insertions, 0 deletions
diff --git a/sim/testsuite/sim/m32r/beqz.cgs b/sim/testsuite/sim/m32r/beqz.cgs
new file mode 100644
index 00000000000..654737d3d46
--- /dev/null
+++ b/sim/testsuite/sim/m32r/beqz.cgs
@@ -0,0 +1,18 @@
+# m32r testcase for beqz $src2,$disp16
+# mach(): m32r m32rx
+
+ .include "testutils.inc"
+
+ start
+
+ .global beqz
+beqz:
+ mvi_h_gr r4, 0
+ beqz r4, ok
+not_ok:
+ fail
+ok:
+ mvi_h_gr r4, 1
+ beqz r4, not_ok
+
+ pass