-
Notifications
You must be signed in to change notification settings - Fork 725
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Canonicalize NaNs in the interpreter (#1046)
Even though we store f32 and f64 values as their representation, we still use the underlying system's implementations for float operations. These have non-deterministic behavior w.r.t. NaNs. This change canoncalizes all NaNs where it is allowed. This excludes `fxx.abs`, `fxx.neg`, `fxx.copysign` and `fxx.reinterpret*`, which always work on the floating-point representation directly, and the `fxx.convert*` instructions, which cannot be NaN because the input is an integer.
- Loading branch information
Showing
3 changed files
with
62 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters