alexcrichton opened PR #12982 from alexcrichton:fix-aarch64-stack-abi to bytecodealliance:main:
This commit fixes an issue in the ABI layout calculated for the
apple_aarch64calling convention when stack-returns are present with sign extensions. In this situation the machinst code would load/store a full pointer-width but the aarch64 ABI calculation would only allocate a type's width for the slot. The fix in this PR is to skip the logic for "slot sized to the type" and instead use the minimum 8 bytes for extended arguments.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested fitzgen for a review on PR #12982.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #12982.
alexcrichton updated PR #12982.
fitzgen submitted PR review.
fitzgen added PR #12982 aarch64: Fix ABI layout calculation for apple_aarch64 to the merge queue.
github-merge-queue[bot] removed PR #12982 aarch64: Fix ABI layout calculation for apple_aarch64 from the merge queue.
alexcrichton updated PR #12982.
alexcrichton has enabled auto merge for PR #12982.
alexcrichton added PR #12982 aarch64: Fix ABI layout calculation for apple_aarch64 to the merge queue.
alexcrichton merged PR #12982.
alexcrichton removed PR #12982 aarch64: Fix ABI layout calculation for apple_aarch64 from the merge queue.
Last updated: Apr 12 2026 at 23:10 UTC