Skip to content

Commit

Permalink
Adapt to recent APFloat change
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289649 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
stbergmann committed Dec 14, 2016
1 parent 36bda32 commit dbb11ef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions unittests/ADT/APFloatTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3205,8 +3205,8 @@ TEST(APFloatTest, PPCDoubleDoubleAddSpecial) {
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());
Expand Down Expand Up @@ -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]);
Expand Down Expand Up @@ -3283,8 +3283,8 @@ TEST(APFloatTest, PPCDoubleDoubleSubtract) {
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]);
Expand Down

0 comments on commit dbb11ef

Please sign in to comment.