llvm.org GIT mirror llvm / 23efab2
[ADT] Fix another "oops" spotted by eddyb and reported in IRC. This test pretty clearly should be calling 'maxnum' here. =] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307519 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 2 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
551551 EXPECT_EQ(2.0, maxnum(f1, f2).convertToDouble());
552552 EXPECT_EQ(2.0, maxnum(f2, f1).convertToDouble());
553553 EXPECT_EQ(1.0, maxnum(f1, nan).convertToDouble());
554 EXPECT_EQ(1.0, minnum(nan, f1).convertToDouble());
554 EXPECT_EQ(1.0, maxnum(nan, f1).convertToDouble());
555555 }
556556
557557 TEST(APFloatTest, Denormal) {