Skip to content

Conversation

@arichardson
Copy link
Member

We don't need 128-bit integers here, instead rewrite the fp_test.h helpers
to avoid the need for __int128. Also change the high argument for
compareResultF80() and F80FromRep80() to be uint16_t since values greater
than this do not make any sense. This should allow the compiler to detect
accidentally swapping the arguments.

Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
@arichardson
Copy link
Member Author

CC: @biabbas

Copy link
Contributor

@biabbas biabbas left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

@mstorsjo
Copy link
Member

Thanks, this version of the tests also run successfully on mingw i686 and x86_64.

@arichardson arichardson merged commit d33dc14 into main Dec 2, 2024
7 checks passed
@arichardson arichardson deleted the users/arichardson/spr/compiler-rt-allow-running-extendhfxf2_test-without-int128-support branch December 2, 2024 18:53
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.

6 participants