================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits