aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/tlsmark.s
blob: 1bda55c89aec4c0d4b944b18bb52a27fa6e04e48 (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
	.section ".tdata","awT",@progbits
x:	.int 1
y:	.int 2

	.section ".toc","aw",@progbits
	.p2align 3
.LC0:
	.quad y@dtpmod
	.quad y@dtprel
.LC1:
	.quad y@dtpmod
	.quad 0

	.text
	.global _start
_start:
	b .L2

.L1:
	bl __tls_get_addr(x@tlsgd)
	nop
	ld 4,0(3)
	addi 3,2,x@got@tlsld
	b .L3
.L2:
	addi 3,2,x@got@tlsgd
	b .L1
.L3:
	bl __tls_get_addr(x@tlsld)
	nop
	ld 4,x@dtprel(3)

	addi 3,2,.LC0@toc
	b .L5
.L4:
	addi 3,2,.LC1@toc
	b .L6
.L5:
	bl .__tls_get_addr(.LC0@tlsgd)
	nop
	ld 5,0(3)
	b .L4
.L6:
	bl .__tls_get_addr(.LC1@tlsld)
	nop
	ld 5,y@dtprel(3)