Stream: git-wasmtime

Topic: wasmtime / PR #11026 x64: Fix float lowering for `scalar_...


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

alexcrichton opened PR #11026 from alexcrichton:x64-fix-scalar-to-vector to bytecodealliance:main:

The current logic traces back to #2489 but I think has been buggy ever since. The semantics of the CLIF scalar_to_vector instruction is that the upper bits are zeroed in the resulting vector but Cranelift otherwise leaves the upper bits of registers undefined. This means that a float scalar to vector must actively zero the upper bits rather than leave the preserved.

Closes #11024

<!--
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 14:49):

alexcrichton requested cfallin for a review on PR #11026.

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

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

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

abrown submitted PR review.

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

alexcrichton updated PR #11026.

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

alexcrichton has enabled auto merge for PR #11026.

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

alexcrichton updated PR #11026.

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

alexcrichton merged PR #11026.


Last updated: Dec 06 2025 at 06:05 UTC