Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test NaN bitpattern rules in a harness-independent way. #417

Merged
merged 2 commits into from
Feb 21, 2017

Conversation

sunfishcode
Copy link
Member

Add some tests to check that the underlying platform follows the
basic NaN bitpattern rules without depending on the handling of NaNs
in the test harness or embedding environment.

Add some tests to check that the underlying platform follows the
basic NaN bitpattern rules without depending on the handling of NaNs
in the test harness or embedding environment.
@sunfishcode sunfishcode added this to the MVP milestone Feb 1, 2017
Test that arithmetic with non-canonical NaN inputs at least produces an
NaN with 1 in the most significant digit of the fraction field. And test
that 0/0 produces a canonical NaN.
@rossberg
Copy link
Member

rossberg commented Feb 2, 2017

LGTM, but probably also has a dependency on WebAssembly/design#976.

@sunfishcode
Copy link
Member Author

This change just makes the spec repo test what's already specified in the design repo more thoroughly, so I'm taking the liberty of merging, as it's desirable to keep the two in sync. If #976 leads to changes in the design, these tests can be updated accordingly.

@sunfishcode sunfishcode merged commit bfb1fc4 into master Feb 21, 2017
@sunfishcode sunfishcode deleted the nan-bitpattern-tests branch February 21, 2017 19:37
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Oct 3, 2023
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