jeffcharles opened PR #10337 from jeffcharles:winch-simd-fix-extadd
to bytecodealliance:main
:
<!--
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
-->
Fixes #10331. The existing approach used the macroassemblerv128.extend
method to perform extensions but this can lead subtly incorrect results because it's designed to select values from the top half or bottom half of the vector and not from pairs of lanes within vectors. This PR changes the implementation to use machine instructions directly.
jeffcharles requested abrown for a review on PR #10337.
jeffcharles requested wasmtime-compiler-reviewers for a review on PR #10337.
jeffcharles requested fitzgen for a review on PR #10337.
jeffcharles requested wasmtime-core-reviewers for a review on PR #10337.
github-actions[bot] commented on PR #10337:
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:
- saulecabrera: winch
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
fitzgen submitted PR review:
LGTM, thanks!
saulecabrera commented on PR #10337:
You'd need to update the AVX list to get CI green:
---- Winch/./tests/misc_testsuite/winch/issue-10331.wast ---- failed to run spec test with default engine Caused by: 0: failed directive on ./tests/misc_testsuite/winch/issue-10331.wast:5:1 1: failed to compile: wasm[0]::function[1] 2: Compilation error: Instruction not implemented for CPUs without AVX support
jeffcharles updated PR #10337.
saulecabrera merged PR #10337.
Last updated: Apr 17 2025 at 01:31 UTC