AArch64: port tls_value to ISLE. (#4821)

This commit is contained in:
Chris Fallin
2022-08-30 09:51:15 -07:00
committed by GitHub
parent b033aba61b
commit 1a59b3e6c6
7 changed files with 26 additions and 40 deletions

View File

@@ -3191,7 +3191,10 @@ impl MachInstEmit for Inst {
}
}
&Inst::ElfTlsGetAddr { ref symbol } => {
&Inst::ElfTlsGetAddr { ref symbol, rd } => {
let rd = allocs.next_writable(rd);
assert_eq!(xreg(0), rd.to_reg());
// This is the instruction sequence that GCC emits for ELF GD TLS Relocations in aarch64
// See: https://gcc.godbolt.org/z/KhMh5Gvra