Skip to content

ncg/aarch64: Don't use x18 register on AArch64/Darwin

Ben Gamari requested to merge wip/T21964 into master

Apple's ABI documentation [1] says: "The platforms reserve register x18. Don’t use this register." While this wasn't problematic in previous Darwin releases, macOS 13 appears to start zeroing this register periodically. See #21964 (closed).

[1] https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms

Merge request reports