[libc-commits] [libc] [libc][math][c++23] Implement basic arithmetic operations for BFloat16 (PR #151228)

Krishna Pandey via libc-commits libc-commits at lists.llvm.org
Sat Aug 2 18:38:45 PDT 2025


================
@@ -53,10 +53,14 @@ class MulTest : public LIBC_NAMESPACE::testing::FEnvSafeTest {
     EXPECT_FP_EQ_ALL_ROUNDING(neg_zero, func(in.zero, in.neg_zero));
     EXPECT_FP_EQ_ALL_ROUNDING(neg_zero, func(in.neg_zero, in.zero));
 
-    EXPECT_FP_EQ_ALL_ROUNDING(OutType(1.0), func(1.0, 1.0));
-    EXPECT_FP_EQ_ALL_ROUNDING(OutType(15.0), func(3.0, 5.0));
-    EXPECT_FP_EQ_ALL_ROUNDING(OutType(0x1.0p-13), func(0x1.0p+1, 0x1.0p-14));
-    EXPECT_FP_EQ_ALL_ROUNDING(OutType(0x1.0p-10), func(0x1.0p+2, 0x1.0p-12));
+    EXPECT_FP_EQ_ALL_ROUNDING(OutType(InType(1.0)),
----------------
krishna2803 wrote:

woops, i was adding InType(...) cast to the function params but mistakenly added those here too

https://github.com/llvm/llvm-project/pull/151228


More information about the libc-commits mailing list