Change our alignment for 128bit numbers to match llvm 18 and correct abi

This commit is contained in:
Brendan Hansknecht 2024-01-30 15:19:09 -08:00
parent e7be9d435d
commit 90a1468e37
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -130,10 +130,10 @@ impl IntWidth {
// according to https://reviews.llvm.org/D28990#655487
//
// however, rust does not always think that this is true
// Our alignmets here are correct, but they will not match rust/zig/llvm until they update to llvm version 18.
match target_info.architecture {
Architecture::X86_64 => 16,
Architecture::Aarch64 | Architecture::Aarch32 | Architecture::Wasm32 => 16,
Architecture::X86_32 => 8,
Architecture::X86_64 | Architecture::Aarch64 | Architecture::X86_32 => 16,
Architecture::Aarch32 | Architecture::Wasm32 => 8,
}
}
}