Stream: git-wasmtime

Topic: wasmtime / PR #15199 Fix edge cases in float-to-i128 conv...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 08 2026 at 03:03):

ryancbuckley opened PR #15199 from ryancbuckley:interp-fcvt-i128 to bytecodealliance:main:

This PR:

  1. Fixes float-to-i128 conversion in the interpreter, so that values not representable in i128 are handled correctly instead of saturating at i128.
  2. Makes some pedantic tweaks to the documentation on fcvt_to_sint and fcvt_to_uint to better reflect the behavior with the fix.
  3. 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.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 08 2026 at 03:03):

ryancbuckley removed the review request for wasmtime-compiler-reviewers from PR #15199.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 08 2026 at 03:03):

ryancbuckley requested alexcrichton for a review on PR #15199.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 08 2026 at 03:03):

ryancbuckley requested wasmtime-compiler-reviewers for a review on PR #15199.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 08 2026 at 03:05):

ryancbuckley edited PR #15199:

This PR:

  1. Fixes float-to-i128 conversion in the interpreter, so that values not representable in i128 are handled correctly instead of saturating at i128.
  2. Makes some pedantic tweaks to the documentation on fcvt_to_sint and fcvt_to_uint to better reflect the behavior with the fix.
  3. 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.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 08 2026 at 03:05):

ryancbuckley edited PR #15199:

This PR:

  1. Fixes float-to-i128 conversion in the interpreter, so that values not representable in i128 are handled correctly instead of saturating at i128.
  2. Makes some pedantic tweaks to the documentation on fcvt_to_sint and fcvt_to_uint to better reflect the behavior with the fix.
  3. 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.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 08 2026 at 03:06):

ryancbuckley edited PR #15199:

This PR:

  1. Fixes float-to-i128 conversion in the interpreter, so that values not representable in i128 are handled correctly instead of saturating at i128.
  2. Makes some pedantic tweaks to the documentation on fcvt_to_sint and fcvt_to_uint to better reflect the behavior after the fix.
  3. 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