-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Enable logf128 constant folding for hosts with 128bit long double #96287
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
Changes from 1 commit
4cc6905
97a0b20
94c6914
422fed8
613f6a4
5705316
6ceda72
cc0a937
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,14 @@ | |
|
|
||
| namespace llvm { | ||
|
|
||
| #if defined(__clang__) && defined(__FLOAT128__) && \ | ||
| #if defined(__aarch64__) | ||
| #define HAS_IEE754_FLOAT128 | ||
| #if (defined(__GNUC__) && __GNUC__ > 12) | ||
|
||
| typedef _Float128 float128; | ||
| #else | ||
| typedef long double float128; | ||
| #endif | ||
| #elif defined(__clang__) && defined(__FLOAT128__) && \ | ||
| defined(__SIZEOF_INT128__) && !defined(__LONG_DOUBLE_IBM128__) | ||
| #define HAS_IEE754_FLOAT128 | ||
| typedef __float128 float128; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect we might need to be careful of systems that have long-double==double, such as windows and darwin targets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a check for the mantissa size now which should help with this.