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

[builtins][NFC] Remove last usage of CRT_LDBL_128BIT #68041

Closed
wants to merge 1 commit into from

Conversation

pranavk
Copy link
Contributor

@pranavk pranavk commented Oct 2, 2023

Superseded by CRT_HAS_TF_MODE

Copy link
Member

@arichardson arichardson left a comment

Choose a reason for hiding this comment

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

I believe this is not quite right since it will break PPC64 where we will now use IEEE128 logbl, etc. unconditionally.

@arichardson
Copy link
Member

arichardson commented Oct 3, 2023

See also https://reviews.llvm.org/D98261 (which has been sitting on phab for around 2 years)

@pranavk
Copy link
Contributor Author

pranavk commented Oct 3, 2023

Synced with Alex offline. He's going to rebase his phab change that will subsume this PR.

@pranavk pranavk closed this Oct 3, 2023
arichardson added a commit that referenced this pull request Oct 24, 2023
…orms (#68132)

GCC provides these functions (e.g. __addtf3, etc.) in libgcc on x86_64.
Since Clang supports float128, we can also enable the existing code by
using float128 for fp_t if either __FLOAT128__ or __SIZEOF_FLOAT128__ is
defined instead of only supporting these builtins for platforms with
128-bit IEEE long doubles.
This commit defines a new tf_float typedef that matches a float with
attribute((mode(TF)) on each given architecture.

There are more tests that could be enabled for x86, but to keep the diff
smaller, I restricted test changes to ones that started failing as part
of this refactoring.

This change has been tested on x86 (natively) and
aarch64,powerpc64,riscv64 and sparc64 via qemu-user.

This supersedes https://reviews.llvm.org/D98261 and should also cover
the changes from #68041.
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