aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/tlsopt4.s
blob: f84dee5ac77ab01342c2958cef8898f502d6721f (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
 .section ".tbss","awT",@nobits
 .global gd0
 .align 3
gd0: .space 8

 .section ".opt1", "ax", %progbits
 addi 3,2,gd@got@tlsgd
 cmpdi 4,0
 beq 0f
 bl __tls_get_addr(gd@tlsgd)
 nop
 b 1f
0:
 bl __tls_get_addr(gd@tlsgd)
 nop
1:

 .section ".opt2", "ax", %progbits
 addi 3,2,gd@got@tlsgd
 cmpdi 4,0
 beq 0f
 addi 3,2,gd@got@tlsgd
0:
 bl __tls_get_addr(gd@tlsgd)
 nop

 .section ".opt3", "ax", %progbits
 addi 3,2,gd@got@tlsgd
 b 0f
 addi 3,2,gd0@got@tlsgd
 b 1f
0:
 bl __tls_get_addr(gd@tlsgd)
 nop
 b 2f
1:
 bl __tls_get_addr(gd0@tlsgd)
 nop
2: