alexcrichton opened PR #9803 from alexcrichton:pulley-int-ops
to bytecodealliance:main
:
This required some extra plumbing to shepherd the precise reason why
signed division trapped to Wasmtime which is done through an extra
TrapKind
side channel now added.This then additionally fixes the signed remainder interpreter function
to return 0 onMIN % -1
which is different from what Rust specifies
(which is to returnNone
or panic).
alexcrichton requested fitzgen for a review on PR #9803.
alexcrichton requested wasmtime-core-reviewers for a review on PR #9803.
alexcrichton requested wasmtime-default-reviewers for a review on PR #9803.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #9803.
alexcrichton commented on PR #9803:
Note this is currently built on https://github.com/bytecodealliance/wasmtime/pull/9801
alexcrichton submitted PR review.
alexcrichton created PR review comment:
I'll note that this is an interesting case of a divergence in Rust semantics and WebAssembly semantics.
alexcrichton updated PR #9803.
alexcrichton updated PR #9803.
alexcrichton has enabled auto merge for PR #9803.
alexcrichton updated PR #9803.
alexcrichton edited a comment on PR #9803:
~~Note this is currently built on https://github.com/bytecodealliance/wasmtime/pull/9801~~
fitzgen submitted PR review:
:+1:
alexcrichton updated PR #9803.
alexcrichton has enabled auto merge for PR #9803.
alexcrichton merged PR #9803.
Last updated: Dec 23 2024 at 12:05 UTC