Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix NaN handling for some instructions - #8472

#8472
Merged
stevenfontanella merged 1 commit into
mainWebAssembly/binaryen:mainfrom
fix-float-miscWebAssembly/binaryen:fix-float-miscCopy head branch name to clipboard
Mar 16, 2026
Merged

Fix NaN handling for some instructions#8472
stevenfontanella merged 1 commit into
mainWebAssembly/binaryen:mainfrom
fix-float-miscWebAssembly/binaryen:fix-float-miscCopy head branch name to clipboard

Conversation

@stevenfontanella

@stevenfontanella stevenfontanella commented Mar 16, 2026

Copy link
Copy Markdown
Member
  • Fix bit patterns for canonical and arithmetic NaNs
  • Canonicalize NaNs for float instructions covered by spec tests
  • Also remove equivalent tests in test/spec since they're the same as the upstream tests but with some previously-failing parts removed, and using older syntax for checking for NaNs
  • Fixes 12 spec tests

Part of #8261.

@stevenfontanella stevenfontanella changed the title Fix NaNs in spec tests Fix NaN handling for some instructions Mar 16, 2026
@stevenfontanella
stevenfontanella marked this pull request as ready for review March 16, 2026 19:32

@tlively tlively left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!

@stevenfontanella
stevenfontanella merged commit c874f5d into main Mar 16, 2026
17 checks passed
@stevenfontanella
stevenfontanella deleted the fix-float-misc branch March 16, 2026 20:49
stevenfontanella added a commit that referenced this pull request Mar 26, 2026
The test already passes and was likely fixed by #8472.
test/spec/conversions.wast is an old version of the upstream spec test
that wasn't updated. Remove it since we now test against the newer
version.

Part of #8261.
stevenfontanella added a commit that referenced this pull request Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.