gas:
[binutils/dougsmingw.git] / ld / testsuite / ld-powerpc / tlsmark.s
blobdc42327747a94f8a8128be12727df857dfdd13c9
1 .section ".tdata","awT",@progbits
2 x: .int 1
3 y: .int 2
5 .section ".toc","aw",@progbits
6 .p2align 3
7 .LC0:
8 .quad y@dtpmod
9 .quad y@dtprel
10 .LC1:
11 .quad y@dtpmod
12 .quad 0
14 .text
15 .global _start
16 _start:
17 b .L2
19 .L1:
20 bl __tls_get_addr(x@tlsgd)
21 nop
22 ld 4,0(3)
23 addi 3,2,x@got@tlsld
24 b .L3
25 .L2:
26 addi 3,2,x@got@tlsgd
27 b .L1
28 .L3:
29 bl __tls_get_addr(x@tlsld)
30 nop
31 ld 4,x@dtprel(3)
33 addi 3,2,.LC0@toc
34 b .L5
35 .L4:
36 addi 3,2,.LC1@toc
37 b .L6
38 .L5:
39 bl .__tls_get_addr(.LC0@tlsgd)
40 nop
41 ld 5,0(3)
42 b .L4
43 .L6:
44 bl .__tls_get_addr(.LC1@tlsld)
45 nop
46 ld 5,y@dtprel(3)
49 .section ".text.no","ax",@progbits
50 .p2align 2
51 addi 3,2,gd@got@tlsgd
52 lis 29,__tls_get_addr@ha
53 addi 29,29,__tls_get_addr@l
54 bl __tls_get_addr
55 nop