afonso360 opened PR #6317 from afonso360:riscv64-fix-select-icmp to bytecodealliance:main:
:wave: Hey,
This fixes #6312. We were accidentally selecting an optimized lowering when the icmp was i128bit.
gen_select_reglowers the comparison, but only looking at the bottom registers since it works withReg's and notValueRegs.I think this bug was also in part introduced by a rule that we have (in the RISC-V backend) that auto converts
ValueRegsintoRegsilently.
afonso360 requested cfallin for a review on PR #6317.
afonso360 requested wasmtime-compiler-reviewers for a review on PR #6317.
cfallin submitted PR review:
Thanks!
cfallin has enabled auto merge for PR #6317.
jameysharp submitted PR review:
This looks exactly right, thank you!
cfallin merged PR #6317.
Last updated: Dec 06 2025 at 06:05 UTC