aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf/reloc-pcrel-r6.s
blob: 3cc8850c9954a213b27527c4df2b579e48033beb (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
	.text
	.globl test
	.globl x1
	.globl x2
	.globl x3
	.globl x4
	.ent test
test:
1:
	auipc	$a0,%pcrel_hi(x1)
2:
	addiu	$a0,$a0,%pcrel_lo(x1+(2b-1b))
1:
	auipc	$a0,%pcrel_hi(x2)
2:
	addiu	$a0,$a0, %pcrel_lo(x2+(2b-1b))
1:
	auipc	$a0,%pcrel_hi(x3)
2:
	addiu	$a0,$a0,%pcrel_lo(x3+(2b-1b))
1:
	auipc	$a0,%pcrel_hi(x4)
2:
	addiu	$a0,$a0,%pcrel_lo(x4+(2b-1b))
	.end test
	.align	2, 0
	.space	8