We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
INLINE_GET_TLS_VAR
1 parent c4624d0 commit 01f6744Copy full SHA for 01f6744
src/coreclr/nativeaot/Runtime/unix/unixasmmacrosloongarch64.inc
@@ -158,15 +158,9 @@ C_FUNC(\Name):
158
st.d $ra, $sp, -0x8
159
addi.d $sp, $sp, -16
160
161
- // This sequence of instructions is recognized and potentially patched
+ // This instruction is recognized and potentially patched
162
// by the linker (GD->IE/LE relaxation).
163
- // TODO-LOONGARCH64: Fix once TLSDESC is supported by LLVM
164
- //la.local $a0, \var
165
- //ld.d \target, $a0, 0
166
- //.tlsdesccall \var
167
- //jirl $ra, \target, 0
168
- la.tls.ie $a0, \var
169
- // End of the sequence
+ la.tls.desc $a0, \var
170
171
ori \target, $tp, 0
172
add.d \target, \target, $a0
0 commit comments