Stream: git-wasmtime

Topic: wasmtime / PR #4332 Cranelift/x64: fix register allocator...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 27 2022 at 18:17):

cfallin opened PR #4332 from idiv-x64-8bit-rdx to main:

idiv on x86-64 only reads rdx/edx/dx/dl for divides with width
greater than 8 bits; for an 8-bit divide, it reads the whole 16-bit
divisor from ax, as our CISC ancestors intended. This PR fixes the
metadata to avoid a regalloc panic (due to undefined rdx) in this
case. Does not affect Wasmtime or other Wasm-frontend embedders.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 27 2022 at 18:17):

cfallin requested fitzgen for a review on PR #4332.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 27 2022 at 18:17):

cfallin requested abrown for a review on PR #4332.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 27 2022 at 18:35):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 27 2022 at 18:42):

cfallin updated PR #4332 from idiv-x64-8bit-rdx to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 27 2022 at 18:42):

cfallin updated PR #4332 from idiv-x64-8bit-rdx to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 27 2022 at 19:31):

cfallin merged PR #4332.


Last updated: Jan 09 2026 at 13:15 UTC