[libc-commits] [libc] [libc][math][c++23] Add bf16{add, sub}{, f, l, f128} math functions (PR #152774)
Krishna Pandey via libc-commits
libc-commits at lists.llvm.org
Fri Aug 8 11:43:07 PDT 2025
================
@@ -271,7 +271,7 @@ struct ModifyMXCSR {
expected) \
.match(actual)
-#define EXPECT_FP_IS_NAN(actual) EXPECT_TRUE((actual) != (actual))
+#define EXPECT_FP_IS_NAN(actual) EXPECT_TRUE(FPBits(actual).is_nan())
----------------
krishna2803 wrote:
This was a fix when comparison operator overloads for bfloat16 comparison operations weren't implemented. I will revert this now since we now support them.
https://github.com/llvm/llvm-project/pull/152774
More information about the libc-commits
mailing list