summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/fr30/jmp.cgs
diff options
context:
space:
mode:
Diffstat (limited to 'sim/testsuite/sim/fr30/jmp.cgs')
-rw-r--r--sim/testsuite/sim/fr30/jmp.cgs29
1 files changed, 29 insertions, 0 deletions
diff --git a/sim/testsuite/sim/fr30/jmp.cgs b/sim/testsuite/sim/fr30/jmp.cgs
new file mode 100644
index 00000000000..db4af220d36
--- /dev/null
+++ b/sim/testsuite/sim/fr30/jmp.cgs
@@ -0,0 +1,29 @@
+# fr30 testcase for jmp @$Ri
+# mach(): fr30
+
+ .include "testutils.inc"
+
+ START
+
+ .text
+ .global jmp
+
+ ; Test jmp $Ri
+ mvi_h_gr #func1,r0
+ set_cc 0x0f ; condition codes shouldn't change
+jmp1:
+ jmp @r0
+ fail
+func1:
+ test_cc 1 1 1 1
+ mvi_h_gr #func2,r0
+ set_cc 0x0f ; condition codes shouldn't change
+jmp2:
+ jmp:d @r0
+ ldi:8 1,r0 ; Must assume this works
+ fail
+func2:
+ test_cc 1 1 1 1
+ testr_h_gr 1,r0
+
+ pass