projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
766233b
)
[ADT] Fix another "oops" spotted by eddyb and reported in IRC.
author
Chandler Carruth
<chandlerc@gmail.com>
Mon, 10 Jul 2017 05:41:14 +0000
(
05:41
+0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Mon, 10 Jul 2017 05:41:14 +0000
(
05:41
+0000)
This test pretty clearly should be calling 'maxnum' here. =]
llvm-svn: 307519
llvm/unittests/ADT/APFloatTest.cpp
patch
|
blob
|
history
diff --git
a/llvm/unittests/ADT/APFloatTest.cpp
b/llvm/unittests/ADT/APFloatTest.cpp
index
ec70530
..
69da089
100644
(file)
--- a/
llvm/unittests/ADT/APFloatTest.cpp
+++ b/
llvm/unittests/ADT/APFloatTest.cpp
@@
-552,7
+552,7
@@
TEST(APFloatTest, MaxNum) {
EXPECT_EQ(2.0, maxnum(f1, f2).convertToDouble());
EXPECT_EQ(2.0, maxnum(f2, f1).convertToDouble());
EXPECT_EQ(1.0, maxnum(f1, nan).convertToDouble());
- EXPECT_EQ(1.0, m
in
num(nan, f1).convertToDouble());
+ EXPECT_EQ(1.0, m
ax
num(nan, f1).convertToDouble());
}
TEST(APFloatTest, Denormal) {