diff options
Diffstat (limited to 'flang/unittests/RuntimeGTest/Numeric.cpp')
-rw-r--r-- | flang/unittests/RuntimeGTest/Numeric.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/flang/unittests/RuntimeGTest/Numeric.cpp b/flang/unittests/RuntimeGTest/Numeric.cpp index b8d8a993f8bf..b930b0a708de 100644 --- a/flang/unittests/RuntimeGTest/Numeric.cpp +++ b/flang/unittests/RuntimeGTest/Numeric.cpp @@ -44,20 +44,12 @@ TEST(Numeric, Ceiling) { EXPECT_EQ(RTNAME(Ceiling4_4)(Real<4>{3.7}), 4); EXPECT_EQ(RTNAME(Ceiling8_8)(Real<8>{-3.7}), -3); EXPECT_EQ(RTNAME(Ceiling4_1)(Real<4>{0}), 0); - EXPECT_EQ(RTNAME(Ceiling4_4)(std::numeric_limits<Real<4>>::infinity()), - std::numeric_limits<Int<4>>::min()); - EXPECT_EQ(RTNAME(Ceiling4_4)(std::numeric_limits<Real<4>>::quiet_NaN()), - std::numeric_limits<Int<4>>::min()); } TEST(Numeric, Floor) { EXPECT_EQ(RTNAME(Floor4_4)(Real<4>{3.7}), 3); EXPECT_EQ(RTNAME(Floor8_8)(Real<8>{-3.7}), -4); EXPECT_EQ(RTNAME(Floor4_1)(Real<4>{0}), 0); - EXPECT_EQ(RTNAME(Floor4_4)(std::numeric_limits<Real<4>>::infinity()), - std::numeric_limits<Int<4>>::min()); - EXPECT_EQ(RTNAME(Floor4_4)(std::numeric_limits<Real<4>>::quiet_NaN()), - std::numeric_limits<Int<4>>::min()); } TEST(Numeric, Exponent) { @@ -118,12 +110,6 @@ TEST(Numeric, Nint) { EXPECT_EQ(RTNAME(Nint4_4)(Real<4>{2.5}), 3); EXPECT_EQ(RTNAME(Nint8_4)(Real<8>{-2.5}), -3); EXPECT_EQ(RTNAME(Nint8_8)(Real<8>{0}), 0); - auto nintInf{RTNAME(Nint4_4)(std::numeric_limits<Real<4>>::infinity())}; - EXPECT_TRUE(nintInf == std::numeric_limits<Int<4>>::min() || - nintInf == std::numeric_limits<Int<4>>::max()); - auto nintNaN{RTNAME(Nint4_4)(std::numeric_limits<Real<4>>::quiet_NaN())}; - EXPECT_TRUE(nintNaN == std::numeric_limits<Int<4>>::min() || - nintNaN == std::numeric_limits<Int<4>>::max()); } TEST(Numeric, RRSpacing) { |