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

Apply NaN canonicalization in base tests #586

Merged
merged 13 commits into from
Aug 18, 2023
Merged

Conversation

luc-blaeser
Copy link
Contributor

@luc-blaeser luc-blaeser commented Aug 18, 2023

Fix for

Enable NaN canonicalization for wasmtime test execution to get consistent results across different processor platforms.
Adjust the unit tests and documenation regarding the propagation of the NaN sign bit.

According to the Wasm specification and also the observed wasmtime behavior (with NaN canonicalization), the NaN sign is only properly set on Float.abs, Float.neg, and Float.copySign, not on the other floating point operations.

Copy link
Contributor

@crusso crusso left a comment

Choose a reason for hiding this comment

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

I don't understand FP and hope to retire without ever needing too. Rubberstampting ;->

@luc-blaeser luc-blaeser merged commit 085468f into master Aug 18, 2023
6 checks passed
@luc-blaeser luc-blaeser deleted the luc/nan-canonicalization branch August 18, 2023 09:51
mergify bot pushed a commit to dfinity/motoko that referenced this pull request Aug 18, 2023
Enable NaN canonicalization for `wasm-run` Motoko test execution to get consistent results across different processor platforms.

This is related to dfinity/motoko-base#586.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants