summaryrefslogtreecommitdiffstats
path: root/gas/testsuite/gas/mips/branch-misc-4.s
blob: 0b7a8170350e595dc4422cead27f47eaf6bfe6da (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
# Source file to verify PC-relative relocations do not overflow.

	.text
	.space	0x40000
	.globl	foo
	.ent	foo
foo:
	b	bar
.Lfoo:
	b	.Lbar
	.end	foo

# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	2
	.space	8

	.section .init, "ax", @progbits
	.globl	bar
	.ent	bar
bar:
	b	foo
.Lbar:
	b	.Lfoo
	.end	bar

# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	2
	.space	8
OpenPOWER on IntegriCloud