Stream: git-wasmtime

Topic: wasmtime / PR #11022 x64: Drop the REX prefix in a few mo...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 12 2025 at 01:15):

alexcrichton opened PR #11022 from alexcrichton:x64-less-rex to bytecodealliance:main:

This commit fixes a few cases where a REX prefix is emitted for an instruction but was not actually required. The REX prefix is unconditionally emitted in situations where 8-bit registers are referenced and one of the registers referenced has an encoding between 4-7. This logic was mistakenly applied to addressing modes as well, however, where 8-bit registers are not referenced and instead 64-bit registers are used.

This commit adds a few comments, refactors a few things, and makes it such that "special registers" are not tested for operands to addressing modes (e.g. the base register).

<!--
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 (Jun 12 2025 at 01:15):

alexcrichton requested abrown for a review on PR #11022.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 12 2025 at 01:15):

alexcrichton requested wasmtime-compiler-reviewers for a review on PR #11022.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 12 2025 at 01:15):

alexcrichton requested fitzgen for a review on PR #11022.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 12 2025 at 01:15):

alexcrichton requested wasmtime-core-reviewers for a review on PR #11022.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 12 2025 at 15:36):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 12 2025 at 18:00):

alexcrichton merged PR #11022.


Last updated: Dec 06 2025 at 06:05 UTC