1# mach: crisv0 crisv3 crisv8 crisv10
2
3; Test that a forward as well as backward 32-bit "branch" expansion
4; works including that the right offset is applied.
5
6	.macro nop32
7	.rept 32
8	nop
9	.endr
10	.endm
11
12	.include "testutils.inc"
13	start
14	jump start1
15	fail
16
17	nop32
18	subq 63,$r10
199:	subq 1,$r10
20	nop32
21	jump 0f
22
23	fail
240:	move [$pc=$pc+1f-6-0b],$p0
25	nop32
26	fail
27
28	.skip 32768,0
29
30	nop32
31	subq 63,$r10
321:
33	subq 1,$r10
34	nop32
35	test.d $r10
36	bne 7f
37	nop
38	pass
397:
40	fail
41
42start1:
43	moveq 2,$r10
440:	move [$pc=$pc+9b-6-0b],$p0
45	subq 63,$r10
46	fail
47