|
24 | 24 |
|
25 | 25 | # IE-REL: FLAGS STATIC_TLS
|
26 | 26 | # IE-REL: .rela.dyn {
|
27 |
| -# IE-REL-NEXT: 0x204C8 R_PPC64_TPREL64 c 0x0 |
28 |
| -# IE-REL-NEXT: 0x204D0 R_PPC64_TPREL64 s 0x0 |
29 |
| -# IE-REL-NEXT: 0x204D8 R_PPC64_TPREL64 i 0x0 |
30 |
| -# IE-REL-NEXT: 0x204E0 R_PPC64_TPREL64 l 0x0 |
| 27 | +# IE-REL-NEXT: 0x205A8 R_PPC64_TPREL64 c 0x0 |
| 28 | +# IE-REL-NEXT: 0x205B0 R_PPC64_TPREL64 s 0x0 |
| 29 | +# IE-REL-NEXT: 0x205B8 R_PPC64_TPREL64 i 0x0 |
| 30 | +# IE-REL-NEXT: 0x205C0 R_PPC64_TPREL64 l 0x0 |
| 31 | +# IE-REL-NEXT: 0x205C8 R_PPC64_TPREL64 f 0x0 |
| 32 | +# IE-REL-NEXT: 0x205D0 R_PPC64_TPREL64 d 0x0 |
31 | 33 | # IE-REL-NEXT: }
|
32 | 34 |
|
33 | 35 | # INPUT-REL: R_PPC64_GOT_TPREL16_HA c 0x0
|
@@ -152,10 +154,64 @@ test_ds:
|
152 | 154 | ld 4, l@got@tprel(2)
|
153 | 155 | stdx 3, 4, l@tls
|
154 | 156 |
|
| 157 | +# LE-LABEL: <test_lhax>: |
| 158 | +# LE-NEXT: nop |
| 159 | +# LE-NEXT: addis 3, 13, 0 |
| 160 | +# LE-NEXT: lha 3, -28670(3) |
| 161 | +test_lhax: |
| 162 | + addis 3, 2, s@got@tprel@ha |
| 163 | + ld 3, s@got@tprel@l(3) |
| 164 | + lhax 3, 3, s@tls |
| 165 | + |
| 166 | +# LE-LABEL: <test_lwax>: |
| 167 | +# LE-NEXT: nop |
| 168 | +# LE-NEXT: addis 3, 13, 0 |
| 169 | +# LE-NEXT: lwa 3, -28668(3) |
| 170 | +test_lwax: |
| 171 | + addis 3, 2, i@got@tprel@ha |
| 172 | + ld 3, i@got@tprel@l(3) |
| 173 | + lwax 3, 3, i@tls |
| 174 | + |
| 175 | +# LE-LABEL: <test_lfsx>: |
| 176 | +# LE-NEXT: nop |
| 177 | +# LE-NEXT: addis 3, 13, 0 |
| 178 | +# LE-NEXT: lfs 3, -28656(3) |
| 179 | +test_lfsx: |
| 180 | + addis 3, 2, f@got@tprel@ha |
| 181 | + ld 3, f@got@tprel@l(3) |
| 182 | + lfsx 3, 3, f@tls |
| 183 | + |
| 184 | +# LE-LABEL: <test_lfdx>: |
| 185 | +# LE-NEXT: nop |
| 186 | +# LE-NEXT: addis 3, 13, 0 |
| 187 | +# LE-NEXT: lfd 3, -28648(3) |
| 188 | +test_lfdx: |
| 189 | + addis 3, 2, d@got@tprel@ha |
| 190 | + ld 3, d@got@tprel@l(3) |
| 191 | + lfdx 3, 3, d@tls |
| 192 | + |
| 193 | +# LE-LABEL: <test_stfsx>: |
| 194 | +# LE-NEXT: nop |
| 195 | +# LE-NEXT: addis 4, 13, 0 |
| 196 | +# LE-NEXT: stfs 3, -28656(4) |
| 197 | +test_stfsx: |
| 198 | + addis 4, 2, f@got@tprel@ha |
| 199 | + ld 4, f@got@tprel@l(4) |
| 200 | + stfsx 3, 4, f@tls |
| 201 | + |
| 202 | +# LE-LABEL: <test_stfdx>: |
| 203 | +# LE-NEXT: nop |
| 204 | +# LE-NEXT: addis 4, 13, 0 |
| 205 | +# LE-NEXT: stfd 3, -28648(4) |
| 206 | +test_stfdx: |
| 207 | + addis 4, 2, d@got@tprel@ha |
| 208 | + ld 4, d@got@tprel@l(4) |
| 209 | + stfdx 3, 4, d@tls |
| 210 | + |
155 | 211 | # NOREL: There are no relocations in this file.
|
156 | 212 |
|
157 | 213 | .section .tdata,"awT",@progbits
|
158 |
| -.globl c, s, i, l |
| 214 | +.globl c, s, i, l, f, d |
159 | 215 | c:
|
160 | 216 | .byte 97
|
161 | 217 |
|
|
170 | 226 | .p2align 3
|
171 | 227 | l:
|
172 | 228 | .quad 55
|
| 229 | +f: |
| 230 | +.long 55 |
| 231 | + |
| 232 | +.p2align 3 |
| 233 | +d: |
| 234 | +.quad 55 |
0 commit comments