[llvm] r289649 - Adapt to recent APFloat change
Stephan Bergmann via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 14 04:11:35 PST 2016
Author: sberg
Date: Wed Dec 14 06:11:35 2016
New Revision: 289649
URL: http://llvm.org/viewvc/llvm-project?rev=289649&view=rev
Log:
Adapt to recent APFloat change
Modified:
llvm/trunk/unittests/ADT/APFloatTest.cpp
Modified: llvm/trunk/unittests/ADT/APFloatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/APFloatTest.cpp?rev=289649&r1=289648&r2=289649&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/APFloatTest.cpp (original)
+++ llvm/trunk/unittests/ADT/APFloatTest.cpp Wed Dec 14 06:11:35 2016
@@ -3205,8 +3205,8 @@ TEST(APFloatTest, PPCDoubleDoubleAddSpec
APFloat::roundingMode RM;
std::tie(Op1[0], Op1[1], Op2[0], Op2[1], Expected, RM) = Tp;
- APFloat A1(APFloat::PPCDoubleDouble, APInt(128, 2, Op1));
- APFloat A2(APFloat::PPCDoubleDouble, APInt(128, 2, Op2));
+ APFloat A1(APFloat::PPCDoubleDouble(), APInt(128, 2, Op1));
+ APFloat A2(APFloat::PPCDoubleDouble(), APInt(128, 2, Op2));
A1.add(A2, RM);
EXPECT_EQ(Expected, A1.getCategory());
@@ -3254,8 +3254,8 @@ TEST(APFloatTest, PPCDoubleDoubleAdd) {
APFloat::roundingMode RM;
std::tie(Op1[0], Op1[1], Op2[0], Op2[1], Expected[0], Expected[1], RM) = Tp;
- APFloat A1(APFloat::PPCDoubleDouble, APInt(128, 2, Op1));
- APFloat A2(APFloat::PPCDoubleDouble, APInt(128, 2, Op2));
+ APFloat A1(APFloat::PPCDoubleDouble(), APInt(128, 2, Op1));
+ APFloat A2(APFloat::PPCDoubleDouble(), APInt(128, 2, Op2));
A1.add(A2, RM);
EXPECT_EQ(Expected[0], A1.bitcastToAPInt().getRawData()[0]);
@@ -3283,8 +3283,8 @@ TEST(APFloatTest, PPCDoubleDoubleSubtrac
APFloat::roundingMode RM;
std::tie(Op1[0], Op1[1], Op2[0], Op2[1], Expected[0], Expected[1], RM) = Tp;
- APFloat A1(APFloat::PPCDoubleDouble, APInt(128, 2, Op1));
- APFloat A2(APFloat::PPCDoubleDouble, APInt(128, 2, Op2));
+ APFloat A1(APFloat::PPCDoubleDouble(), APInt(128, 2, Op1));
+ APFloat A2(APFloat::PPCDoubleDouble(), APInt(128, 2, Op2));
A1.subtract(A2, RM);
EXPECT_EQ(Expected[0], A1.bitcastToAPInt().getRawData()[0]);
More information about the llvm-commits
mailing list