aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cris/asm/pcplus.ms
blob: 99cd46af9e5487df591a62e62f3e8aa68d0463e2 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# mach: crisv0 crisv3 crisv8 crisv10

; Test that a forward as well as backward 32-bit "branch" expansion
; works including that the right offset is applied.

	.macro nop32
	.rept 32
	nop
	.endr
	.endm

	.include "testutils.inc"
	start
	jump start1
	fail

	nop32
	subq 63,$r10
9:	subq 1,$r10
	nop32
	jump 0f

	fail
0:	move [$pc=$pc+1f-6-0b],$p0
	nop32
	fail

	.skip 32768,0

	nop32
	subq 63,$r10
1:
	subq 1,$r10
	nop32
	test.d $r10
	bne 7f
	nop
	pass
7:
	fail

start1:
	moveq 2,$r10
0:	move [$pc=$pc+9b-6-0b],$p0
	subq 63,$r10
	fail