]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/sim/fr30/jmp.cgs
Initial creation of sourceware repository
[thirdparty/binutils-gdb.git] / sim / testsuite / sim / fr30 / jmp.cgs
1 # fr30 testcase for jmp @$Ri
2 # mach(): fr30
3
4 .include "testutils.inc"
5
6 START
7
8 .text
9 .global jmp
10
11 ; Test jmp $Ri
12 mvi_h_gr #func1,r0
13 set_cc 0x0f ; condition codes shouldn't change
14 jmp1:
15 jmp @r0
16 fail
17 func1:
18 test_cc 1 1 1 1
19 mvi_h_gr #func2,r0
20 set_cc 0x0f ; condition codes shouldn't change
21 jmp2:
22 jmp:d @r0
23 ldi:8 1,r0 ; Must assume this works
24 fail
25 func2:
26 test_cc 1 1 1 1
27 testr_h_gr 1,r0
28
29 pass