Stream: git-wasmtime

Topic: wasmtime / PR #12501 winch(aarch64): Remove side effect f...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 01:42):

saulecabrera opened PR #12501 from saulecabrera:winch-aarch64-fix-shift to bytecodealliance:main:

Fixes https://github.com/bytecodealliance/wasmtime/issues/12423

Prior to this commit, calculating the ALUOp for the rotate left operation included a negation side-effect on the rotate operands. In the case of shift with immediate, the implementation was wrongly performing the negation on the rn register rather than using the immediate value, which resulted in the mis-compilation described in the issue below.

This commit ensures that the conversion from the shift kind to the ALUOp is side-effect free.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 01:42):

saulecabrera requested fitzgen for a review on PR #12501.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 01:42):

saulecabrera requested wasmtime-core-reviewers for a review on PR #12501.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 01:42):

saulecabrera requested wasmtime-compiler-reviewers for a review on PR #12501.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 01:45):

saulecabrera edited PR #12501:

Fixes https://github.com/bytecodealliance/wasmtime/issues/12423

Prior to this commit, calculating the ALUOp for the rotate left operation included a negation side-effect on the rotate operands. In the case of shift with immediate, the implementation was wrongly performing the negation on the rn register rather than using the immediate value, which resulted in the miscompilation described in the issue below.

This commit ensures that the conversion from the shift kind to the ALUOp is side-effect free.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 03:33):

github-actions[bot] added the label winch on PR #12501.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 03:34):

github-actions[bot] commented on PR #12501:

Subscribe to Label Action

cc @saulecabrera

<details>
This issue or pull request has been labeled: "winch"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 14:53):

fitzgen submitted PR review:

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 14:53):

fitzgen added PR #12501 winch(aarch64): Remove side effect from shift kind to ALUOp calculation to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 15:18):

fitzgen merged PR #12501.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 03 2026 at 15:18):

fitzgen removed PR #12501 winch(aarch64): Remove side effect from shift kind to ALUOp calculation from the merge queue.


Last updated: Feb 24 2026 at 04:36 UTC