[clang] [llvm] [HexFloat] add HexFloat to APFloat (PR #179771)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 4 13:04:02 PST 2026
================
@@ -1509,14 +1752,20 @@ class APFloat : public APFloatBase {
bool isInfinity() const { return getCategory() == fcInfinity; }
bool isNaN() const { return getCategory() == fcNaN; }
- bool isNegative() const { return getIEEE().isNegative(); }
+ bool isNegative() const {
+ return isHexFloat() ? getHex().isNegative() : getIEEE().isNegative();
+ }
bool isDenormal() const { APFLOAT_DISPATCH_ON_SEMANTICS(isDenormal()); }
- bool isSignaling() const { return getIEEE().isSignaling(); }
+ bool isSignaling() const {
+ return (!isHexFloat()) && getIEEE().isSignaling();
----------------
Ariel-Burton wrote:
Removed
https://github.com/llvm/llvm-project/pull/179771
More information about the cfe-commits
mailing list