diff options
Diffstat (limited to 'unittests/VMCore/InstructionsTest.cpp')
-rw-r--r-- | unittests/VMCore/InstructionsTest.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/unittests/VMCore/InstructionsTest.cpp b/unittests/VMCore/InstructionsTest.cpp index 9c0cb44..d002101 100644 --- a/unittests/VMCore/InstructionsTest.cpp +++ b/unittests/VMCore/InstructionsTest.cpp @@ -235,19 +235,11 @@ TEST(InstructionsTest, FPMathOperator) { MDBuilder MDHelper(Context); Instruction *I = Builder.CreatePHI(Builder.getDoubleTy(), 0); MDNode *MD1 = MDHelper.createFPMath(1.0); - MDNode *MDF = MDHelper.createFastFPMath(); Value *V1 = Builder.CreateFAdd(I, I, "", MD1); - Value *VF = Builder.CreateFAdd(I, I, "", MDF); EXPECT_TRUE(isa<FPMathOperator>(V1)); - EXPECT_TRUE(isa<FPMathOperator>(VF)); FPMathOperator *O1 = cast<FPMathOperator>(V1); - FPMathOperator *OF = cast<FPMathOperator>(VF); - EXPECT_FALSE(O1->isFastFPAccuracy()); - EXPECT_TRUE(OF->isFastFPAccuracy()); EXPECT_EQ(O1->getFPAccuracy(), 1.0); - EXPECT_GT(OF->getFPAccuracy(), 999.0); delete V1; - delete VF; delete I; } |