yomaytk opened PR #11455 from yomaytk:add-riscv-test 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
-->
The riscv64 backend seems to be missing tests for some CLIF instructions that are included in other architectures. This PR adds theimul_immandget_return_addressinstructions.
yomaytk requested fitzgen for a review on PR #11455.
yomaytk requested wasmtime-compiler-reviewers for a review on PR #11455.
fitzgen submitted PR review:
Thanks!
FWIW,
imul_immshould be legalized away (and turned into animulwith aniconstoperand) at the start of the pipeline and shouldn't ever directly make it to the backend. That said, adding a clif test for what it ultimately compiles down to doesn't do any harm.
fitzgen merged PR #11455.
Last updated: Dec 06 2025 at 06:05 UTC