myunbin opened PR #12796 from myunbin:resolve-issue-12790 to bytecodealliance:main:
This PR resolves #12790.
Original crash came from a rewrite introducing
iconst_s ty -1(5th of #12743) for a type that could be wider than 64 bits:
(~x) + x ==> -1I changed the rewrite so that 64-bit and 128-bit integer cases are handled separately, and the original
unimplemented for > 64 bitserror no longer occurs.I also found a couple of follow-up errors after the fix, and they turned out not to be issues.
cc @bongjunj
myunbin requested wasmtime-compiler-reviewers for a review on PR #12796.
myunbin requested alexcrichton for a review on PR #12796.
myunbin updated PR #12796.
alexcrichton submitted PR review.
alexcrichton added PR #12796 [Cranelift] resolve #12790, fix arithmetic rewrite for wider integers to the merge queue.
alexcrichton merged PR #12796.
alexcrichton removed PR #12796 [Cranelift] resolve #12790, fix arithmetic rewrite for wider integers from the merge queue.
Last updated: Mar 23 2026 at 16:19 UTC