Skip to content

Add asdouble test #353

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

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

Add asdouble test #353

wants to merge 3 commits into from

Conversation

kmpeng
Copy link
Contributor

@kmpeng kmpeng commented Aug 13, 2025

Closes #115.

Adds test for asdouble testing uint. I used hex format for the input/output values so the operation would be easier to visualize.
Need to remove XFAILs after #153513 and #7699 are fixed.

0x000000001A9FBE77, 0x4090000000000000, 0x3FF6A09E6DC9C883, 0x3FD5555555555555,
0X0000000000000000, 0x3FF0000000000000, 0xBFF0000000000000, 0x400921FB54442D18
]
# 0, 1.0, -1.0, 3.14159, 2.71828, -2.71828, 1.79769e+308, -1.79769e+308, denorm, 1024.0, 1.41421, 0.33333, 0, 1.0, -1.0, 3.14159
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be mistaken, but I thought we wanted to avoid denorm testing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, but I wanted to add a test where all the high bits were 0, which makes the output a denorm. Thought it would be fine because the inputs aren't denorms? But let me know your thoughts

Copy link
Contributor

Choose a reason for hiding this comment

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

True, the denorm isn't an input. And I would think the output should be driver-implementation-agnostic, it's literally just putting two strings of bits together.
I think this should be ok.

Copy link
Contributor

@bob80905 bob80905 left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Add test for asdouble
2 participants