alexcrichton opened PR #13702 from alexcrichton:fix-aarch64-sdot to bytecodealliance:main:
This commit fixes a number of minor issues derivative of #13640. The issues here are:
Wasmtime's previous lowering of
i32x4.relaxed_dot_i8x16_i7x16_add_swas incorrect in the deterministic profile, notably performing an intermediate truncation. This is spec-allowed behavior for the instruction in general, but deterministic semantics don't do this. This meant that the CLIF generated for this instruction needed updating.The CLIF matcher for the
sdotinstruction added in #13640 was incorrect. While it correctly matched the CLIF lowering fori32x4.relaxed_dot_i8x16_i7x16_add_sand was a correct lowering for that instruction, it wasn't actually a correct implementation for the CLIF subexpression. The ISLE matcher here is adjusted to match the new CLIF emitted for the deterministic semantics ofi32x4.relaxed_dot_i8x16_i7x16_add_swhichsdotmatches.Some various tests are adjusted to have more edge cases to test, and some auditing work is done on the
i16x8.relaxed_dot_i8x16_i7x16_sinstruction as well, but these are the two main issues fixed.Note that the adjustements visible in golden output tests are for deterministic relaxed simd semantics on x64 and aarch64 without
sdot. This is expected as the CLIF has been adjusted to match the spec's deterministic implementation semantics.<!--
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 wasmtime-compiler-reviewers for a review on PR #13702.
alexcrichton requested wasmtime-core-reviewers for a review on PR #13702.
alexcrichton requested cfallin for a review on PR #13702.
alexcrichton updated PR #13702.
github-actions[bot] added the label cranelift on PR #13702.
github-actions[bot] added the label cranelift:area:aarch64 on PR #13702.
:thumbs_up: cfallin submitted PR review.
cfallin added PR #13702 Fix deterministic behavior of i32x4.relaxed_dot_i8x16_i7x16_add_s to the merge queue
:check: cfallin merged PR #13702.
cfallin removed PR #13702 Fix deterministic behavior of i32x4.relaxed_dot_i8x16_i7x16_add_s from the merge queue
Last updated: Jul 29 2026 at 05:03 UTC