[clang] [llvm] [APFloat] Add APFloat support for FP4 data type (PR #95392)

Jakub Kuderski via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 13 07:38:40 PDT 2024


================
@@ -6907,6 +7028,42 @@ TEST(APFloatTest, ConvertE2M3FToE3M2F) {
   EXPECT_EQ(status, APFloat::opInexact);
 }
 
+TEST(APFloatTest, ConvertDoubleToE2M1F) {
+  bool losesInfo;
----------------
kuhar wrote:

It's an output parameter in `.convert`, so shouldn't matter either way?

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


More information about the cfe-commits mailing list