Skip to content

Fix definition of isNaNBF16UI - #44

Merged
aswaterman merged 1 commit into
masterfrom
fix-isNaNBF16UI
Oct 20, 2026
Merged

aswaterman merged 1 commit into
masterfrom
fix-isNaNBF16UI

Conversation

@aswaterman

@aswaterman aswaterman commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

See definition of isNaNF32UI, which is the same but with the 16 LSBs removed.

The previous definition only detected quiet NaNs as NaNs. E.g., 0x7f81, the first signaling NaN, was flagged as not-NaN.

This wasn't a problem in upstream Spike because Spike had its own (correct) definition of this macro.

See definition of isNaNF32UI, which is the same but with the 16 LSBs removed.

Signed-off-by: Andrew Waterman <andrew@sifive.com>
@aswaterman
aswaterman merged commit 73e3f39 into master Oct 20, 2026
1 check passed
@aswaterman
aswaterman deleted the fix-isNaNBF16UI branch October 20, 2026 09:32
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.

1 participant