Initialize Tizen 2.3
[external/binutils.git] / ld / testsuite / ld-powerpc / tlsmark.s
1         .section ".tdata","awT",@progbits
2 x:      .int 1
3 y:      .int 2
4
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
13
14         .text
15         .global _start
16 _start:
17         b .L2
18
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)
32
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)