summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/ld/testsuite/ld-aarch64/tls-relax-gdesc-ie-2.s
blob: 790b6c6eb8bb4b9c2efa0688f46a5413d8231f78 (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
// Test TLS Desc to TLS IE relaxation when instructions are not consecutive.

	.global	var
	.section	.tdata
var:
	.word	2
	.text
	adrp	x0, :tlsdesc:var
	nop
	ldr	x1, [x0, #:tlsdesc_lo12:var]
	nop
	nop
	nop
	add	x0, x0, :tlsdesc_lo12:var
	nop
	nop
	.tlsdesccall	var
	blr	x1
	nop
	mrs	x1, tpidr_el0
	add	x0, x1, x0
	ldr	w0, [x0]
	.global	var
	.section	.tdata