summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/fr30/jmp.cgs
blob: db4af220d3669e5e8acdc0ebbb49e94a015bc260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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