summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mips/branch-addend.s
blob: f600b36bc90681f4f28a45766ecec35b17492ae2 (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
	.text
	.set	noreorder
	.space	0x1000

	.align	4
	.set	micromips
	.globl	foo
	.ent	foo
foo:
	nor	$0, $0
	jalr	$0, $ra
	 nor	$0, $0
	.end	foo

	.align	4
	.set	nomicromips
	.globl	bar
	.ent	bar
bar:
	nor	$0, $0
	bal	foo + 0x20000
	 nor	$0, $0
	bal	bar + 0x20000
	 nor	$0, $0
	jalr	$0, $ra
	 nor	$0, $0
	.end	bar

# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	4, 0
	.space	16