Skip to content

Commit 01f6744

Browse files
authored
[LoongArch64] delete the LA64's todo within INLINE_GET_TLS_VAR. (#106254)
1 parent c4624d0 commit 01f6744

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/coreclr/nativeaot/Runtime/unix/unixasmmacrosloongarch64.inc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,9 @@ C_FUNC(\Name):
158158
st.d $ra, $sp, -0x8
159159
addi.d $sp, $sp, -16
160160

161-
// This sequence of instructions is recognized and potentially patched
161+
// This instruction is recognized and potentially patched
162162
// 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
163+
la.tls.desc $a0, \var
170164

171165
ori \target, $tp, 0
172166
add.d \target, \target, $a0

0 commit comments

Comments
 (0)