* bucomm.c (display_target_list): Make local variable `a' to be of
[binutils.git] / ld / testsuite / ld-s390 / tlsbinpic_64.s
blobeeda6caaa133c371ab8cdbb9c4bf123285a37efd
1 .section ".tdata", "awT", @progbits
2 .balign 32
3 .globl sg1, sg2, sg3, sg4, sg5, sg6, sg7, sg8
4 .globl sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8
5 .hidden sh1, sh2, sh3, sh4, sh5, sh6, sh7, sh8
6 .hidden sh1, sh2
7 sg1: .long 17
8 sg2: .long 18
9 sg3: .long 19
10 sg4: .long 20
11 sg5: .long 21
12 sg6: .long 22
13 sg7: .long 23
14 sg8: .long 24
15 sl1: .long 65
16 sl2: .long 66
17 sl3: .long 67
18 sl4: .long 68
19 sl5: .long 69
20 sl6: .long 70
21 sl7: .long 71
22 sl8: .long 72
23 sh1: .long 257
24 sh2: .long 258
25 sh3: .long 259
26 sh4: .long 260
27 sh5: .long 261
28 sh6: .long 262
29 sh7: .long 263
30 sh8: .long 264
31 .text
32 .globl fn2
33 .type fn2,@function
34 .balign 64
35 fn2:
36 /* Function prolog */
37 stmg %r6,%r14,48(%r15)
38 bras %r13,.LTN1
39 /* Literal pool */
40 .LT1:
41 .LC2:
42 .quad sG1@tlsgd
43 .LC3:
44 .quad sG2@tlsgd
45 .LC4:
46 .quad sg1@tlsgd
47 .LC5:
48 .quad sl1@tlsgd
49 .LC6:
50 .quad sh1@tlsgd
51 .LC7:
52 .quad sl1@tlsldm
53 .LC8:
54 .quad sl1@dtpoff
55 .LC9:
56 .quad sl2@dtpoff
57 .LC10:
58 .quad sh1@tlsldm
59 .LC11:
60 .quad sh1@dtpoff
61 .LC12:
62 .quad sh2@dtpoff
63 .LC13:
64 .quad sG2@gotntpoff
65 .LC14:
66 .quad sg1@gotntpoff
67 .LC15:
68 .quad sl1@gotntpoff
69 .LC16:
70 .quad sh1@gotntpoff
71 .LTN1:
72 /* Function prolog */
73 lgr %r14,%r15
74 aghi %r15,-160
75 larl %r12,_GLOBAL_OFFSET_TABLE_
76 stg %r14,0(%r14)
78 /* Extract TCB */
79 ear %r9,%a0
80 sllg %r9,%r4,32
81 ear %r9,%a1
83 /* GD -> IE because variable is not defined in executable */
84 lg %r12,.LC2-.LT1(%r13)
85 brasl %r14,__tls_get_offset@plt:tls_gdcall:sG1
86 la %r2,0(%r2,%r9)
88 /* GD -> IE because variable is not defined in executable where
89 the variable is referenced through IE too */
90 lg %r2,.LC3-.LT1(%r13)
91 brasl %r14,__tls_get_offset@plt:tls_gdcall:sG2
92 la %r2,0(%r2,%r9)
94 /* GD -> LE with global variable defined in executable */
95 lg %r2,.LC4-.LT1(%r13)
96 brasl %r14,__tls_get_offset@plt:tls_gdcall:sg1
97 la %r2,0(%r2,%r9)
99 /* GD -> LE with local variable defined in executable */
100 lg %r2,.LC5-.LT1(%r13)
101 brasl %r14,__tls_get_offset@plt:tls_gdcall:sl1
102 la %r2,0(%r2,%r9)
104 /* GD -> LE with hidden variable defined in executable */
105 lg %r2,.LC6-.LT1(%r13)
106 brasl %r14,__tls_get_offset@plt:tls_gdcall:sh1
107 la %r2,0(%r2,%r9)
109 /* LD -> LE */
110 lg %r2,.LC7-.LT1(%r13)
111 brasl %r14,__tls_get_offset@plt:tls_ldcall:sl1
112 la %r3,0(%r2,%r9)
113 lg %r4,.LC8-.LT1(%r13)
114 la %r5,0(%r4,%r3)
115 lg %r4,.LC9-.LT1(%r13)
116 la %r5,0(%r4,%r3)
118 /* LD -> LE against hidden variables */
119 lg %r2,.LC10-.LT1(%r13)
120 brasl %r14,__tls_get_offset@plt:tls_ldcall:sh1
121 la %r3,0(%r2,%r9)
122 lg %r4,.LC11-.LT1(%r13)
123 la %r5,0(%r4,%r3)
124 lg %r4,.LC12-.LT1(%r13)
125 la %r5,0(%r4,%r3)
127 /* IE against global var */
128 lg %r3,.LC13-.LT1(%r13)
129 lg %r3,0(%r3,%r12):tls_load:sG2
130 la %r3,0(%r3,%r9)
132 /* IE -> LE against global var defined in exec */
133 lg %r3,.LC14-.LT1(%r13)
134 lg %r4,0(%r3,%r12):tls_load:sg1
135 la %r5,0(%r4,%r9)
137 /* IE -> LE against local var */
138 lg %r3,.LC15-.LT1(%r13)
139 lg %r4,0(%r3,%r12):tls_load:sl2
140 la %r5,0(%r4,%r9)
142 /* IE -> LE against hidden var */
143 lg %r3,.LC16-.LT1(%r13)
144 lg %r4,0(%r3,%r12):tls_load:sh1
145 la %r5,0(%r4,%r9)
147 /* IE against global var with larl got access */
148 larl %r3,sG3@indntpoff
149 lg %r3,0(%r3,%r12):tls_load:sG3
150 la %r3,0(%r3,%r9)
152 /* IE against global var defined in exec with larl got access */
153 larl %r3,sg3@indntpoff
154 lg %r4,0(%r3,%r12):tls_load:sg3
155 la %r5,0(%r4,%r9)
157 /* IE against local var with larl got access */
158 larl %r3,sl3@indntpoff
159 lg %r4,0(%r3,%r12):tls_load:sl3
160 la %r5,0(%r4,%r9)
162 /* IE against hidden var with larl got access */
163 larl %r3,sh3@indntpoff
164 lg %r4,0(%r3,%r12):tls_load:sh3
165 la %r5,0(%r4,%r9)
167 /* IE against global var with small got access (no optimization) */
168 lg %r3,sG3@gotntpoff(%r12)
169 la %r3,0(%r3,%r9)
171 /* IE against global var defined in exec with small got access
172 (no optimization) */
173 lg %r3,sg3@gotntpoff(%r12)
174 la %r3,0(%r3,%r9)
176 /* IE against local var with small got access (no optimization) */
177 lg %r3,sl3@gotntpoff(%r12)
178 la %r3,0(%r3,%r9)
180 /* IE against hidden var with small got access (no optimization) */
181 lg %r3,sh3@gotntpoff(%r12)
182 la %r3,0(%r3,%r9)
184 /* Function epilog */
185 lmg %r6,%r14,208(%r15)
186 br %r14