[Mlir-commits] [llvm] [mlir] [MLIR] Add f6E3M2FN type (PR #105573)
Durgadoss R
llvmlistbot at llvm.org
Wed Aug 28 01:00:00 PDT 2024
================
@@ -2084,16 +2084,17 @@ TEST(APFloatTest, getSmallestNormalized) {
EXPECT_FALSE(test.isDenormal());
EXPECT_TRUE(test.bitwiseIsEqual(expected));
EXPECT_TRUE(test.isSmallestNormalized());
+
test = APFloat::getSmallestNormalized(APFloat::Float6E3M2FN(), false);
expected = APFloat(APFloat::Float6E3M2FN(), "0x1p-2");
-
- test = APFloat::getSmallestNormalized(APFloat::Float4E2M1FN(), false);
- expected = APFloat(APFloat::Float4E2M1FN(), "0x1p0");
EXPECT_FALSE(test.isNegative());
EXPECT_TRUE(test.isFiniteNonZero());
EXPECT_FALSE(test.isDenormal());
EXPECT_TRUE(test.bitwiseIsEqual(expected));
EXPECT_TRUE(test.isSmallestNormalized());
+
+ test = APFloat::getSmallestNormalized(APFloat::Float4E2M1FN(), false);
+ expected = APFloat(APFloat::Float4E2M1FN(), "0x1p0");
EXPECT_FALSE(test.isNegative());
----------------
durga4github wrote:
good catch, Thanks for fixing this!
https://github.com/llvm/llvm-project/pull/105573
More information about the Mlir-commits
mailing list