mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-01 17:35:38 +00:00
Make test more robust
Set the flags on FAdd locally rather than assuming nothing will change it from way earlier in the test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d10b8de6de
commit
5fead02594
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user