Implement Mach-O TLS access for x64 newBE

This commit is contained in:
bjorn3
2021-01-21 18:05:37 +01:00
parent 207f60a18e
commit 81d248c057
4 changed files with 43 additions and 2 deletions

View File

@@ -3915,6 +3915,17 @@ fn test_x64_emit() {
"elf_tls_get_addr User { namespace: 0, index: 0 }",
));
insns.push((
Inst::MachOTlsGetAddr {
symbol: ExternalName::User {
namespace: 0,
index: 0,
},
},
"488B3D00000000FF17",
"macho_tls_get_addr User { namespace: 0, index: 0 }",
));
// ========================================================
// Actually run the tests!
let mut flag_builder = settings::builder();