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:
aece995
)
Make test more robust
author
Adam Nemet
<anemet@apple.com>
Tue, 21 Mar 2017 23:50:52 +0000
(23:50 +0000)
committer
Adam Nemet
<anemet@apple.com>
Tue, 21 Mar 2017 23:50:52 +0000
(23:50 +0000)
Set the flags on FAdd locally rather than assuming nothing will change it from
way earlier in the test.
llvm-svn: 298462
llvm/unittests/IR/IRBuilderTest.cpp
patch
|
blob
|
history
diff --git
a/llvm/unittests/IR/IRBuilderTest.cpp
b/llvm/unittests/IR/IRBuilderTest.cpp
index
1812cd3
..
5b27fd6
100644
(file)
--- a/
llvm/unittests/IR/IRBuilderTest.cpp
+++ b/
llvm/unittests/IR/IRBuilderTest.cpp
@@
-245,6
+245,7
@@
TEST_F(IRBuilderTest, FastMathFlags) {
EXPECT_FALSE(FDiv->getFastMathFlags().any());
FDiv->setHasAllowReciprocal(true);
FAdd->setHasAllowReciprocal(false);
+ FAdd->setHasNoNaNs(true);
FDiv->copyFastMathFlags(FAdd);
EXPECT_TRUE(FDiv->hasNoNaNs());
EXPECT_FALSE(FDiv->hasAllowReciprocal());