From 2867c85a3754320f96e36afb63325bb76269caa4 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 16 Apr 2012 19:39:33 +0000 Subject: Remove support for the special 'fast' value for fpmath accuracy for the moment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154850 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/VMCore/InstructionsTest.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'unittests/VMCore') diff --git a/unittests/VMCore/InstructionsTest.cpp b/unittests/VMCore/InstructionsTest.cpp index 9c0cb4409f..d002101cd3 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(V1)); - EXPECT_TRUE(isa(VF)); FPMathOperator *O1 = cast(V1); - FPMathOperator *OF = cast(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; } -- cgit v1.2.3