llvm.org GIT mirror llvm / 5fead02
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 Adam Nemet 3 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
244244 EXPECT_FALSE(FDiv->getFastMathFlags().any());
245245 FDiv->setHasAllowReciprocal(true);
246246 FAdd->setHasAllowReciprocal(false);
247 FAdd->setHasNoNaNs(true);
247248 FDiv->copyFastMathFlags(FAdd);
248249 EXPECT_TRUE(FDiv->hasNoNaNs());
249250 EXPECT_FALSE(FDiv->hasAllowReciprocal());