ryancbuckley opened PR #15199 from ryancbuckley:interp-fcvt-i128 to bytecodealliance:main:
This PR:
- Fixes float-to-i128 conversion in the interpreter, so that values not representable in i128 are handled correctly instead of saturating at i128.
- Makes some pedantic tweaks to the documentation on fcvt_to_sint and fcvt_to_uint to better reflect the behavior with the fix.
- Adds lots of tests for edge cases in float-to-int conversions. These are only tangentially related to the above, so I'd be happy to move them to a separate PR if you'd prefer this PR stay focused on the fix.
Fixes #15198.
ryancbuckley removed the review request for wasmtime-compiler-reviewers from PR #15199.
ryancbuckley requested alexcrichton for a review on PR #15199.
ryancbuckley requested wasmtime-compiler-reviewers for a review on PR #15199.
ryancbuckley edited PR #15199:
This PR:
- Fixes float-to-i128 conversion in the interpreter, so that values not representable in i128 are handled correctly instead of saturating at i128.
- Makes some pedantic tweaks to the documentation on fcvt_to_sint and fcvt_to_uint to better reflect the behavior with the fix.
- Adds lots of tests for edge cases in float-to-int conversions that previously did not have coverage. These are only tangentially related to the above, so I'd be happy to move them to a separate PR if you'd prefer this PR stay focused on the fix.
Fixes #15198.
ryancbuckley edited PR #15199:
This PR:
- Fixes float-to-i128 conversion in the interpreter, so that values not representable in i128 are handled correctly instead of saturating at i128.
- Makes some pedantic tweaks to the documentation on fcvt_to_sint and fcvt_to_uint to better reflect the behavior with the fix.
- Adds lots of tests for edge cases in float-to-int conversions that previously did not have coverage. These are only tangentially related to the above, so I'd be happy to move them to a separate PR if you'd prefer this PR be more focused.
Fixes #15198.
ryancbuckley edited PR #15199:
This PR:
- Fixes float-to-i128 conversion in the interpreter, so that values not representable in i128 are handled correctly instead of saturating at i128.
- Makes some pedantic tweaks to the documentation on fcvt_to_sint and fcvt_to_uint to better reflect the behavior after the fix.
- Adds lots of tests for edge cases in float-to-int conversions that previously did not have coverage. These are only tangentially related to the above, so I'd be happy to move them to a separate PR if you'd prefer this PR be more focused.
Fixes #15198.
Last updated: Nov 19 2026 at 20:05 UTC