aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cr16/pop3.cgs
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/cr16/pop3.cgs')
-rw-r--r--sim/testsuite/cr16/pop3.cgs24
1 files changed, 24 insertions, 0 deletions
diff --git a/sim/testsuite/cr16/pop3.cgs b/sim/testsuite/cr16/pop3.cgs
new file mode 100644
index 0000000..13478f1
--- /dev/null
+++ b/sim/testsuite/cr16/pop3.cgs
@@ -0,0 +1,24 @@
+# cr16 testcase for pop RA insns.
+# mach: cr16
+
+ .include "testutils.inc"
+
+ start
+
+ .global pop3
+pop3:
+ movd $0x1006, (sp)
+ movd $0xabcd, (r3,r2)
+ stord (r3,r2), 0x1006
+ pop RA
+
+
+ cmpd $0xabcd, (ra)
+ beq ok
+ br not_ok
+not_ok:
+ fail
+ok:
+ pass
+
+