From d7c0561ad0fb17282456db5e885e406dd523dda7 Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Thu, 20 Jun 2013 18:25:16 +0000 Subject: [PATCH] [APFloat] Fix typo in test so we actually test if we handle denormals. llvm-svn: 184447 --- llvm/unittests/ADT/APFloatTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/unittests/ADT/APFloatTest.cpp b/llvm/unittests/ADT/APFloatTest.cpp index 5382eac..9f3980f 100644 --- a/llvm/unittests/ADT/APFloatTest.cpp +++ b/llvm/unittests/ADT/APFloatTest.cpp @@ -1425,7 +1425,7 @@ TEST(APFloatTest, isIEEENormal) { EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isIEEENormal()); EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isIEEENormal()); EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isIEEENormal()); - EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-159").isIEEENormal()); + EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isIEEENormal()); } TEST(APFloatTest, isFinite) { @@ -1435,7 +1435,7 @@ TEST(APFloatTest, isFinite) { EXPECT_TRUE(APFloat::getZero(APFloat::IEEEsingle, false).isFinite()); EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isFinite()); EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isFinite()); - EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "0x1p-159").isFinite()); + EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "0x1p-149").isFinite()); } TEST(APFloatTest, isInfinity) { @@ -1445,7 +1445,7 @@ TEST(APFloatTest, isInfinity) { EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isInfinity()); EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isInfinity()); EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isInfinity()); - EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-159").isInfinity()); + EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isInfinity()); } TEST(APFloatTest, isNaN) { @@ -1455,7 +1455,7 @@ TEST(APFloatTest, isNaN) { EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isNaN()); EXPECT_TRUE(APFloat::getNaN(APFloat::IEEEsingle, false).isNaN()); EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, false).isNaN()); - EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-159").isNaN()); + EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isNaN()); } TEST(APFloatTest, isFiniteNonZero) { -- 2.7.4