aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/frv/calll.cgs
blob: eee73bc2a9737e85ac0dd4e6dc7858a05eae32a3 (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
# frv testcase for calll @($GRi,$GRj)
# mach: all

	.include "testutils.inc"

	start

	.global calll
calll:
	set_gr_addr	ok2,gr8
	inc_gr_immed	-4,gr8
	inc_gr_immed	4,gr9
	calll		@(gr8,gr9)
bad2:
	fail
ok2:
	test_spr_addr	bad2,lr

	set_gr_addr	ok3,gr8
	inc_gr_immed	4,gr8
	set_gr_immed	-4,gr9
	calll		@(gr8,gr9)
bad3:
	fail
ok3:
	test_spr_addr	bad3,lr

	pass