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

bugfix nan test for basic fpmath #2268

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zzk0
Copy link

@zzk0 zzk0 commented Feb 10, 2025

This PR fixes the validation logic for cases where the data type is not half. Because the variable nan_test is always false, types like float never trigger a validation failure.

@CLAassistant
Copy link

CLAassistant commented Feb 10, 2025

CLA assistant check
All committers have signed the CLA.

test_conformance/basic/test_fpmath.cpp Outdated Show resolved Hide resolved
@zzk0 zzk0 force-pushed the bugfix_basic_fpmath branch from bc9c1cb to 5715850 Compare February 12, 2025 02:41
@zzk0 zzk0 force-pushed the bugfix_basic_fpmath branch from 5715850 to 46bfd41 Compare February 12, 2025 02:43
@zzk0 zzk0 requested a review from bashbaug February 12, 2025 03:11
Copy link
Contributor

@bashbaug bashbaug left a comment

Choose a reason for hiding this comment

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

Note, at least on my system, both_nan is never true. I think this is because the inputs for these test cases are chosen so NaNs will not occur. So, I still think we could remove all of this NaN handling if we'd like.... or we could keep it as it is here, just in case it becomes needed in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants