Bug Summary

File:unittests/ADT/APFloatTest.cpp
Location:line 1045, column 3
Description:Function call argument is an uninitialized value

Annotated Source Code

1//===- llvm/unittest/ADT/APFloat.cpp - APFloat unit tests ---------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "llvm/ADT/APFloat.h"
11#include "llvm/ADT/APSInt.h"
12#include "llvm/ADT/SmallString.h"
13#include "llvm/ADT/SmallVector.h"
14#include "llvm/Support/raw_ostream.h"
15#include "gtest/gtest.h"
16#include <cmath>
17#include <ostream>
18#include <string>
19
20using namespace llvm;
21
22static double convertToDoubleFromString(const char *Str) {
23 llvm::APFloat F(0.0);
24 F.convertFromString(Str, llvm::APFloat::rmNearestTiesToEven);
25 return F.convertToDouble();
26}
27
28static std::string convertToString(double d, unsigned Prec, unsigned Pad) {
29 llvm::SmallVector<char, 100> Buffer;
30 llvm::APFloat F(d);
31 F.toString(Buffer, Prec, Pad);
32 return std::string(Buffer.data(), Buffer.size());
33}
34
35namespace {
36
37TEST(APFloatTest, isSignaling)class APFloatTest_isSignaling_Test : public ::testing::Test {
public: APFloatTest_isSignaling_Test() {} private: virtual void
TestBody(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_isSignaling_Test(APFloatTest_isSignaling_Test
const &); void operator=(APFloatTest_isSignaling_Test const
&);};::testing::TestInfo* const APFloatTest_isSignaling_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "isSignaling", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_isSignaling_Test>);void APFloatTest_isSignaling_Test
::TestBody()
{
38 // We test qNaN, -qNaN, +sNaN, -sNaN with and without payloads. *NOTE* The
39 // positive/negative distinction is included only since the getQNaN/getSNaN
40 // API provides the option.
41 APInt payload = APInt::getOneBitSet(4, 2);
42 EXPECT_FALSE(APFloat::getQNaN(APFloat::IEEEsingle, false).isSignaling())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getQNaN(APFloat
::IEEEsingle, false).isSignaling()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 42, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getQNaN(APFloat::IEEEsingle, false).isSignaling()"
, "true", "false").c_str()) = ::testing::Message()
;
43 EXPECT_FALSE(APFloat::getQNaN(APFloat::IEEEsingle, true).isSignaling())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getQNaN(APFloat
::IEEEsingle, true).isSignaling()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 43, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getQNaN(APFloat::IEEEsingle, true).isSignaling()"
, "true", "false").c_str()) = ::testing::Message()
;
44 EXPECT_FALSE(APFloat::getQNaN(APFloat::IEEEsingle, false, &payload).isSignaling())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getQNaN(APFloat
::IEEEsingle, false, &payload).isSignaling()))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 44, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getQNaN(APFloat::IEEEsingle, false, &payload).isSignaling()"
, "true", "false").c_str()) = ::testing::Message()
;
45 EXPECT_FALSE(APFloat::getQNaN(APFloat::IEEEsingle, true, &payload).isSignaling())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getQNaN(APFloat
::IEEEsingle, true, &payload).isSignaling()))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 45, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getQNaN(APFloat::IEEEsingle, true, &payload).isSignaling()"
, "true", "false").c_str()) = ::testing::Message()
;
46 EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, false).isSignaling())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat::getSNaN(APFloat
::IEEEsingle, false).isSignaling())) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 46, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getSNaN(APFloat::IEEEsingle, false).isSignaling()"
, "false", "true").c_str()) = ::testing::Message()
;
47 EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, true).isSignaling())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat::getSNaN(APFloat
::IEEEsingle, true).isSignaling())) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 47, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getSNaN(APFloat::IEEEsingle, true).isSignaling()"
, "false", "true").c_str()) = ::testing::Message()
;
48 EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, false, &payload).isSignaling())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat::getSNaN(APFloat
::IEEEsingle, false, &payload).isSignaling())) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 48, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getSNaN(APFloat::IEEEsingle, false, &payload).isSignaling()"
, "false", "true").c_str()) = ::testing::Message()
;
49 EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, true, &payload).isSignaling())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat::getSNaN(APFloat
::IEEEsingle, true, &payload).isSignaling())) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 49, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getSNaN(APFloat::IEEEsingle, true, &payload).isSignaling()"
, "false", "true").c_str()) = ::testing::Message()
;
50}
51
52TEST(APFloatTest, next)class APFloatTest_next_Test : public ::testing::Test { public
: APFloatTest_next_Test() {} private: virtual void TestBody()
; static ::testing::TestInfo* const test_info_ __attribute__ (
(unused)); APFloatTest_next_Test(APFloatTest_next_Test const &
); void operator=(APFloatTest_next_Test const &);};::testing
::TestInfo* const APFloatTest_next_Test ::test_info_ = ::testing
::internal::MakeAndRegisterTestInfo( "APFloatTest", "next", __null
, __null, (::testing::internal::GetTestTypeId()), ::testing::
Test::SetUpTestCase, ::testing::Test::TearDownTestCase, new ::
testing::internal::TestFactoryImpl< APFloatTest_next_Test>
);void APFloatTest_next_Test::TestBody()
{
53
54 APFloat test(APFloat::IEEEquad, APFloat::uninitialized);
55 APFloat expected(APFloat::IEEEquad, APFloat::uninitialized);
56
57 // 1. Test Special Cases Values.
58 //
59 // Test all special values for nextUp and nextDown perscribed by IEEE-754R
60 // 2008. These are:
61 // 1. +inf
62 // 2. -inf
63 // 3. getLargest()
64 // 4. -getLargest()
65 // 5. getSmallest()
66 // 6. -getSmallest()
67 // 7. qNaN
68 // 8. sNaN
69 // 9. +0
70 // 10. -0
71
72 // nextUp(+inf) = +inf.
73 test = APFloat::getInf(APFloat::IEEEquad, false);
74 expected = APFloat::getInf(APFloat::IEEEquad, false);
75 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 75, gtest_ar.failure_message()) = ::testing::Message()
;
76 EXPECT_TRUE(test.isInfinity())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isInfinity())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 76, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isInfinity()", "false", "true").c_str()) = ::testing::
Message()
;
77 EXPECT_TRUE(!test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 77, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isNegative()", "false", "true").c_str()) = ::testing
::Message()
;
78 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 78, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
79
80 // nextDown(+inf) = -nextUp(-inf) = -(-getLargest()) = getLargest()
81 test = APFloat::getInf(APFloat::IEEEquad, false);
82 expected = APFloat::getLargest(APFloat::IEEEquad, false);
83 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 83, gtest_ar.failure_message()) = ::testing::Message()
;
84 EXPECT_TRUE(!test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 84, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isNegative()", "false", "true").c_str()) = ::testing
::Message()
;
85 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 85, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
86
87 // nextUp(-inf) = -getLargest()
88 test = APFloat::getInf(APFloat::IEEEquad, true);
89 expected = APFloat::getLargest(APFloat::IEEEquad, true);
90 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 90, gtest_ar.failure_message()) = ::testing::Message()
;
91 EXPECT_TRUE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 91, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "false", "true").c_str()) = ::testing::
Message()
;
92 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 92, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
93
94 // nextDown(-inf) = -nextUp(+inf) = -(+inf) = -inf.
95 test = APFloat::getInf(APFloat::IEEEquad, true);
96 expected = APFloat::getInf(APFloat::IEEEquad, true);
97 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 97, gtest_ar.failure_message()) = ::testing::Message()
;
98 EXPECT_TRUE(test.isInfinity() && test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isInfinity() &&
test.isNegative())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 98, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isInfinity() && test.isNegative()", "false", "true"
).c_str()) = ::testing::Message()
;
99 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 99, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
100
101 // nextUp(getLargest()) = +inf
102 test = APFloat::getLargest(APFloat::IEEEquad, false);
103 expected = APFloat::getInf(APFloat::IEEEquad, false);
104 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 104, gtest_ar.failure_message()) = ::testing::Message()
;
105 EXPECT_TRUE(test.isInfinity() && !test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isInfinity() &&
!test.isNegative())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 105, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isInfinity() && !test.isNegative()", "false",
"true").c_str()) = ::testing::Message()
;
106 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 106, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
107
108 // nextDown(getLargest()) = -nextUp(-getLargest())
109 // = -(-getLargest() + inc)
110 // = getLargest() - inc.
111 test = APFloat::getLargest(APFloat::IEEEquad, false);
112 expected = APFloat(APFloat::IEEEquad,
113 "0x1.fffffffffffffffffffffffffffep+16383");
114 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 114, gtest_ar.failure_message()) = ::testing::Message()
;
115 EXPECT_TRUE(!test.isInfinity() && !test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isInfinity() &&
!test.isNegative())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 115, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isInfinity() && !test.isNegative()", "false"
, "true").c_str()) = ::testing::Message()
;
116 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 116, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
117
118 // nextUp(-getLargest()) = -getLargest() + inc.
119 test = APFloat::getLargest(APFloat::IEEEquad, true);
120 expected = APFloat(APFloat::IEEEquad,
121 "-0x1.fffffffffffffffffffffffffffep+16383");
122 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 122, gtest_ar.failure_message()) = ::testing::Message()
;
123 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 123, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
124
125 // nextDown(-getLargest()) = -nextUp(getLargest()) = -(inf) = -inf.
126 test = APFloat::getLargest(APFloat::IEEEquad, true);
127 expected = APFloat::getInf(APFloat::IEEEquad, true);
128 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 128, gtest_ar.failure_message()) = ::testing::Message()
;
129 EXPECT_TRUE(test.isInfinity() && test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isInfinity() &&
test.isNegative())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 129, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isInfinity() && test.isNegative()", "false", "true"
).c_str()) = ::testing::Message()
;
130 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 130, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
131
132 // nextUp(getSmallest()) = getSmallest() + inc.
133 test = APFloat(APFloat::IEEEquad, "0x0.0000000000000000000000000001p-16382");
134 expected = APFloat(APFloat::IEEEquad,
135 "0x0.0000000000000000000000000002p-16382");
136 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 136, gtest_ar.failure_message()) = ::testing::Message()
;
137 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 137, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
138
139 // nextDown(getSmallest()) = -nextUp(-getSmallest()) = -(-0) = +0.
140 test = APFloat(APFloat::IEEEquad, "0x0.0000000000000000000000000001p-16382");
141 expected = APFloat::getZero(APFloat::IEEEquad, false);
142 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 142, gtest_ar.failure_message()) = ::testing::Message()
;
143 EXPECT_TRUE(test.isZero() && !test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isZero() &&
!test.isNegative())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 143, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isZero() && !test.isNegative()", "false", "true"
).c_str()) = ::testing::Message()
;
144 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 144, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
145
146 // nextUp(-getSmallest()) = -0.
147 test = APFloat(APFloat::IEEEquad, "-0x0.0000000000000000000000000001p-16382");
148 expected = APFloat::getZero(APFloat::IEEEquad, true);
149 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 149, gtest_ar.failure_message()) = ::testing::Message()
;
150 EXPECT_TRUE(test.isZero() && test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isZero() &&
test.isNegative())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 150, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isZero() && test.isNegative()", "false", "true"
).c_str()) = ::testing::Message()
;
151 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 151, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
152
153 // nextDown(-getSmallest()) = -nextUp(getSmallest()) = -getSmallest() - inc.
154 test = APFloat(APFloat::IEEEquad, "-0x0.0000000000000000000000000001p-16382");
155 expected = APFloat(APFloat::IEEEquad,
156 "-0x0.0000000000000000000000000002p-16382");
157 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 157, gtest_ar.failure_message()) = ::testing::Message()
;
158 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 158, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
159
160 // nextUp(qNaN) = qNaN
161 test = APFloat::getQNaN(APFloat::IEEEquad, false);
162 expected = APFloat::getQNaN(APFloat::IEEEquad, false);
163 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 163, gtest_ar.failure_message()) = ::testing::Message()
;
164 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 164, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
165
166 // nextDown(qNaN) = qNaN
167 test = APFloat::getQNaN(APFloat::IEEEquad, false);
168 expected = APFloat::getQNaN(APFloat::IEEEquad, false);
169 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 169, gtest_ar.failure_message()) = ::testing::Message()
;
170 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 170, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
171
172 // nextUp(sNaN) = qNaN
173 test = APFloat::getSNaN(APFloat::IEEEquad, false);
174 expected = APFloat::getQNaN(APFloat::IEEEquad, false);
175 EXPECT_EQ(test.next(false), APFloat::opInvalidOp)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opInvalidOp", test.next
(false), APFloat::opInvalidOp))) ; else ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 175, gtest_ar.failure_message()) = ::testing::Message()
;
176 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 176, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
177
178 // nextDown(sNaN) = qNaN
179 test = APFloat::getSNaN(APFloat::IEEEquad, false);
180 expected = APFloat::getQNaN(APFloat::IEEEquad, false);
181 EXPECT_EQ(test.next(true), APFloat::opInvalidOp)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opInvalidOp", test.next(
true), APFloat::opInvalidOp))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 181, gtest_ar.failure_message()) = ::testing::Message()
;
182 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 182, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
183
184 // nextUp(+0) = +getSmallest()
185 test = APFloat::getZero(APFloat::IEEEquad, false);
186 expected = APFloat::getSmallest(APFloat::IEEEquad, false);
187 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 187, gtest_ar.failure_message()) = ::testing::Message()
;
188 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 188, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
189
190 // nextDown(+0) = -nextUp(-0) = -getSmallest()
191 test = APFloat::getZero(APFloat::IEEEquad, false);
192 expected = APFloat::getSmallest(APFloat::IEEEquad, true);
193 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 193, gtest_ar.failure_message()) = ::testing::Message()
;
194 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 194, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
195
196 // nextUp(-0) = +getSmallest()
197 test = APFloat::getZero(APFloat::IEEEquad, true);
198 expected = APFloat::getSmallest(APFloat::IEEEquad, false);
199 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 199, gtest_ar.failure_message()) = ::testing::Message()
;
200 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 200, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
201
202 // nextDown(-0) = -nextUp(0) = -getSmallest()
203 test = APFloat::getZero(APFloat::IEEEquad, true);
204 expected = APFloat::getSmallest(APFloat::IEEEquad, true);
205 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 205, gtest_ar.failure_message()) = ::testing::Message()
;
206 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 206, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
207
208 // 2. Binade Boundary Tests.
209
210 // 2a. Test denormal <-> normal binade boundaries.
211 // * nextUp(+Largest Denormal) -> +Smallest Normal.
212 // * nextDown(-Largest Denormal) -> -Smallest Normal.
213 // * nextUp(-Smallest Normal) -> -Largest Denormal.
214 // * nextDown(+Smallest Normal) -> +Largest Denormal.
215
216 // nextUp(+Largest Denormal) -> +Smallest Normal.
217 test = APFloat(APFloat::IEEEquad, "0x0.ffffffffffffffffffffffffffffp-16382");
218 expected = APFloat(APFloat::IEEEquad,
219 "0x1.0000000000000000000000000000p-16382");
220 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 220, gtest_ar.failure_message()) = ::testing::Message()
;
221 EXPECT_FALSE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(test.isDenormal()))
) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 221, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "true", "false").c_str()) = ::testing::
Message()
;
222 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 222, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
223
224 // nextDown(-Largest Denormal) -> -Smallest Normal.
225 test = APFloat(APFloat::IEEEquad,
226 "-0x0.ffffffffffffffffffffffffffffp-16382");
227 expected = APFloat(APFloat::IEEEquad,
228 "-0x1.0000000000000000000000000000p-16382");
229 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 229, gtest_ar.failure_message()) = ::testing::Message()
;
230 EXPECT_FALSE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(test.isDenormal()))
) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 230, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "true", "false").c_str()) = ::testing::
Message()
;
231 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 231, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
232
233 // nextUp(-Smallest Normal) -> -LargestDenormal.
234 test = APFloat(APFloat::IEEEquad,
235 "-0x1.0000000000000000000000000000p-16382");
236 expected = APFloat(APFloat::IEEEquad,
237 "-0x0.ffffffffffffffffffffffffffffp-16382");
238 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 238, gtest_ar.failure_message()) = ::testing::Message()
;
239 EXPECT_TRUE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 239, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "false", "true").c_str()) = ::testing::
Message()
;
240 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 240, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
241
242 // nextDown(+Smallest Normal) -> +Largest Denormal.
243 test = APFloat(APFloat::IEEEquad,
244 "+0x1.0000000000000000000000000000p-16382");
245 expected = APFloat(APFloat::IEEEquad,
246 "+0x0.ffffffffffffffffffffffffffffp-16382");
247 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 247, gtest_ar.failure_message()) = ::testing::Message()
;
248 EXPECT_TRUE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 248, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "false", "true").c_str()) = ::testing::
Message()
;
249 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 249, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
250
251 // 2b. Test normal <-> normal binade boundaries.
252 // * nextUp(-Normal Binade Boundary) -> -Normal Binade Boundary + 1.
253 // * nextDown(+Normal Binade Boundary) -> +Normal Binade Boundary - 1.
254 // * nextUp(+Normal Binade Boundary - 1) -> +Normal Binade Boundary.
255 // * nextDown(-Normal Binade Boundary + 1) -> -Normal Binade Boundary.
256
257 // nextUp(-Normal Binade Boundary) -> -Normal Binade Boundary + 1.
258 test = APFloat(APFloat::IEEEquad, "-0x1p+1");
259 expected = APFloat(APFloat::IEEEquad,
260 "-0x1.ffffffffffffffffffffffffffffp+0");
261 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 261, gtest_ar.failure_message()) = ::testing::Message()
;
262 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 262, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
263
264 // nextDown(+Normal Binade Boundary) -> +Normal Binade Boundary - 1.
265 test = APFloat(APFloat::IEEEquad, "0x1p+1");
266 expected = APFloat(APFloat::IEEEquad, "0x1.ffffffffffffffffffffffffffffp+0");
267 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 267, gtest_ar.failure_message()) = ::testing::Message()
;
268 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 268, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
269
270 // nextUp(+Normal Binade Boundary - 1) -> +Normal Binade Boundary.
271 test = APFloat(APFloat::IEEEquad, "0x1.ffffffffffffffffffffffffffffp+0");
272 expected = APFloat(APFloat::IEEEquad, "0x1p+1");
273 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 273, gtest_ar.failure_message()) = ::testing::Message()
;
274 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 274, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
275
276 // nextDown(-Normal Binade Boundary + 1) -> -Normal Binade Boundary.
277 test = APFloat(APFloat::IEEEquad, "-0x1.ffffffffffffffffffffffffffffp+0");
278 expected = APFloat(APFloat::IEEEquad, "-0x1p+1");
279 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 279, gtest_ar.failure_message()) = ::testing::Message()
;
280 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 280, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
281
282 // 2c. Test using next at binade boundaries with a direction away from the
283 // binade boundary. Away from denormal <-> normal boundaries.
284 //
285 // This is to make sure that even though we are at a binade boundary, since
286 // we are rounding away, we do not trigger the binade boundary code. Thus we
287 // test:
288 // * nextUp(-Largest Denormal) -> -Largest Denormal + inc.
289 // * nextDown(+Largest Denormal) -> +Largest Denormal - inc.
290 // * nextUp(+Smallest Normal) -> +Smallest Normal + inc.
291 // * nextDown(-Smallest Normal) -> -Smallest Normal - inc.
292
293 // nextUp(-Largest Denormal) -> -Largest Denormal + inc.
294 test = APFloat(APFloat::IEEEquad, "-0x0.ffffffffffffffffffffffffffffp-16382");
295 expected = APFloat(APFloat::IEEEquad,
296 "-0x0.fffffffffffffffffffffffffffep-16382");
297 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 297, gtest_ar.failure_message()) = ::testing::Message()
;
298 EXPECT_TRUE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 298, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "false", "true").c_str()) = ::testing::
Message()
;
299 EXPECT_TRUE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 299, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "false", "true").c_str()) = ::testing::
Message()
;
300 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 300, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
301
302 // nextDown(+Largest Denormal) -> +Largest Denormal - inc.
303 test = APFloat(APFloat::IEEEquad, "0x0.ffffffffffffffffffffffffffffp-16382");
304 expected = APFloat(APFloat::IEEEquad,
305 "0x0.fffffffffffffffffffffffffffep-16382");
306 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 306, gtest_ar.failure_message()) = ::testing::Message()
;
307 EXPECT_TRUE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 307, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "false", "true").c_str()) = ::testing::
Message()
;
308 EXPECT_TRUE(!test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 308, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isNegative()", "false", "true").c_str()) = ::testing
::Message()
;
309 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 309, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
310
311 // nextUp(+Smallest Normal) -> +Smallest Normal + inc.
312 test = APFloat(APFloat::IEEEquad, "0x1.0000000000000000000000000000p-16382");
313 expected = APFloat(APFloat::IEEEquad,
314 "0x1.0000000000000000000000000001p-16382");
315 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 315, gtest_ar.failure_message()) = ::testing::Message()
;
316 EXPECT_TRUE(!test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 316, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isDenormal()", "false", "true").c_str()) = ::testing
::Message()
;
317 EXPECT_TRUE(!test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 317, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isNegative()", "false", "true").c_str()) = ::testing
::Message()
;
318 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 318, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
319
320 // nextDown(-Smallest Normal) -> -Smallest Normal - inc.
321 test = APFloat(APFloat::IEEEquad, "-0x1.0000000000000000000000000000p-16382");
322 expected = APFloat(APFloat::IEEEquad,
323 "-0x1.0000000000000000000000000001p-16382");
324 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 324, gtest_ar.failure_message()) = ::testing::Message()
;
325 EXPECT_TRUE(!test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 325, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isDenormal()", "false", "true").c_str()) = ::testing
::Message()
;
326 EXPECT_TRUE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 326, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "false", "true").c_str()) = ::testing::
Message()
;
327 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 327, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
328
329 // 2d. Test values which cause our exponent to go to min exponent. This
330 // is to ensure that guards in the code to check for min exponent
331 // trigger properly.
332 // * nextUp(-0x1p-16381) -> -0x1.ffffffffffffffffffffffffffffp-16382
333 // * nextDown(-0x1.ffffffffffffffffffffffffffffp-16382) ->
334 // -0x1p-16381
335 // * nextUp(0x1.ffffffffffffffffffffffffffffp-16382) -> 0x1p-16382
336 // * nextDown(0x1p-16382) -> 0x1.ffffffffffffffffffffffffffffp-16382
337
338 // nextUp(-0x1p-16381) -> -0x1.ffffffffffffffffffffffffffffp-16382
339 test = APFloat(APFloat::IEEEquad, "-0x1p-16381");
340 expected = APFloat(APFloat::IEEEquad,
341 "-0x1.ffffffffffffffffffffffffffffp-16382");
342 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 342, gtest_ar.failure_message()) = ::testing::Message()
;
343 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 343, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
344
345 // nextDown(-0x1.ffffffffffffffffffffffffffffp-16382) ->
346 // -0x1p-16381
347 test = APFloat(APFloat::IEEEquad, "-0x1.ffffffffffffffffffffffffffffp-16382");
348 expected = APFloat(APFloat::IEEEquad, "-0x1p-16381");
349 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 349, gtest_ar.failure_message()) = ::testing::Message()
;
350 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 350, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
351
352 // nextUp(0x1.ffffffffffffffffffffffffffffp-16382) -> 0x1p-16381
353 test = APFloat(APFloat::IEEEquad, "0x1.ffffffffffffffffffffffffffffp-16382");
354 expected = APFloat(APFloat::IEEEquad, "0x1p-16381");
355 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 355, gtest_ar.failure_message()) = ::testing::Message()
;
356 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 356, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
357
358 // nextDown(0x1p-16381) -> 0x1.ffffffffffffffffffffffffffffp-16382
359 test = APFloat(APFloat::IEEEquad, "0x1p-16381");
360 expected = APFloat(APFloat::IEEEquad,
361 "0x1.ffffffffffffffffffffffffffffp-16382");
362 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 362, gtest_ar.failure_message()) = ::testing::Message()
;
363 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 363, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
364
365 // 3. Now we test both denormal/normal computation which will not cause us
366 // to go across binade boundaries. Specifically we test:
367 // * nextUp(+Denormal) -> +Denormal.
368 // * nextDown(+Denormal) -> +Denormal.
369 // * nextUp(-Denormal) -> -Denormal.
370 // * nextDown(-Denormal) -> -Denormal.
371 // * nextUp(+Normal) -> +Normal.
372 // * nextDown(+Normal) -> +Normal.
373 // * nextUp(-Normal) -> -Normal.
374 // * nextDown(-Normal) -> -Normal.
375
376 // nextUp(+Denormal) -> +Denormal.
377 test = APFloat(APFloat::IEEEquad,
378 "0x0.ffffffffffffffffffffffff000cp-16382");
379 expected = APFloat(APFloat::IEEEquad,
380 "0x0.ffffffffffffffffffffffff000dp-16382");
381 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 381, gtest_ar.failure_message()) = ::testing::Message()
;
382 EXPECT_TRUE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 382, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "false", "true").c_str()) = ::testing::
Message()
;
383 EXPECT_TRUE(!test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 383, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isNegative()", "false", "true").c_str()) = ::testing
::Message()
;
384 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 384, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
385
386 // nextDown(+Denormal) -> +Denormal.
387 test = APFloat(APFloat::IEEEquad,
388 "0x0.ffffffffffffffffffffffff000cp-16382");
389 expected = APFloat(APFloat::IEEEquad,
390 "0x0.ffffffffffffffffffffffff000bp-16382");
391 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 391, gtest_ar.failure_message()) = ::testing::Message()
;
392 EXPECT_TRUE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 392, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "false", "true").c_str()) = ::testing::
Message()
;
393 EXPECT_TRUE(!test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 393, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isNegative()", "false", "true").c_str()) = ::testing
::Message()
;
394 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 394, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
395
396 // nextUp(-Denormal) -> -Denormal.
397 test = APFloat(APFloat::IEEEquad,
398 "-0x0.ffffffffffffffffffffffff000cp-16382");
399 expected = APFloat(APFloat::IEEEquad,
400 "-0x0.ffffffffffffffffffffffff000bp-16382");
401 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 401, gtest_ar.failure_message()) = ::testing::Message()
;
402 EXPECT_TRUE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 402, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "false", "true").c_str()) = ::testing::
Message()
;
403 EXPECT_TRUE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 403, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "false", "true").c_str()) = ::testing::
Message()
;
404 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 404, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
405
406 // nextDown(-Denormal) -> -Denormal
407 test = APFloat(APFloat::IEEEquad,
408 "-0x0.ffffffffffffffffffffffff000cp-16382");
409 expected = APFloat(APFloat::IEEEquad,
410 "-0x0.ffffffffffffffffffffffff000dp-16382");
411 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 411, gtest_ar.failure_message()) = ::testing::Message()
;
412 EXPECT_TRUE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 412, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "false", "true").c_str()) = ::testing::
Message()
;
413 EXPECT_TRUE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 413, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "false", "true").c_str()) = ::testing::
Message()
;
414 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 414, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
415
416 // nextUp(+Normal) -> +Normal.
417 test = APFloat(APFloat::IEEEquad,
418 "0x1.ffffffffffffffffffffffff000cp-16000");
419 expected = APFloat(APFloat::IEEEquad,
420 "0x1.ffffffffffffffffffffffff000dp-16000");
421 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 421, gtest_ar.failure_message()) = ::testing::Message()
;
422 EXPECT_TRUE(!test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 422, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isDenormal()", "false", "true").c_str()) = ::testing
::Message()
;
423 EXPECT_TRUE(!test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 423, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isNegative()", "false", "true").c_str()) = ::testing
::Message()
;
424 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 424, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
425
426 // nextDown(+Normal) -> +Normal.
427 test = APFloat(APFloat::IEEEquad,
428 "0x1.ffffffffffffffffffffffff000cp-16000");
429 expected = APFloat(APFloat::IEEEquad,
430 "0x1.ffffffffffffffffffffffff000bp-16000");
431 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 431, gtest_ar.failure_message()) = ::testing::Message()
;
432 EXPECT_TRUE(!test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 432, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isDenormal()", "false", "true").c_str()) = ::testing
::Message()
;
433 EXPECT_TRUE(!test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 433, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isNegative()", "false", "true").c_str()) = ::testing
::Message()
;
434 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 434, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
435
436 // nextUp(-Normal) -> -Normal.
437 test = APFloat(APFloat::IEEEquad,
438 "-0x1.ffffffffffffffffffffffff000cp-16000");
439 expected = APFloat(APFloat::IEEEquad,
440 "-0x1.ffffffffffffffffffffffff000bp-16000");
441 EXPECT_EQ(test.next(false), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(false))) == 1)>::
Compare("test.next(false)", "APFloat::opOK", test.next(false)
, APFloat::opOK))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 441, gtest_ar.failure_message()) = ::testing::Message()
;
442 EXPECT_TRUE(!test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 442, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isDenormal()", "false", "true").c_str()) = ::testing
::Message()
;
443 EXPECT_TRUE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 443, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "false", "true").c_str()) = ::testing::
Message()
;
444 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 444, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
445
446 // nextDown(-Normal) -> -Normal.
447 test = APFloat(APFloat::IEEEquad,
448 "-0x1.ffffffffffffffffffffffff000cp-16000");
449 expected = APFloat(APFloat::IEEEquad,
450 "-0x1.ffffffffffffffffffffffff000dp-16000");
451 EXPECT_EQ(test.next(true), APFloat::opOK)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(test.next(true))) == 1)>::
Compare("test.next(true)", "APFloat::opOK", test.next(true), APFloat
::opOK))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 451, gtest_ar.failure_message()) = ::testing::Message()
;
452 EXPECT_TRUE(!test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 452, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!test.isDenormal()", "false", "true").c_str()) = ::testing
::Message()
;
453 EXPECT_TRUE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 453, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "false", "true").c_str()) = ::testing::
Message()
;
454 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 454, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
455}
456
457TEST(APFloatTest, FMA)class APFloatTest_FMA_Test : public ::testing::Test { public:
APFloatTest_FMA_Test() {} private: virtual void TestBody(); static
::testing::TestInfo* const test_info_ __attribute__ ((unused
)); APFloatTest_FMA_Test(APFloatTest_FMA_Test const &); void
operator=(APFloatTest_FMA_Test const &);};::testing::TestInfo
* const APFloatTest_FMA_Test ::test_info_ = ::testing::internal
::MakeAndRegisterTestInfo( "APFloatTest", "FMA", __null, __null
, (::testing::internal::GetTestTypeId()), ::testing::Test::SetUpTestCase
, ::testing::Test::TearDownTestCase, new ::testing::internal::
TestFactoryImpl< APFloatTest_FMA_Test>);void APFloatTest_FMA_Test
::TestBody()
{
458 APFloat::roundingMode rdmd = APFloat::rmNearestTiesToEven;
459
460 {
461 APFloat f1(14.5f);
462 APFloat f2(-14.5f);
463 APFloat f3(225.0f);
464 f1.fusedMultiplyAdd(f2, f3, APFloat::rmNearestTiesToEven);
465 EXPECT_EQ(14.75f, f1.convertToFloat())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(14.75f)) == 1)>::Compare("14.75f"
, "f1.convertToFloat()", 14.75f, f1.convertToFloat()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 465, gtest_ar.failure_message()) = ::testing::Message()
;
466 }
467
468 {
469 APFloat Val2(2.0f);
470 APFloat f1((float)1.17549435e-38F);
471 APFloat f2((float)1.17549435e-38F);
472 f1.divide(Val2, rdmd);
473 f2.divide(Val2, rdmd);
474 APFloat f3(12.0f);
475 f1.fusedMultiplyAdd(f2, f3, APFloat::rmNearestTiesToEven);
476 EXPECT_EQ(12.0f, f1.convertToFloat())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(12.0f)) == 1)>::Compare("12.0f"
, "f1.convertToFloat()", 12.0f, f1.convertToFloat()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 476, gtest_ar.failure_message()) = ::testing::Message()
;
477 }
478
479 // Test for correct zero sign when answer is exactly zero.
480 // fma(1.0, -1.0, 1.0) -> +ve 0.
481 {
482 APFloat f1(1.0);
483 APFloat f2(-1.0);
484 APFloat f3(1.0);
485 f1.fusedMultiplyAdd(f2, f3, APFloat::rmNearestTiesToEven);
486 EXPECT_TRUE(!f1.isNegative() && f1.isZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!f1.isNegative() &&
f1.isZero())) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 486, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "!f1.isNegative() && f1.isZero()", "false", "true")
.c_str()) = ::testing::Message()
;
487 }
488
489 // Test for correct zero sign when answer is exactly zero and rounding towards
490 // negative.
491 // fma(1.0, -1.0, 1.0) -> +ve 0.
492 {
493 APFloat f1(1.0);
494 APFloat f2(-1.0);
495 APFloat f3(1.0);
496 f1.fusedMultiplyAdd(f2, f3, APFloat::rmTowardNegative);
497 EXPECT_TRUE(f1.isNegative() && f1.isZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(f1.isNegative() &&
f1.isZero())) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 497, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "f1.isNegative() && f1.isZero()", "false", "true").
c_str()) = ::testing::Message()
;
498 }
499
500 // Test for correct (in this case -ve) sign when adding like signed zeros.
501 // Test fma(0.0, -0.0, -0.0) -> -ve 0.
502 {
503 APFloat f1(0.0);
504 APFloat f2(-0.0);
505 APFloat f3(-0.0);
506 f1.fusedMultiplyAdd(f2, f3, APFloat::rmNearestTiesToEven);
507 EXPECT_TRUE(f1.isNegative() && f1.isZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(f1.isNegative() &&
f1.isZero())) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 507, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "f1.isNegative() && f1.isZero()", "false", "true").
c_str()) = ::testing::Message()
;
508 }
509
510 // Test -ve sign preservation when small negative results underflow.
511 {
512 APFloat f1(APFloat::IEEEdouble, "-0x1p-1074");
513 APFloat f2(APFloat::IEEEdouble, "+0x1p-1074");
514 APFloat f3(0.0);
515 f1.fusedMultiplyAdd(f2, f3, APFloat::rmNearestTiesToEven);
516 EXPECT_TRUE(f1.isNegative() && f1.isZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(f1.isNegative() &&
f1.isZero())) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 516, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "f1.isNegative() && f1.isZero()", "false", "true").
c_str()) = ::testing::Message()
;
517 }
518
519 // Test x87 extended precision case from http://llvm.org/PR20728.
520 {
521 APFloat M1(APFloat::x87DoubleExtended, 1.0);
522 APFloat M2(APFloat::x87DoubleExtended, 1.0);
523 APFloat A(APFloat::x87DoubleExtended, 3.0);
524
525 bool losesInfo = false;
526 M1.fusedMultiplyAdd(M1, A, APFloat::rmNearestTiesToEven);
527 M1.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &losesInfo);
528 EXPECT_FALSE(losesInfo)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(losesInfo))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 528, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "losesInfo", "true", "false").c_str()) = ::testing::Message
()
;
529 EXPECT_EQ(4.0f, M1.convertToFloat())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(4.0f)) == 1)>::Compare("4.0f"
, "M1.convertToFloat()", 4.0f, M1.convertToFloat()))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 529, gtest_ar.failure_message()) = ::testing::Message()
;
530 }
531}
532
533TEST(APFloatTest, MinNum)class APFloatTest_MinNum_Test : public ::testing::Test { public
: APFloatTest_MinNum_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_MinNum_Test(APFloatTest_MinNum_Test const
&); void operator=(APFloatTest_MinNum_Test const &);
};::testing::TestInfo* const APFloatTest_MinNum_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "MinNum", __null, __null, (::testing::internal::GetTestTypeId
()), ::testing::Test::SetUpTestCase, ::testing::Test::TearDownTestCase
, new ::testing::internal::TestFactoryImpl< APFloatTest_MinNum_Test
>);void APFloatTest_MinNum_Test::TestBody()
{
534 APFloat f1(1.0);
535 APFloat f2(2.0);
536 APFloat nan = APFloat::getNaN(APFloat::IEEEdouble);
537
538 EXPECT_EQ(1.0, minnum(f1, f2).convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "minnum(f1, f2).convertToDouble()", 1.0, minnum(f1, f2).convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 538, gtest_ar.failure_message()) = ::testing::Message()
;
539 EXPECT_EQ(1.0, minnum(f2, f1).convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "minnum(f2, f1).convertToDouble()", 1.0, minnum(f2, f1).convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 539, gtest_ar.failure_message()) = ::testing::Message()
;
540 EXPECT_EQ(1.0, minnum(f1, nan).convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "minnum(f1, nan).convertToDouble()", 1.0, minnum(f1, nan).convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 540, gtest_ar.failure_message()) = ::testing::Message()
;
541 EXPECT_EQ(1.0, minnum(nan, f1).convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "minnum(nan, f1).convertToDouble()", 1.0, minnum(nan, f1).convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 541, gtest_ar.failure_message()) = ::testing::Message()
;
542}
543
544TEST(APFloatTest, MaxNum)class APFloatTest_MaxNum_Test : public ::testing::Test { public
: APFloatTest_MaxNum_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_MaxNum_Test(APFloatTest_MaxNum_Test const
&); void operator=(APFloatTest_MaxNum_Test const &);
};::testing::TestInfo* const APFloatTest_MaxNum_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "MaxNum", __null, __null, (::testing::internal::GetTestTypeId
()), ::testing::Test::SetUpTestCase, ::testing::Test::TearDownTestCase
, new ::testing::internal::TestFactoryImpl< APFloatTest_MaxNum_Test
>);void APFloatTest_MaxNum_Test::TestBody()
{
545 APFloat f1(1.0);
546 APFloat f2(2.0);
547 APFloat nan = APFloat::getNaN(APFloat::IEEEdouble);
548
549 EXPECT_EQ(2.0, maxnum(f1, f2).convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.0)) == 1)>::Compare("2.0"
, "maxnum(f1, f2).convertToDouble()", 2.0, maxnum(f1, f2).convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 549, gtest_ar.failure_message()) = ::testing::Message()
;
550 EXPECT_EQ(2.0, maxnum(f2, f1).convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.0)) == 1)>::Compare("2.0"
, "maxnum(f2, f1).convertToDouble()", 2.0, maxnum(f2, f1).convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 550, gtest_ar.failure_message()) = ::testing::Message()
;
551 EXPECT_EQ(1.0, maxnum(f1, nan).convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "maxnum(f1, nan).convertToDouble()", 1.0, maxnum(f1, nan).convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 551, gtest_ar.failure_message()) = ::testing::Message()
;
552 EXPECT_EQ(1.0, minnum(nan, f1).convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "minnum(nan, f1).convertToDouble()", 1.0, minnum(nan, f1).convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 552, gtest_ar.failure_message()) = ::testing::Message()
;
553}
554
555TEST(APFloatTest, Denormal)class APFloatTest_Denormal_Test : public ::testing::Test { public
: APFloatTest_Denormal_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_Denormal_Test(APFloatTest_Denormal_Test
const &); void operator=(APFloatTest_Denormal_Test const
&);};::testing::TestInfo* const APFloatTest_Denormal_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "Denormal", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_Denormal_Test>);void APFloatTest_Denormal_Test
::TestBody()
{
556 APFloat::roundingMode rdmd = APFloat::rmNearestTiesToEven;
557
558 // Test single precision
559 {
560 const char *MinNormalStr = "1.17549435082228750797e-38";
561 EXPECT_FALSE(APFloat(APFloat::IEEEsingle, MinNormalStr).isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(APFloat::IEEEsingle
, MinNormalStr).isDenormal()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 561, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, MinNormalStr).isDenormal()", "true"
, "false").c_str()) = ::testing::Message()
;
562 EXPECT_FALSE(APFloat(APFloat::IEEEsingle, 0.0).isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(APFloat::IEEEsingle
, 0.0).isDenormal()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 562, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, 0.0).isDenormal()", "true", "false"
).c_str()) = ::testing::Message()
;
563
564 APFloat Val2(APFloat::IEEEsingle, 2.0e0);
565 APFloat T(APFloat::IEEEsingle, MinNormalStr);
566 T.divide(Val2, rdmd);
567 EXPECT_TRUE(T.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(T.isDenormal())) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 567, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "T.isDenormal()", "false", "true").c_str()) = ::testing::Message
()
;
568 }
569
570 // Test double precision
571 {
572 const char *MinNormalStr = "2.22507385850720138309e-308";
573 EXPECT_FALSE(APFloat(APFloat::IEEEdouble, MinNormalStr).isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(APFloat::IEEEdouble
, MinNormalStr).isDenormal()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 573, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEdouble, MinNormalStr).isDenormal()", "true"
, "false").c_str()) = ::testing::Message()
;
574 EXPECT_FALSE(APFloat(APFloat::IEEEdouble, 0.0).isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(APFloat::IEEEdouble
, 0.0).isDenormal()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 574, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEdouble, 0.0).isDenormal()", "true", "false"
).c_str()) = ::testing::Message()
;
575
576 APFloat Val2(APFloat::IEEEdouble, 2.0e0);
577 APFloat T(APFloat::IEEEdouble, MinNormalStr);
578 T.divide(Val2, rdmd);
579 EXPECT_TRUE(T.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(T.isDenormal())) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 579, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "T.isDenormal()", "false", "true").c_str()) = ::testing::Message
()
;
580 }
581
582 // Test Intel double-ext
583 {
584 const char *MinNormalStr = "3.36210314311209350626e-4932";
585 EXPECT_FALSE(APFloat(APFloat::x87DoubleExtended, MinNormalStr).isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(APFloat::x87DoubleExtended
, MinNormalStr).isDenormal()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 585, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::x87DoubleExtended, MinNormalStr).isDenormal()"
, "true", "false").c_str()) = ::testing::Message()
;
586 EXPECT_FALSE(APFloat(APFloat::x87DoubleExtended, 0.0).isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(APFloat::x87DoubleExtended
, 0.0).isDenormal()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 586, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::x87DoubleExtended, 0.0).isDenormal()", "true"
, "false").c_str()) = ::testing::Message()
;
587
588 APFloat Val2(APFloat::x87DoubleExtended, 2.0e0);
589 APFloat T(APFloat::x87DoubleExtended, MinNormalStr);
590 T.divide(Val2, rdmd);
591 EXPECT_TRUE(T.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(T.isDenormal())) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 591, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "T.isDenormal()", "false", "true").c_str()) = ::testing::Message
()
;
592 }
593
594 // Test quadruple precision
595 {
596 const char *MinNormalStr = "3.36210314311209350626267781732175260e-4932";
597 EXPECT_FALSE(APFloat(APFloat::IEEEquad, MinNormalStr).isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(APFloat::IEEEquad
, MinNormalStr).isDenormal()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 597, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEquad, MinNormalStr).isDenormal()", "true"
, "false").c_str()) = ::testing::Message()
;
598 EXPECT_FALSE(APFloat(APFloat::IEEEquad, 0.0).isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(APFloat::IEEEquad
, 0.0).isDenormal()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 598, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEquad, 0.0).isDenormal()", "true", "false"
).c_str()) = ::testing::Message()
;
599
600 APFloat Val2(APFloat::IEEEquad, 2.0e0);
601 APFloat T(APFloat::IEEEquad, MinNormalStr);
602 T.divide(Val2, rdmd);
603 EXPECT_TRUE(T.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(T.isDenormal())) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 603, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "T.isDenormal()", "false", "true").c_str()) = ::testing::Message
()
;
604 }
605}
606
607TEST(APFloatTest, Zero)class APFloatTest_Zero_Test : public ::testing::Test { public
: APFloatTest_Zero_Test() {} private: virtual void TestBody()
; static ::testing::TestInfo* const test_info_ __attribute__ (
(unused)); APFloatTest_Zero_Test(APFloatTest_Zero_Test const &
); void operator=(APFloatTest_Zero_Test const &);};::testing
::TestInfo* const APFloatTest_Zero_Test ::test_info_ = ::testing
::internal::MakeAndRegisterTestInfo( "APFloatTest", "Zero", __null
, __null, (::testing::internal::GetTestTypeId()), ::testing::
Test::SetUpTestCase, ::testing::Test::TearDownTestCase, new ::
testing::internal::TestFactoryImpl< APFloatTest_Zero_Test>
);void APFloatTest_Zero_Test::TestBody()
{
608 EXPECT_EQ(0.0f, APFloat(0.0f).convertToFloat())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0f)) == 1)>::Compare("0.0f"
, "APFloat(0.0f).convertToFloat()", 0.0f, APFloat(0.0f).convertToFloat
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 608, gtest_ar.failure_message()) = ::testing::Message()
;
609 EXPECT_EQ(-0.0f, APFloat(-0.0f).convertToFloat())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0f)) == 1)>::Compare("-0.0f"
, "APFloat(-0.0f).convertToFloat()", -0.0f, APFloat(-0.0f).convertToFloat
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 609, gtest_ar.failure_message()) = ::testing::Message()
;
610 EXPECT_TRUE(APFloat(-0.0f).isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(-0.0f).isNegative
())) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 610, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(-0.0f).isNegative()", "false", "true").c_str()) = ::
testing::Message()
;
611
612 EXPECT_EQ(0.0, APFloat(0.0).convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(0.0).convertToDouble()", 0.0, APFloat(0.0).convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 612, gtest_ar.failure_message()) = ::testing::Message()
;
613 EXPECT_EQ(-0.0, APFloat(-0.0).convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(-0.0).convertToDouble()", -0.0, APFloat(-0.0).convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 613, gtest_ar.failure_message()) = ::testing::Message()
;
614 EXPECT_TRUE(APFloat(-0.0).isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(-0.0).isNegative
())) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 614, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(-0.0).isNegative()", "false", "true").c_str()) = ::
testing::Message()
;
615}
616
617TEST(APFloatTest, DecimalStringsWithoutNullTerminators)class APFloatTest_DecimalStringsWithoutNullTerminators_Test :
public ::testing::Test { public: APFloatTest_DecimalStringsWithoutNullTerminators_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); APFloatTest_DecimalStringsWithoutNullTerminators_Test
(APFloatTest_DecimalStringsWithoutNullTerminators_Test const &
); void operator=(APFloatTest_DecimalStringsWithoutNullTerminators_Test
const &);};::testing::TestInfo* const APFloatTest_DecimalStringsWithoutNullTerminators_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "DecimalStringsWithoutNullTerminators", __null
, __null, (::testing::internal::GetTestTypeId()), ::testing::
Test::SetUpTestCase, ::testing::Test::TearDownTestCase, new ::
testing::internal::TestFactoryImpl< APFloatTest_DecimalStringsWithoutNullTerminators_Test
>);void APFloatTest_DecimalStringsWithoutNullTerminators_Test
::TestBody()
{
618 // Make sure that we can parse strings without null terminators.
619 // rdar://14323230.
620 APFloat Val(APFloat::IEEEdouble);
621 Val.convertFromString(StringRef("0.00", 3),
622 llvm::APFloat::rmNearestTiesToEven);
623 EXPECT_EQ(Val.convertToDouble(), 0.0)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(Val.convertToDouble())) == 1)
>::Compare("Val.convertToDouble()", "0.0", Val.convertToDouble
(), 0.0))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 623, gtest_ar.failure_message()) = ::testing::Message()
;
624 Val.convertFromString(StringRef("0.01", 3),
625 llvm::APFloat::rmNearestTiesToEven);
626 EXPECT_EQ(Val.convertToDouble(), 0.0)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(Val.convertToDouble())) == 1)
>::Compare("Val.convertToDouble()", "0.0", Val.convertToDouble
(), 0.0))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 626, gtest_ar.failure_message()) = ::testing::Message()
;
627 Val.convertFromString(StringRef("0.09", 3),
628 llvm::APFloat::rmNearestTiesToEven);
629 EXPECT_EQ(Val.convertToDouble(), 0.0)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(Val.convertToDouble())) == 1)
>::Compare("Val.convertToDouble()", "0.0", Val.convertToDouble
(), 0.0))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 629, gtest_ar.failure_message()) = ::testing::Message()
;
630 Val.convertFromString(StringRef("0.095", 4),
631 llvm::APFloat::rmNearestTiesToEven);
632 EXPECT_EQ(Val.convertToDouble(), 0.09)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(Val.convertToDouble())) == 1)
>::Compare("Val.convertToDouble()", "0.09", Val.convertToDouble
(), 0.09))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 632, gtest_ar.failure_message()) = ::testing::Message()
;
633 Val.convertFromString(StringRef("0.00e+3", 7),
634 llvm::APFloat::rmNearestTiesToEven);
635 EXPECT_EQ(Val.convertToDouble(), 0.00)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(Val.convertToDouble())) == 1)
>::Compare("Val.convertToDouble()", "0.00", Val.convertToDouble
(), 0.00))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 635, gtest_ar.failure_message()) = ::testing::Message()
;
636 Val.convertFromString(StringRef("0e+3", 4),
637 llvm::APFloat::rmNearestTiesToEven);
638 EXPECT_EQ(Val.convertToDouble(), 0.00)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(Val.convertToDouble())) == 1)
>::Compare("Val.convertToDouble()", "0.00", Val.convertToDouble
(), 0.00))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 638, gtest_ar.failure_message()) = ::testing::Message()
;
639
640}
641
642TEST(APFloatTest, fromZeroDecimalString)class APFloatTest_fromZeroDecimalString_Test : public ::testing
::Test { public: APFloatTest_fromZeroDecimalString_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); APFloatTest_fromZeroDecimalString_Test
(APFloatTest_fromZeroDecimalString_Test const &); void operator
=(APFloatTest_fromZeroDecimalString_Test const &);};::testing
::TestInfo* const APFloatTest_fromZeroDecimalString_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "fromZeroDecimalString", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_fromZeroDecimalString_Test>);void APFloatTest_fromZeroDecimalString_Test
::TestBody()
{
643 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0\").convertToDouble()", 0.0
, APFloat(APFloat::IEEEdouble, "0").convertToDouble()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 643, gtest_ar.failure_message()) = ::testing::Message()
;
644 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0\").convertToDouble()", +
0.0, APFloat(APFloat::IEEEdouble, "+0").convertToDouble()))) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 644, gtest_ar.failure_message()) = ::testing::Message()
;
645 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0\").convertToDouble()", -
0.0, APFloat(APFloat::IEEEdouble, "-0").convertToDouble()))) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 645, gtest_ar.failure_message()) = ::testing::Message()
;
646
647 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0.").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0.\").convertToDouble()", 0.0
, APFloat(APFloat::IEEEdouble, "0.").convertToDouble()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 647, gtest_ar.failure_message()) = ::testing::Message()
;
648 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0.").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0.\").convertToDouble()", +
0.0, APFloat(APFloat::IEEEdouble, "+0.").convertToDouble())))
; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 648, gtest_ar.failure_message()) = ::testing::Message()
;
649 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0.").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0.\").convertToDouble()", -
0.0, APFloat(APFloat::IEEEdouble, "-0.").convertToDouble())))
; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 649, gtest_ar.failure_message()) = ::testing::Message()
;
650
651 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, ".0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \".0\").convertToDouble()", 0.0
, APFloat(APFloat::IEEEdouble, ".0").convertToDouble()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 651, gtest_ar.failure_message()) = ::testing::Message()
;
652 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+.0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+.0\").convertToDouble()", +
0.0, APFloat(APFloat::IEEEdouble, "+.0").convertToDouble())))
; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 652, gtest_ar.failure_message()) = ::testing::Message()
;
653 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-.0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-.0\").convertToDouble()", -
0.0, APFloat(APFloat::IEEEdouble, "-.0").convertToDouble())))
; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 653, gtest_ar.failure_message()) = ::testing::Message()
;
654
655 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0.0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0.0\").convertToDouble()", 0.0
, APFloat(APFloat::IEEEdouble, "0.0").convertToDouble()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 655, gtest_ar.failure_message()) = ::testing::Message()
;
656 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0.0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0.0\").convertToDouble()",
+0.0, APFloat(APFloat::IEEEdouble, "+0.0").convertToDouble()
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 656, gtest_ar.failure_message()) = ::testing::Message()
;
657 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0.0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0.0\").convertToDouble()",
-0.0, APFloat(APFloat::IEEEdouble, "-0.0").convertToDouble()
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 657, gtest_ar.failure_message()) = ::testing::Message()
;
658
659 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "00000.").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"00000.\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "00000.").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 659, gtest_ar.failure_message()) = ::testing::Message()
;
660 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+00000.").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+00000.\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+00000.").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 660, gtest_ar.failure_message()) = ::testing::Message()
;
661 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-00000.").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-00000.\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-00000.").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 661, gtest_ar.failure_message()) = ::testing::Message()
;
662
663 EXPECT_EQ(0.0, APFloat(APFloat::IEEEdouble, ".00000").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \".00000\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, ".00000").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 663, gtest_ar.failure_message()) = ::testing::Message()
;
664 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+.00000").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+.00000\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+.00000").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 664, gtest_ar.failure_message()) = ::testing::Message()
;
665 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-.00000").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-.00000\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-.00000").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 665, gtest_ar.failure_message()) = ::testing::Message()
;
666
667 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0000.00000").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0000.00000\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0000.00000").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 667, gtest_ar.failure_message()) = ::testing::Message()
;
668 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0000.00000").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0000.00000\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0000.00000").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 668, gtest_ar.failure_message()) = ::testing::Message()
;
669 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0000.00000").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0000.00000\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0000.00000").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 669, gtest_ar.failure_message()) = ::testing::Message()
;
670}
671
672TEST(APFloatTest, fromZeroDecimalSingleExponentString)class APFloatTest_fromZeroDecimalSingleExponentString_Test : public
::testing::Test { public: APFloatTest_fromZeroDecimalSingleExponentString_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); APFloatTest_fromZeroDecimalSingleExponentString_Test
(APFloatTest_fromZeroDecimalSingleExponentString_Test const &
); void operator=(APFloatTest_fromZeroDecimalSingleExponentString_Test
const &);};::testing::TestInfo* const APFloatTest_fromZeroDecimalSingleExponentString_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "fromZeroDecimalSingleExponentString", __null
, __null, (::testing::internal::GetTestTypeId()), ::testing::
Test::SetUpTestCase, ::testing::Test::TearDownTestCase, new ::
testing::internal::TestFactoryImpl< APFloatTest_fromZeroDecimalSingleExponentString_Test
>);void APFloatTest_fromZeroDecimalSingleExponentString_Test
::TestBody()
{
673 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0e1\").convertToDouble()", 0.0
, APFloat(APFloat::IEEEdouble, "0e1").convertToDouble()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 673, gtest_ar.failure_message()) = ::testing::Message()
;
674 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0e1\").convertToDouble()",
+0.0, APFloat(APFloat::IEEEdouble, "+0e1").convertToDouble()
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 674, gtest_ar.failure_message()) = ::testing::Message()
;
675 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0e1\").convertToDouble()",
-0.0, APFloat(APFloat::IEEEdouble, "-0e1").convertToDouble()
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 675, gtest_ar.failure_message()) = ::testing::Message()
;
676
677 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0e+1\").convertToDouble()",
0.0, APFloat(APFloat::IEEEdouble, "0e+1").convertToDouble())
)) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 677, gtest_ar.failure_message()) = ::testing::Message()
;
678 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0e+1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0e+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 678, gtest_ar.failure_message()) = ::testing::Message()
;
679 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0e+1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0e+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 679, gtest_ar.failure_message()) = ::testing::Message()
;
680
681 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0e-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0e-1\").convertToDouble()",
0.0, APFloat(APFloat::IEEEdouble, "0e-1").convertToDouble())
)) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 681, gtest_ar.failure_message()) = ::testing::Message()
;
682 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0e-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0e-1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0e-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 682, gtest_ar.failure_message()) = ::testing::Message()
;
683 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0e-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0e-1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0e-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 683, gtest_ar.failure_message()) = ::testing::Message()
;
684
685
686 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0.e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0.e1\").convertToDouble()",
0.0, APFloat(APFloat::IEEEdouble, "0.e1").convertToDouble())
)) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 686, gtest_ar.failure_message()) = ::testing::Message()
;
687 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0.e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0.e1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0.e1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 687, gtest_ar.failure_message()) = ::testing::Message()
;
688 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0.e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0.e1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0.e1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 688, gtest_ar.failure_message()) = ::testing::Message()
;
689
690 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0.e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0.e+1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0.e+1").convertToDouble(
)))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 690, gtest_ar.failure_message()) = ::testing::Message()
;
691 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0.e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0.e+1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0.e+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 691, gtest_ar.failure_message()) = ::testing::Message()
;
692 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0.e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0.e+1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0.e+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 692, gtest_ar.failure_message()) = ::testing::Message()
;
693
694 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0.e-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0.e-1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0.e-1").convertToDouble(
)))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 694, gtest_ar.failure_message()) = ::testing::Message()
;
695 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0.e-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0.e-1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0.e-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 695, gtest_ar.failure_message()) = ::testing::Message()
;
696 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0.e-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0.e-1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0.e-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 696, gtest_ar.failure_message()) = ::testing::Message()
;
697
698 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, ".0e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \".0e1\").convertToDouble()",
0.0, APFloat(APFloat::IEEEdouble, ".0e1").convertToDouble())
)) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 698, gtest_ar.failure_message()) = ::testing::Message()
;
699 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+.0e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+.0e1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+.0e1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 699, gtest_ar.failure_message()) = ::testing::Message()
;
700 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-.0e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-.0e1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-.0e1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 700, gtest_ar.failure_message()) = ::testing::Message()
;
701
702 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, ".0e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \".0e+1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, ".0e+1").convertToDouble(
)))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 702, gtest_ar.failure_message()) = ::testing::Message()
;
703 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+.0e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+.0e+1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+.0e+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 703, gtest_ar.failure_message()) = ::testing::Message()
;
704 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-.0e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-.0e+1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-.0e+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 704, gtest_ar.failure_message()) = ::testing::Message()
;
705
706 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, ".0e-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \".0e-1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, ".0e-1").convertToDouble(
)))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 706, gtest_ar.failure_message()) = ::testing::Message()
;
707 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+.0e-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+.0e-1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+.0e-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 707, gtest_ar.failure_message()) = ::testing::Message()
;
708 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-.0e-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-.0e-1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-.0e-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 708, gtest_ar.failure_message()) = ::testing::Message()
;
709
710
711 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0.0e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0.0e1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0.0e1").convertToDouble(
)))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 711, gtest_ar.failure_message()) = ::testing::Message()
;
712 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0.0e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0.0e1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0.0e1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 712, gtest_ar.failure_message()) = ::testing::Message()
;
713 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0.0e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0.0e1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0.0e1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 713, gtest_ar.failure_message()) = ::testing::Message()
;
714
715 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0.0e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0.0e+1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0.0e+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 715, gtest_ar.failure_message()) = ::testing::Message()
;
716 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0.0e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0.0e+1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0.0e+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 716, gtest_ar.failure_message()) = ::testing::Message()
;
717 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0.0e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0.0e+1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0.0e+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 717, gtest_ar.failure_message()) = ::testing::Message()
;
718
719 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0.0e-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0.0e-1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0.0e-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 719, gtest_ar.failure_message()) = ::testing::Message()
;
720 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0.0e-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0.0e-1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0.0e-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 720, gtest_ar.failure_message()) = ::testing::Message()
;
721 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0.0e-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0.0e-1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0.0e-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 721, gtest_ar.failure_message()) = ::testing::Message()
;
722
723
724 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "000.0000e1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"000.0000e1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "000.0000e1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 724, gtest_ar.failure_message()) = ::testing::Message()
;
725 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+000.0000e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+000.0000e+1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+000.0000e+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 725, gtest_ar.failure_message()) = ::testing::Message()
;
726 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-000.0000e+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-000.0000e+1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-000.0000e+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 726, gtest_ar.failure_message()) = ::testing::Message()
;
727}
728
729TEST(APFloatTest, fromZeroDecimalLargeExponentString)class APFloatTest_fromZeroDecimalLargeExponentString_Test : public
::testing::Test { public: APFloatTest_fromZeroDecimalLargeExponentString_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); APFloatTest_fromZeroDecimalLargeExponentString_Test
(APFloatTest_fromZeroDecimalLargeExponentString_Test const &
); void operator=(APFloatTest_fromZeroDecimalLargeExponentString_Test
const &);};::testing::TestInfo* const APFloatTest_fromZeroDecimalLargeExponentString_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "fromZeroDecimalLargeExponentString", __null,
__null, (::testing::internal::GetTestTypeId()), ::testing::Test
::SetUpTestCase, ::testing::Test::TearDownTestCase, new ::testing
::internal::TestFactoryImpl< APFloatTest_fromZeroDecimalLargeExponentString_Test
>);void APFloatTest_fromZeroDecimalLargeExponentString_Test
::TestBody()
{
730 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0e1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0e1234\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0e1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 730, gtest_ar.failure_message()) = ::testing::Message()
;
731 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0e1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0e1234\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0e1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 731, gtest_ar.failure_message()) = ::testing::Message()
;
732 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0e1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0e1234\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0e1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 732, gtest_ar.failure_message()) = ::testing::Message()
;
733
734 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0e+1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0e+1234\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0e+1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 734, gtest_ar.failure_message()) = ::testing::Message()
;
735 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0e+1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0e+1234\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0e+1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 735, gtest_ar.failure_message()) = ::testing::Message()
;
736 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0e+1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0e+1234\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0e+1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 736, gtest_ar.failure_message()) = ::testing::Message()
;
737
738 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0e-1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0e-1234\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0e-1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 738, gtest_ar.failure_message()) = ::testing::Message()
;
739 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0e-1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0e-1234\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0e-1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 739, gtest_ar.failure_message()) = ::testing::Message()
;
740 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0e-1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0e-1234\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0e-1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 740, gtest_ar.failure_message()) = ::testing::Message()
;
741
742 EXPECT_EQ(0.0, APFloat(APFloat::IEEEdouble, "000.0000e1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"000.0000e1234\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "000.0000e1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 742, gtest_ar.failure_message()) = ::testing::Message()
;
743 EXPECT_EQ(0.0, APFloat(APFloat::IEEEdouble, "000.0000e-1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"000.0000e-1234\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "000.0000e-1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 743, gtest_ar.failure_message()) = ::testing::Message()
;
744
745 EXPECT_EQ(0.0, APFloat(APFloat::IEEEdouble, StringRef("0e1234\02", 6)).convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, StringRef(\"0e1234\\02\", 6)).convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, StringRef("0e1234\02", 6)
).convertToDouble()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 745, gtest_ar.failure_message()) = ::testing::Message()
;
746}
747
748TEST(APFloatTest, fromZeroHexadecimalString)class APFloatTest_fromZeroHexadecimalString_Test : public ::testing
::Test { public: APFloatTest_fromZeroHexadecimalString_Test()
{} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); APFloatTest_fromZeroHexadecimalString_Test
(APFloatTest_fromZeroHexadecimalString_Test const &); void
operator=(APFloatTest_fromZeroHexadecimalString_Test const &
);};::testing::TestInfo* const APFloatTest_fromZeroHexadecimalString_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "fromZeroHexadecimalString", __null, __null, (
::testing::internal::GetTestTypeId()), ::testing::Test::SetUpTestCase
, ::testing::Test::TearDownTestCase, new ::testing::internal::
TestFactoryImpl< APFloatTest_fromZeroHexadecimalString_Test
>);void APFloatTest_fromZeroHexadecimalString_Test::TestBody
()
{
749 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0p1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0p1").convertToDouble(
)))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 749, gtest_ar.failure_message()) = ::testing::Message()
;
750 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0x0p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0x0p1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0x0p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 750, gtest_ar.failure_message()) = ::testing::Message()
;
751 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x0p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x0p1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x0p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 751, gtest_ar.failure_message()) = ::testing::Message()
;
752
753 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0p+1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 753, gtest_ar.failure_message()) = ::testing::Message()
;
754 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0x0p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0x0p+1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0x0p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 754, gtest_ar.failure_message()) = ::testing::Message()
;
755 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x0p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x0p+1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x0p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 755, gtest_ar.failure_message()) = ::testing::Message()
;
756
757 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0p-1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 757, gtest_ar.failure_message()) = ::testing::Message()
;
758 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0x0p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0x0p-1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0x0p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 758, gtest_ar.failure_message()) = ::testing::Message()
;
759 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x0p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x0p-1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x0p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 759, gtest_ar.failure_message()) = ::testing::Message()
;
760
761
762 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0.p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0.p1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0.p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 762, gtest_ar.failure_message()) = ::testing::Message()
;
763 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0x0.p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0x0.p1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0x0.p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 763, gtest_ar.failure_message()) = ::testing::Message()
;
764 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x0.p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x0.p1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x0.p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 764, gtest_ar.failure_message()) = ::testing::Message()
;
765
766 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0.p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0.p+1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0.p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 766, gtest_ar.failure_message()) = ::testing::Message()
;
767 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0x0.p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0x0.p+1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0x0.p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 767, gtest_ar.failure_message()) = ::testing::Message()
;
768 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x0.p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x0.p+1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x0.p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 768, gtest_ar.failure_message()) = ::testing::Message()
;
769
770 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0.p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0.p-1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0.p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 770, gtest_ar.failure_message()) = ::testing::Message()
;
771 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0x0.p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0x0.p-1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0x0.p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 771, gtest_ar.failure_message()) = ::testing::Message()
;
772 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x0.p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x0.p-1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x0.p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 772, gtest_ar.failure_message()) = ::testing::Message()
;
773
774
775 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x.0p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x.0p1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x.0p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 775, gtest_ar.failure_message()) = ::testing::Message()
;
776 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0x.0p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0x.0p1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0x.0p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 776, gtest_ar.failure_message()) = ::testing::Message()
;
777 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x.0p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x.0p1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x.0p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 777, gtest_ar.failure_message()) = ::testing::Message()
;
778
779 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x.0p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x.0p+1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x.0p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 779, gtest_ar.failure_message()) = ::testing::Message()
;
780 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0x.0p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0x.0p+1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0x.0p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 780, gtest_ar.failure_message()) = ::testing::Message()
;
781 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x.0p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x.0p+1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x.0p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 781, gtest_ar.failure_message()) = ::testing::Message()
;
782
783 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x.0p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x.0p-1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x.0p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 783, gtest_ar.failure_message()) = ::testing::Message()
;
784 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0x.0p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0x.0p-1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0x.0p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 784, gtest_ar.failure_message()) = ::testing::Message()
;
785 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x.0p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x.0p-1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x.0p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 785, gtest_ar.failure_message()) = ::testing::Message()
;
786
787
788 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0.0p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0.0p1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0.0p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 788, gtest_ar.failure_message()) = ::testing::Message()
;
789 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0x0.0p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0x0.0p1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0x0.0p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 789, gtest_ar.failure_message()) = ::testing::Message()
;
790 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x0.0p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x0.0p1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x0.0p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 790, gtest_ar.failure_message()) = ::testing::Message()
;
791
792 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0.0p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0.0p+1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0.0p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 792, gtest_ar.failure_message()) = ::testing::Message()
;
793 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0x0.0p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0x0.0p+1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0x0.0p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 793, gtest_ar.failure_message()) = ::testing::Message()
;
794 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x0.0p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x0.0p+1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x0.0p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 794, gtest_ar.failure_message()) = ::testing::Message()
;
795
796 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0.0p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0.0p-1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0.0p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 796, gtest_ar.failure_message()) = ::testing::Message()
;
797 EXPECT_EQ(+0.0, APFloat(APFloat::IEEEdouble, "+0x0.0p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.0)) == 1)>::Compare("+0.0"
, "APFloat(APFloat::IEEEdouble, \"+0x0.0p-1\").convertToDouble()"
, +0.0, APFloat(APFloat::IEEEdouble, "+0x0.0p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 797, gtest_ar.failure_message()) = ::testing::Message()
;
798 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x0.0p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x0.0p-1\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x0.0p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 798, gtest_ar.failure_message()) = ::testing::Message()
;
799
800
801 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x00000.p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x00000.p1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x00000.p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 801, gtest_ar.failure_message()) = ::testing::Message()
;
802 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0000.00000p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0000.00000p1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0000.00000p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 802, gtest_ar.failure_message()) = ::testing::Message()
;
803 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x.00000p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x.00000p1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x.00000p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 803, gtest_ar.failure_message()) = ::testing::Message()
;
804 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0.p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0.p1\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0.p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 804, gtest_ar.failure_message()) = ::testing::Message()
;
805 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0p1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0p1234\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0p1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 805, gtest_ar.failure_message()) = ::testing::Message()
;
806 EXPECT_EQ(-0.0, APFloat(APFloat::IEEEdouble, "-0x0p1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "APFloat(APFloat::IEEEdouble, \"-0x0p1234\").convertToDouble()"
, -0.0, APFloat(APFloat::IEEEdouble, "-0x0p1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 806, gtest_ar.failure_message()) = ::testing::Message()
;
807 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x00000.p1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x00000.p1234\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x00000.p1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 807, gtest_ar.failure_message()) = ::testing::Message()
;
808 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0000.00000p1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0000.00000p1234\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0000.00000p1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 808, gtest_ar.failure_message()) = ::testing::Message()
;
809 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x.00000p1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x.00000p1234\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x.00000p1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 809, gtest_ar.failure_message()) = ::testing::Message()
;
810 EXPECT_EQ( 0.0, APFloat(APFloat::IEEEdouble, "0x0.p1234").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "APFloat(APFloat::IEEEdouble, \"0x0.p1234\").convertToDouble()"
, 0.0, APFloat(APFloat::IEEEdouble, "0x0.p1234").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 810, gtest_ar.failure_message()) = ::testing::Message()
;
811}
812
813TEST(APFloatTest, fromDecimalString)class APFloatTest_fromDecimalString_Test : public ::testing::
Test { public: APFloatTest_fromDecimalString_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); APFloatTest_fromDecimalString_Test
(APFloatTest_fromDecimalString_Test const &); void operator
=(APFloatTest_fromDecimalString_Test const &);};::testing
::TestInfo* const APFloatTest_fromDecimalString_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "fromDecimalString", __null, __null, (::testing::internal::
GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing::
Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_fromDecimalString_Test>);void APFloatTest_fromDecimalString_Test
::TestBody()
{
814 EXPECT_EQ(1.0, APFloat(APFloat::IEEEdouble, "1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "APFloat(APFloat::IEEEdouble, \"1\").convertToDouble()", 1.0
, APFloat(APFloat::IEEEdouble, "1").convertToDouble()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 814, gtest_ar.failure_message()) = ::testing::Message()
;
815 EXPECT_EQ(2.0, APFloat(APFloat::IEEEdouble, "2.").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.0)) == 1)>::Compare("2.0"
, "APFloat(APFloat::IEEEdouble, \"2.\").convertToDouble()", 2.0
, APFloat(APFloat::IEEEdouble, "2.").convertToDouble()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 815, gtest_ar.failure_message()) = ::testing::Message()
;
816 EXPECT_EQ(0.5, APFloat(APFloat::IEEEdouble, ".5").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.5)) == 1)>::Compare("0.5"
, "APFloat(APFloat::IEEEdouble, \".5\").convertToDouble()", 0.5
, APFloat(APFloat::IEEEdouble, ".5").convertToDouble()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 816, gtest_ar.failure_message()) = ::testing::Message()
;
817 EXPECT_EQ(1.0, APFloat(APFloat::IEEEdouble, "1.0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "APFloat(APFloat::IEEEdouble, \"1.0\").convertToDouble()", 1.0
, APFloat(APFloat::IEEEdouble, "1.0").convertToDouble()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 817, gtest_ar.failure_message()) = ::testing::Message()
;
818 EXPECT_EQ(-2.0, APFloat(APFloat::IEEEdouble, "-2").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-2.0)) == 1)>::Compare("-2.0"
, "APFloat(APFloat::IEEEdouble, \"-2\").convertToDouble()", -
2.0, APFloat(APFloat::IEEEdouble, "-2").convertToDouble()))) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 818, gtest_ar.failure_message()) = ::testing::Message()
;
819 EXPECT_EQ(-4.0, APFloat(APFloat::IEEEdouble, "-4.").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-4.0)) == 1)>::Compare("-4.0"
, "APFloat(APFloat::IEEEdouble, \"-4.\").convertToDouble()", -
4.0, APFloat(APFloat::IEEEdouble, "-4.").convertToDouble())))
; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 819, gtest_ar.failure_message()) = ::testing::Message()
;
820 EXPECT_EQ(-0.5, APFloat(APFloat::IEEEdouble, "-.5").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.5)) == 1)>::Compare("-0.5"
, "APFloat(APFloat::IEEEdouble, \"-.5\").convertToDouble()", -
0.5, APFloat(APFloat::IEEEdouble, "-.5").convertToDouble())))
; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 820, gtest_ar.failure_message()) = ::testing::Message()
;
821 EXPECT_EQ(-1.5, APFloat(APFloat::IEEEdouble, "-1.5").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-1.5)) == 1)>::Compare("-1.5"
, "APFloat(APFloat::IEEEdouble, \"-1.5\").convertToDouble()",
-1.5, APFloat(APFloat::IEEEdouble, "-1.5").convertToDouble()
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 821, gtest_ar.failure_message()) = ::testing::Message()
;
822 EXPECT_EQ(1.25e12, APFloat(APFloat::IEEEdouble, "1.25e12").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.25e12)) == 1)>::Compare(
"1.25e12", "APFloat(APFloat::IEEEdouble, \"1.25e12\").convertToDouble()"
, 1.25e12, APFloat(APFloat::IEEEdouble, "1.25e12").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 822, gtest_ar.failure_message()) = ::testing::Message()
;
823 EXPECT_EQ(1.25e+12, APFloat(APFloat::IEEEdouble, "1.25e+12").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.25e+12)) == 1)>::Compare
("1.25e+12", "APFloat(APFloat::IEEEdouble, \"1.25e+12\").convertToDouble()"
, 1.25e+12, APFloat(APFloat::IEEEdouble, "1.25e+12").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 823, gtest_ar.failure_message()) = ::testing::Message()
;
824 EXPECT_EQ(1.25e-12, APFloat(APFloat::IEEEdouble, "1.25e-12").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.25e-12)) == 1)>::Compare
("1.25e-12", "APFloat(APFloat::IEEEdouble, \"1.25e-12\").convertToDouble()"
, 1.25e-12, APFloat(APFloat::IEEEdouble, "1.25e-12").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 824, gtest_ar.failure_message()) = ::testing::Message()
;
825 EXPECT_EQ(1024.0, APFloat(APFloat::IEEEdouble, "1024.").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1024.0)) == 1)>::Compare("1024.0"
, "APFloat(APFloat::IEEEdouble, \"1024.\").convertToDouble()"
, 1024.0, APFloat(APFloat::IEEEdouble, "1024.").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 825, gtest_ar.failure_message()) = ::testing::Message()
;
826 EXPECT_EQ(1024.05, APFloat(APFloat::IEEEdouble, "1024.05000").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1024.05)) == 1)>::Compare(
"1024.05", "APFloat(APFloat::IEEEdouble, \"1024.05000\").convertToDouble()"
, 1024.05, APFloat(APFloat::IEEEdouble, "1024.05000").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 826, gtest_ar.failure_message()) = ::testing::Message()
;
827 EXPECT_EQ(0.05, APFloat(APFloat::IEEEdouble, ".05000").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.05)) == 1)>::Compare("0.05"
, "APFloat(APFloat::IEEEdouble, \".05000\").convertToDouble()"
, 0.05, APFloat(APFloat::IEEEdouble, ".05000").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 827, gtest_ar.failure_message()) = ::testing::Message()
;
828 EXPECT_EQ(2.0, APFloat(APFloat::IEEEdouble, "2.").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.0)) == 1)>::Compare("2.0"
, "APFloat(APFloat::IEEEdouble, \"2.\").convertToDouble()", 2.0
, APFloat(APFloat::IEEEdouble, "2.").convertToDouble()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 828, gtest_ar.failure_message()) = ::testing::Message()
;
829 EXPECT_EQ(2.0e2, APFloat(APFloat::IEEEdouble, "2.e2").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.0e2)) == 1)>::Compare("2.0e2"
, "APFloat(APFloat::IEEEdouble, \"2.e2\").convertToDouble()",
2.0e2, APFloat(APFloat::IEEEdouble, "2.e2").convertToDouble(
)))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 829, gtest_ar.failure_message()) = ::testing::Message()
;
830 EXPECT_EQ(2.0e+2, APFloat(APFloat::IEEEdouble, "2.e+2").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.0e+2)) == 1)>::Compare("2.0e+2"
, "APFloat(APFloat::IEEEdouble, \"2.e+2\").convertToDouble()"
, 2.0e+2, APFloat(APFloat::IEEEdouble, "2.e+2").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 830, gtest_ar.failure_message()) = ::testing::Message()
;
831 EXPECT_EQ(2.0e-2, APFloat(APFloat::IEEEdouble, "2.e-2").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.0e-2)) == 1)>::Compare("2.0e-2"
, "APFloat(APFloat::IEEEdouble, \"2.e-2\").convertToDouble()"
, 2.0e-2, APFloat(APFloat::IEEEdouble, "2.e-2").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 831, gtest_ar.failure_message()) = ::testing::Message()
;
832 EXPECT_EQ(2.05e2, APFloat(APFloat::IEEEdouble, "002.05000e2").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.05e2)) == 1)>::Compare("2.05e2"
, "APFloat(APFloat::IEEEdouble, \"002.05000e2\").convertToDouble()"
, 2.05e2, APFloat(APFloat::IEEEdouble, "002.05000e2").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 832, gtest_ar.failure_message()) = ::testing::Message()
;
833 EXPECT_EQ(2.05e+2, APFloat(APFloat::IEEEdouble, "002.05000e+2").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.05e+2)) == 1)>::Compare(
"2.05e+2", "APFloat(APFloat::IEEEdouble, \"002.05000e+2\").convertToDouble()"
, 2.05e+2, APFloat(APFloat::IEEEdouble, "002.05000e+2").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 833, gtest_ar.failure_message()) = ::testing::Message()
;
834 EXPECT_EQ(2.05e-2, APFloat(APFloat::IEEEdouble, "002.05000e-2").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.05e-2)) == 1)>::Compare(
"2.05e-2", "APFloat(APFloat::IEEEdouble, \"002.05000e-2\").convertToDouble()"
, 2.05e-2, APFloat(APFloat::IEEEdouble, "002.05000e-2").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 834, gtest_ar.failure_message()) = ::testing::Message()
;
835 EXPECT_EQ(2.05e12, APFloat(APFloat::IEEEdouble, "002.05000e12").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.05e12)) == 1)>::Compare(
"2.05e12", "APFloat(APFloat::IEEEdouble, \"002.05000e12\").convertToDouble()"
, 2.05e12, APFloat(APFloat::IEEEdouble, "002.05000e12").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 835, gtest_ar.failure_message()) = ::testing::Message()
;
836 EXPECT_EQ(2.05e+12, APFloat(APFloat::IEEEdouble, "002.05000e+12").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.05e+12)) == 1)>::Compare
("2.05e+12", "APFloat(APFloat::IEEEdouble, \"002.05000e+12\").convertToDouble()"
, 2.05e+12, APFloat(APFloat::IEEEdouble, "002.05000e+12").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 836, gtest_ar.failure_message()) = ::testing::Message()
;
837 EXPECT_EQ(2.05e-12, APFloat(APFloat::IEEEdouble, "002.05000e-12").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.05e-12)) == 1)>::Compare
("2.05e-12", "APFloat(APFloat::IEEEdouble, \"002.05000e-12\").convertToDouble()"
, 2.05e-12, APFloat(APFloat::IEEEdouble, "002.05000e-12").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 837, gtest_ar.failure_message()) = ::testing::Message()
;
838
839 // These are "carefully selected" to overflow the fast log-base
840 // calculations in APFloat.cpp
841 EXPECT_TRUE(APFloat(APFloat::IEEEdouble, "99e99999").isInfinity())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEdouble
, "99e99999").isInfinity())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 841, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEdouble, \"99e99999\").isInfinity()", "false"
, "true").c_str()) = ::testing::Message()
;
842 EXPECT_TRUE(APFloat(APFloat::IEEEdouble, "-99e99999").isInfinity())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEdouble
, "-99e99999").isInfinity())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 842, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEdouble, \"-99e99999\").isInfinity()",
"false", "true").c_str()) = ::testing::Message()
;
843 EXPECT_TRUE(APFloat(APFloat::IEEEdouble, "1e-99999").isPosZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEdouble
, "1e-99999").isPosZero())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 843, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEdouble, \"1e-99999\").isPosZero()", "false"
, "true").c_str()) = ::testing::Message()
;
844 EXPECT_TRUE(APFloat(APFloat::IEEEdouble, "-1e-99999").isNegZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEdouble
, "-1e-99999").isNegZero())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 844, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEdouble, \"-1e-99999\").isNegZero()", "false"
, "true").c_str()) = ::testing::Message()
;
845
846 EXPECT_EQ(2.71828, convertToDoubleFromString("2.71828"))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.71828)) == 1)>::Compare(
"2.71828", "convertToDoubleFromString(\"2.71828\")", 2.71828,
convertToDoubleFromString("2.71828")))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 846, gtest_ar.failure_message()) = ::testing::Message()
;
847}
848
849TEST(APFloatTest, fromHexadecimalString)class APFloatTest_fromHexadecimalString_Test : public ::testing
::Test { public: APFloatTest_fromHexadecimalString_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); APFloatTest_fromHexadecimalString_Test
(APFloatTest_fromHexadecimalString_Test const &); void operator
=(APFloatTest_fromHexadecimalString_Test const &);};::testing
::TestInfo* const APFloatTest_fromHexadecimalString_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "fromHexadecimalString", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_fromHexadecimalString_Test>);void APFloatTest_fromHexadecimalString_Test
::TestBody()
{
850 EXPECT_EQ( 1.0, APFloat(APFloat::IEEEdouble, "0x1p0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "APFloat(APFloat::IEEEdouble, \"0x1p0\").convertToDouble()"
, 1.0, APFloat(APFloat::IEEEdouble, "0x1p0").convertToDouble(
)))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 850, gtest_ar.failure_message()) = ::testing::Message()
;
851 EXPECT_EQ(+1.0, APFloat(APFloat::IEEEdouble, "+0x1p0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+1.0)) == 1)>::Compare("+1.0"
, "APFloat(APFloat::IEEEdouble, \"+0x1p0\").convertToDouble()"
, +1.0, APFloat(APFloat::IEEEdouble, "+0x1p0").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 851, gtest_ar.failure_message()) = ::testing::Message()
;
852 EXPECT_EQ(-1.0, APFloat(APFloat::IEEEdouble, "-0x1p0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-1.0)) == 1)>::Compare("-1.0"
, "APFloat(APFloat::IEEEdouble, \"-0x1p0\").convertToDouble()"
, -1.0, APFloat(APFloat::IEEEdouble, "-0x1p0").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 852, gtest_ar.failure_message()) = ::testing::Message()
;
853
854 EXPECT_EQ( 1.0, APFloat(APFloat::IEEEdouble, "0x1p+0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "APFloat(APFloat::IEEEdouble, \"0x1p+0\").convertToDouble()"
, 1.0, APFloat(APFloat::IEEEdouble, "0x1p+0").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 854, gtest_ar.failure_message()) = ::testing::Message()
;
855 EXPECT_EQ(+1.0, APFloat(APFloat::IEEEdouble, "+0x1p+0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+1.0)) == 1)>::Compare("+1.0"
, "APFloat(APFloat::IEEEdouble, \"+0x1p+0\").convertToDouble()"
, +1.0, APFloat(APFloat::IEEEdouble, "+0x1p+0").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 855, gtest_ar.failure_message()) = ::testing::Message()
;
856 EXPECT_EQ(-1.0, APFloat(APFloat::IEEEdouble, "-0x1p+0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-1.0)) == 1)>::Compare("-1.0"
, "APFloat(APFloat::IEEEdouble, \"-0x1p+0\").convertToDouble()"
, -1.0, APFloat(APFloat::IEEEdouble, "-0x1p+0").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 856, gtest_ar.failure_message()) = ::testing::Message()
;
857
858 EXPECT_EQ( 1.0, APFloat(APFloat::IEEEdouble, "0x1p-0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "APFloat(APFloat::IEEEdouble, \"0x1p-0\").convertToDouble()"
, 1.0, APFloat(APFloat::IEEEdouble, "0x1p-0").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 858, gtest_ar.failure_message()) = ::testing::Message()
;
859 EXPECT_EQ(+1.0, APFloat(APFloat::IEEEdouble, "+0x1p-0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+1.0)) == 1)>::Compare("+1.0"
, "APFloat(APFloat::IEEEdouble, \"+0x1p-0\").convertToDouble()"
, +1.0, APFloat(APFloat::IEEEdouble, "+0x1p-0").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 859, gtest_ar.failure_message()) = ::testing::Message()
;
860 EXPECT_EQ(-1.0, APFloat(APFloat::IEEEdouble, "-0x1p-0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-1.0)) == 1)>::Compare("-1.0"
, "APFloat(APFloat::IEEEdouble, \"-0x1p-0\").convertToDouble()"
, -1.0, APFloat(APFloat::IEEEdouble, "-0x1p-0").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 860, gtest_ar.failure_message()) = ::testing::Message()
;
861
862
863 EXPECT_EQ( 2.0, APFloat(APFloat::IEEEdouble, "0x1p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.0)) == 1)>::Compare("2.0"
, "APFloat(APFloat::IEEEdouble, \"0x1p1\").convertToDouble()"
, 2.0, APFloat(APFloat::IEEEdouble, "0x1p1").convertToDouble(
)))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 863, gtest_ar.failure_message()) = ::testing::Message()
;
864 EXPECT_EQ(+2.0, APFloat(APFloat::IEEEdouble, "+0x1p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+2.0)) == 1)>::Compare("+2.0"
, "APFloat(APFloat::IEEEdouble, \"+0x1p1\").convertToDouble()"
, +2.0, APFloat(APFloat::IEEEdouble, "+0x1p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 864, gtest_ar.failure_message()) = ::testing::Message()
;
865 EXPECT_EQ(-2.0, APFloat(APFloat::IEEEdouble, "-0x1p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-2.0)) == 1)>::Compare("-2.0"
, "APFloat(APFloat::IEEEdouble, \"-0x1p1\").convertToDouble()"
, -2.0, APFloat(APFloat::IEEEdouble, "-0x1p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 865, gtest_ar.failure_message()) = ::testing::Message()
;
866
867 EXPECT_EQ( 2.0, APFloat(APFloat::IEEEdouble, "0x1p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2.0)) == 1)>::Compare("2.0"
, "APFloat(APFloat::IEEEdouble, \"0x1p+1\").convertToDouble()"
, 2.0, APFloat(APFloat::IEEEdouble, "0x1p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 867, gtest_ar.failure_message()) = ::testing::Message()
;
868 EXPECT_EQ(+2.0, APFloat(APFloat::IEEEdouble, "+0x1p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+2.0)) == 1)>::Compare("+2.0"
, "APFloat(APFloat::IEEEdouble, \"+0x1p+1\").convertToDouble()"
, +2.0, APFloat(APFloat::IEEEdouble, "+0x1p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 868, gtest_ar.failure_message()) = ::testing::Message()
;
869 EXPECT_EQ(-2.0, APFloat(APFloat::IEEEdouble, "-0x1p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-2.0)) == 1)>::Compare("-2.0"
, "APFloat(APFloat::IEEEdouble, \"-0x1p+1\").convertToDouble()"
, -2.0, APFloat(APFloat::IEEEdouble, "-0x1p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 869, gtest_ar.failure_message()) = ::testing::Message()
;
870
871 EXPECT_EQ( 0.5, APFloat(APFloat::IEEEdouble, "0x1p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.5)) == 1)>::Compare("0.5"
, "APFloat(APFloat::IEEEdouble, \"0x1p-1\").convertToDouble()"
, 0.5, APFloat(APFloat::IEEEdouble, "0x1p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 871, gtest_ar.failure_message()) = ::testing::Message()
;
872 EXPECT_EQ(+0.5, APFloat(APFloat::IEEEdouble, "+0x1p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.5)) == 1)>::Compare("+0.5"
, "APFloat(APFloat::IEEEdouble, \"+0x1p-1\").convertToDouble()"
, +0.5, APFloat(APFloat::IEEEdouble, "+0x1p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 872, gtest_ar.failure_message()) = ::testing::Message()
;
873 EXPECT_EQ(-0.5, APFloat(APFloat::IEEEdouble, "-0x1p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.5)) == 1)>::Compare("-0.5"
, "APFloat(APFloat::IEEEdouble, \"-0x1p-1\").convertToDouble()"
, -0.5, APFloat(APFloat::IEEEdouble, "-0x1p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 873, gtest_ar.failure_message()) = ::testing::Message()
;
874
875
876 EXPECT_EQ( 3.0, APFloat(APFloat::IEEEdouble, "0x1.8p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(3.0)) == 1)>::Compare("3.0"
, "APFloat(APFloat::IEEEdouble, \"0x1.8p1\").convertToDouble()"
, 3.0, APFloat(APFloat::IEEEdouble, "0x1.8p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 876, gtest_ar.failure_message()) = ::testing::Message()
;
877 EXPECT_EQ(+3.0, APFloat(APFloat::IEEEdouble, "+0x1.8p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+3.0)) == 1)>::Compare("+3.0"
, "APFloat(APFloat::IEEEdouble, \"+0x1.8p1\").convertToDouble()"
, +3.0, APFloat(APFloat::IEEEdouble, "+0x1.8p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 877, gtest_ar.failure_message()) = ::testing::Message()
;
878 EXPECT_EQ(-3.0, APFloat(APFloat::IEEEdouble, "-0x1.8p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-3.0)) == 1)>::Compare("-3.0"
, "APFloat(APFloat::IEEEdouble, \"-0x1.8p1\").convertToDouble()"
, -3.0, APFloat(APFloat::IEEEdouble, "-0x1.8p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 878, gtest_ar.failure_message()) = ::testing::Message()
;
879
880 EXPECT_EQ( 3.0, APFloat(APFloat::IEEEdouble, "0x1.8p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(3.0)) == 1)>::Compare("3.0"
, "APFloat(APFloat::IEEEdouble, \"0x1.8p+1\").convertToDouble()"
, 3.0, APFloat(APFloat::IEEEdouble, "0x1.8p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 880, gtest_ar.failure_message()) = ::testing::Message()
;
881 EXPECT_EQ(+3.0, APFloat(APFloat::IEEEdouble, "+0x1.8p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+3.0)) == 1)>::Compare("+3.0"
, "APFloat(APFloat::IEEEdouble, \"+0x1.8p+1\").convertToDouble()"
, +3.0, APFloat(APFloat::IEEEdouble, "+0x1.8p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 881, gtest_ar.failure_message()) = ::testing::Message()
;
882 EXPECT_EQ(-3.0, APFloat(APFloat::IEEEdouble, "-0x1.8p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-3.0)) == 1)>::Compare("-3.0"
, "APFloat(APFloat::IEEEdouble, \"-0x1.8p+1\").convertToDouble()"
, -3.0, APFloat(APFloat::IEEEdouble, "-0x1.8p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 882, gtest_ar.failure_message()) = ::testing::Message()
;
883
884 EXPECT_EQ( 0.75, APFloat(APFloat::IEEEdouble, "0x1.8p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.75)) == 1)>::Compare("0.75"
, "APFloat(APFloat::IEEEdouble, \"0x1.8p-1\").convertToDouble()"
, 0.75, APFloat(APFloat::IEEEdouble, "0x1.8p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 884, gtest_ar.failure_message()) = ::testing::Message()
;
885 EXPECT_EQ(+0.75, APFloat(APFloat::IEEEdouble, "+0x1.8p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.75)) == 1)>::Compare("+0.75"
, "APFloat(APFloat::IEEEdouble, \"+0x1.8p-1\").convertToDouble()"
, +0.75, APFloat(APFloat::IEEEdouble, "+0x1.8p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 885, gtest_ar.failure_message()) = ::testing::Message()
;
886 EXPECT_EQ(-0.75, APFloat(APFloat::IEEEdouble, "-0x1.8p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.75)) == 1)>::Compare("-0.75"
, "APFloat(APFloat::IEEEdouble, \"-0x1.8p-1\").convertToDouble()"
, -0.75, APFloat(APFloat::IEEEdouble, "-0x1.8p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 886, gtest_ar.failure_message()) = ::testing::Message()
;
887
888
889 EXPECT_EQ( 8192.0, APFloat(APFloat::IEEEdouble, "0x1000.000p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(8192.0)) == 1)>::Compare("8192.0"
, "APFloat(APFloat::IEEEdouble, \"0x1000.000p1\").convertToDouble()"
, 8192.0, APFloat(APFloat::IEEEdouble, "0x1000.000p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 889, gtest_ar.failure_message()) = ::testing::Message()
;
890 EXPECT_EQ(+8192.0, APFloat(APFloat::IEEEdouble, "+0x1000.000p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+8192.0)) == 1)>::Compare(
"+8192.0", "APFloat(APFloat::IEEEdouble, \"+0x1000.000p1\").convertToDouble()"
, +8192.0, APFloat(APFloat::IEEEdouble, "+0x1000.000p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 890, gtest_ar.failure_message()) = ::testing::Message()
;
891 EXPECT_EQ(-8192.0, APFloat(APFloat::IEEEdouble, "-0x1000.000p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-8192.0)) == 1)>::Compare(
"-8192.0", "APFloat(APFloat::IEEEdouble, \"-0x1000.000p1\").convertToDouble()"
, -8192.0, APFloat(APFloat::IEEEdouble, "-0x1000.000p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 891, gtest_ar.failure_message()) = ::testing::Message()
;
892
893 EXPECT_EQ( 8192.0, APFloat(APFloat::IEEEdouble, "0x1000.000p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(8192.0)) == 1)>::Compare("8192.0"
, "APFloat(APFloat::IEEEdouble, \"0x1000.000p+1\").convertToDouble()"
, 8192.0, APFloat(APFloat::IEEEdouble, "0x1000.000p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 893, gtest_ar.failure_message()) = ::testing::Message()
;
894 EXPECT_EQ(+8192.0, APFloat(APFloat::IEEEdouble, "+0x1000.000p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+8192.0)) == 1)>::Compare(
"+8192.0", "APFloat(APFloat::IEEEdouble, \"+0x1000.000p+1\").convertToDouble()"
, +8192.0, APFloat(APFloat::IEEEdouble, "+0x1000.000p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 894, gtest_ar.failure_message()) = ::testing::Message()
;
895 EXPECT_EQ(-8192.0, APFloat(APFloat::IEEEdouble, "-0x1000.000p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-8192.0)) == 1)>::Compare(
"-8192.0", "APFloat(APFloat::IEEEdouble, \"-0x1000.000p+1\").convertToDouble()"
, -8192.0, APFloat(APFloat::IEEEdouble, "-0x1000.000p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 895, gtest_ar.failure_message()) = ::testing::Message()
;
896
897 EXPECT_EQ( 2048.0, APFloat(APFloat::IEEEdouble, "0x1000.000p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2048.0)) == 1)>::Compare("2048.0"
, "APFloat(APFloat::IEEEdouble, \"0x1000.000p-1\").convertToDouble()"
, 2048.0, APFloat(APFloat::IEEEdouble, "0x1000.000p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 897, gtest_ar.failure_message()) = ::testing::Message()
;
898 EXPECT_EQ(+2048.0, APFloat(APFloat::IEEEdouble, "+0x1000.000p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+2048.0)) == 1)>::Compare(
"+2048.0", "APFloat(APFloat::IEEEdouble, \"+0x1000.000p-1\").convertToDouble()"
, +2048.0, APFloat(APFloat::IEEEdouble, "+0x1000.000p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 898, gtest_ar.failure_message()) = ::testing::Message()
;
899 EXPECT_EQ(-2048.0, APFloat(APFloat::IEEEdouble, "-0x1000.000p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-2048.0)) == 1)>::Compare(
"-2048.0", "APFloat(APFloat::IEEEdouble, \"-0x1000.000p-1\").convertToDouble()"
, -2048.0, APFloat(APFloat::IEEEdouble, "-0x1000.000p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 899, gtest_ar.failure_message()) = ::testing::Message()
;
900
901
902 EXPECT_EQ( 8192.0, APFloat(APFloat::IEEEdouble, "0x1000p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(8192.0)) == 1)>::Compare("8192.0"
, "APFloat(APFloat::IEEEdouble, \"0x1000p1\").convertToDouble()"
, 8192.0, APFloat(APFloat::IEEEdouble, "0x1000p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 902, gtest_ar.failure_message()) = ::testing::Message()
;
903 EXPECT_EQ(+8192.0, APFloat(APFloat::IEEEdouble, "+0x1000p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+8192.0)) == 1)>::Compare(
"+8192.0", "APFloat(APFloat::IEEEdouble, \"+0x1000p1\").convertToDouble()"
, +8192.0, APFloat(APFloat::IEEEdouble, "+0x1000p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 903, gtest_ar.failure_message()) = ::testing::Message()
;
904 EXPECT_EQ(-8192.0, APFloat(APFloat::IEEEdouble, "-0x1000p1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-8192.0)) == 1)>::Compare(
"-8192.0", "APFloat(APFloat::IEEEdouble, \"-0x1000p1\").convertToDouble()"
, -8192.0, APFloat(APFloat::IEEEdouble, "-0x1000p1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 904, gtest_ar.failure_message()) = ::testing::Message()
;
905
906 EXPECT_EQ( 8192.0, APFloat(APFloat::IEEEdouble, "0x1000p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(8192.0)) == 1)>::Compare("8192.0"
, "APFloat(APFloat::IEEEdouble, \"0x1000p+1\").convertToDouble()"
, 8192.0, APFloat(APFloat::IEEEdouble, "0x1000p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 906, gtest_ar.failure_message()) = ::testing::Message()
;
907 EXPECT_EQ(+8192.0, APFloat(APFloat::IEEEdouble, "+0x1000p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+8192.0)) == 1)>::Compare(
"+8192.0", "APFloat(APFloat::IEEEdouble, \"+0x1000p+1\").convertToDouble()"
, +8192.0, APFloat(APFloat::IEEEdouble, "+0x1000p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 907, gtest_ar.failure_message()) = ::testing::Message()
;
908 EXPECT_EQ(-8192.0, APFloat(APFloat::IEEEdouble, "-0x1000p+1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-8192.0)) == 1)>::Compare(
"-8192.0", "APFloat(APFloat::IEEEdouble, \"-0x1000p+1\").convertToDouble()"
, -8192.0, APFloat(APFloat::IEEEdouble, "-0x1000p+1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 908, gtest_ar.failure_message()) = ::testing::Message()
;
909
910 EXPECT_EQ( 2048.0, APFloat(APFloat::IEEEdouble, "0x1000p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2048.0)) == 1)>::Compare("2048.0"
, "APFloat(APFloat::IEEEdouble, \"0x1000p-1\").convertToDouble()"
, 2048.0, APFloat(APFloat::IEEEdouble, "0x1000p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 910, gtest_ar.failure_message()) = ::testing::Message()
;
911 EXPECT_EQ(+2048.0, APFloat(APFloat::IEEEdouble, "+0x1000p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+2048.0)) == 1)>::Compare(
"+2048.0", "APFloat(APFloat::IEEEdouble, \"+0x1000p-1\").convertToDouble()"
, +2048.0, APFloat(APFloat::IEEEdouble, "+0x1000p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 911, gtest_ar.failure_message()) = ::testing::Message()
;
912 EXPECT_EQ(-2048.0, APFloat(APFloat::IEEEdouble, "-0x1000p-1").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-2048.0)) == 1)>::Compare(
"-2048.0", "APFloat(APFloat::IEEEdouble, \"-0x1000p-1\").convertToDouble()"
, -2048.0, APFloat(APFloat::IEEEdouble, "-0x1000p-1").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 912, gtest_ar.failure_message()) = ::testing::Message()
;
913
914
915 EXPECT_EQ( 16384.0, APFloat(APFloat::IEEEdouble, "0x10p10").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(16384.0)) == 1)>::Compare(
"16384.0", "APFloat(APFloat::IEEEdouble, \"0x10p10\").convertToDouble()"
, 16384.0, APFloat(APFloat::IEEEdouble, "0x10p10").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 915, gtest_ar.failure_message()) = ::testing::Message()
;
916 EXPECT_EQ(+16384.0, APFloat(APFloat::IEEEdouble, "+0x10p10").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+16384.0)) == 1)>::Compare
("+16384.0", "APFloat(APFloat::IEEEdouble, \"+0x10p10\").convertToDouble()"
, +16384.0, APFloat(APFloat::IEEEdouble, "+0x10p10").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 916, gtest_ar.failure_message()) = ::testing::Message()
;
917 EXPECT_EQ(-16384.0, APFloat(APFloat::IEEEdouble, "-0x10p10").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-16384.0)) == 1)>::Compare
("-16384.0", "APFloat(APFloat::IEEEdouble, \"-0x10p10\").convertToDouble()"
, -16384.0, APFloat(APFloat::IEEEdouble, "-0x10p10").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 917, gtest_ar.failure_message()) = ::testing::Message()
;
918
919 EXPECT_EQ( 16384.0, APFloat(APFloat::IEEEdouble, "0x10p+10").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(16384.0)) == 1)>::Compare(
"16384.0", "APFloat(APFloat::IEEEdouble, \"0x10p+10\").convertToDouble()"
, 16384.0, APFloat(APFloat::IEEEdouble, "0x10p+10").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 919, gtest_ar.failure_message()) = ::testing::Message()
;
920 EXPECT_EQ(+16384.0, APFloat(APFloat::IEEEdouble, "+0x10p+10").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+16384.0)) == 1)>::Compare
("+16384.0", "APFloat(APFloat::IEEEdouble, \"+0x10p+10\").convertToDouble()"
, +16384.0, APFloat(APFloat::IEEEdouble, "+0x10p+10").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 920, gtest_ar.failure_message()) = ::testing::Message()
;
921 EXPECT_EQ(-16384.0, APFloat(APFloat::IEEEdouble, "-0x10p+10").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-16384.0)) == 1)>::Compare
("-16384.0", "APFloat(APFloat::IEEEdouble, \"-0x10p+10\").convertToDouble()"
, -16384.0, APFloat(APFloat::IEEEdouble, "-0x10p+10").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 921, gtest_ar.failure_message()) = ::testing::Message()
;
922
923 EXPECT_EQ( 0.015625, APFloat(APFloat::IEEEdouble, "0x10p-10").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.015625)) == 1)>::Compare
("0.015625", "APFloat(APFloat::IEEEdouble, \"0x10p-10\").convertToDouble()"
, 0.015625, APFloat(APFloat::IEEEdouble, "0x10p-10").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 923, gtest_ar.failure_message()) = ::testing::Message()
;
924 EXPECT_EQ(+0.015625, APFloat(APFloat::IEEEdouble, "+0x10p-10").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(+0.015625)) == 1)>::Compare
("+0.015625", "APFloat(APFloat::IEEEdouble, \"+0x10p-10\").convertToDouble()"
, +0.015625, APFloat(APFloat::IEEEdouble, "+0x10p-10").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 924, gtest_ar.failure_message()) = ::testing::Message()
;
925 EXPECT_EQ(-0.015625, APFloat(APFloat::IEEEdouble, "-0x10p-10").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.015625)) == 1)>::Compare
("-0.015625", "APFloat(APFloat::IEEEdouble, \"-0x10p-10\").convertToDouble()"
, -0.015625, APFloat(APFloat::IEEEdouble, "-0x10p-10").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 925, gtest_ar.failure_message()) = ::testing::Message()
;
926
927 EXPECT_EQ(1.0625, APFloat(APFloat::IEEEdouble, "0x1.1p0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0625)) == 1)>::Compare("1.0625"
, "APFloat(APFloat::IEEEdouble, \"0x1.1p0\").convertToDouble()"
, 1.0625, APFloat(APFloat::IEEEdouble, "0x1.1p0").convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 927, gtest_ar.failure_message()) = ::testing::Message()
;
928 EXPECT_EQ(1.0, APFloat(APFloat::IEEEdouble, "0x1p0").convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "APFloat(APFloat::IEEEdouble, \"0x1p0\").convertToDouble()"
, 1.0, APFloat(APFloat::IEEEdouble, "0x1p0").convertToDouble(
)))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 928, gtest_ar.failure_message()) = ::testing::Message()
;
929
930 EXPECT_EQ(convertToDoubleFromString("0x1p-150"),switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(convertToDoubleFromString("0x1p-150"
))) == 1)>::Compare("convertToDoubleFromString(\"0x1p-150\")"
, "convertToDoubleFromString(\"+0x800000000000000001.p-221\")"
, convertToDoubleFromString("0x1p-150"), convertToDoubleFromString
("+0x800000000000000001.p-221")))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 931, gtest_ar.failure_message()) = ::testing::Message()
931 convertToDoubleFromString("+0x800000000000000001.p-221"))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(convertToDoubleFromString("0x1p-150"
))) == 1)>::Compare("convertToDoubleFromString(\"0x1p-150\")"
, "convertToDoubleFromString(\"+0x800000000000000001.p-221\")"
, convertToDoubleFromString("0x1p-150"), convertToDoubleFromString
("+0x800000000000000001.p-221")))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 931, gtest_ar.failure_message()) = ::testing::Message()
;
932 EXPECT_EQ(2251799813685248.5,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2251799813685248.5)) == 1)>
::Compare("2251799813685248.5", "convertToDoubleFromString(\"0x80000000000004000000.010p-28\")"
, 2251799813685248.5, convertToDoubleFromString("0x80000000000004000000.010p-28"
)))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 933, gtest_ar.failure_message()) = ::testing::Message()
933 convertToDoubleFromString("0x80000000000004000000.010p-28"))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2251799813685248.5)) == 1)>
::Compare("2251799813685248.5", "convertToDoubleFromString(\"0x80000000000004000000.010p-28\")"
, 2251799813685248.5, convertToDoubleFromString("0x80000000000004000000.010p-28"
)))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 933, gtest_ar.failure_message()) = ::testing::Message()
;
934}
935
936TEST(APFloatTest, toString)class APFloatTest_toString_Test : public ::testing::Test { public
: APFloatTest_toString_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_toString_Test(APFloatTest_toString_Test
const &); void operator=(APFloatTest_toString_Test const
&);};::testing::TestInfo* const APFloatTest_toString_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "toString", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_toString_Test>);void APFloatTest_toString_Test
::TestBody()
{
937 ASSERT_EQ("10", convertToString(10.0, 6, 3))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("10")) == 1)>::Compare("\"10\""
, "convertToString(10.0, 6, 3)", "10", convertToString(10.0, 6
, 3)))) ; else return ::testing::internal::AssertHelper(::testing
::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 937, gtest_ar.failure_message()) = ::testing::Message()
;
938 ASSERT_EQ("1.0E+1", convertToString(10.0, 6, 0))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("1.0E+1")) == 1)>::Compare
("\"1.0E+1\"", "convertToString(10.0, 6, 0)", "1.0E+1", convertToString
(10.0, 6, 0)))) ; else return ::testing::internal::AssertHelper
(::testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 938, gtest_ar.failure_message()) = ::testing::Message()
;
939 ASSERT_EQ("10100", convertToString(1.01E+4, 5, 2))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("10100")) == 1)>::Compare(
"\"10100\"", "convertToString(1.01E+4, 5, 2)", "10100", convertToString
(1.01E+4, 5, 2)))) ; else return ::testing::internal::AssertHelper
(::testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 939, gtest_ar.failure_message()) = ::testing::Message()
;
940 ASSERT_EQ("1.01E+4", convertToString(1.01E+4, 4, 2))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("1.01E+4")) == 1)>::Compare
("\"1.01E+4\"", "convertToString(1.01E+4, 4, 2)", "1.01E+4", convertToString
(1.01E+4, 4, 2)))) ; else return ::testing::internal::AssertHelper
(::testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 940, gtest_ar.failure_message()) = ::testing::Message()
;
941 ASSERT_EQ("1.01E+4", convertToString(1.01E+4, 5, 1))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("1.01E+4")) == 1)>::Compare
("\"1.01E+4\"", "convertToString(1.01E+4, 5, 1)", "1.01E+4", convertToString
(1.01E+4, 5, 1)))) ; else return ::testing::internal::AssertHelper
(::testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 941, gtest_ar.failure_message()) = ::testing::Message()
;
942 ASSERT_EQ("0.0101", convertToString(1.01E-2, 5, 2))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("0.0101")) == 1)>::Compare
("\"0.0101\"", "convertToString(1.01E-2, 5, 2)", "0.0101", convertToString
(1.01E-2, 5, 2)))) ; else return ::testing::internal::AssertHelper
(::testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 942, gtest_ar.failure_message()) = ::testing::Message()
;
943 ASSERT_EQ("0.0101", convertToString(1.01E-2, 4, 2))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("0.0101")) == 1)>::Compare
("\"0.0101\"", "convertToString(1.01E-2, 4, 2)", "0.0101", convertToString
(1.01E-2, 4, 2)))) ; else return ::testing::internal::AssertHelper
(::testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 943, gtest_ar.failure_message()) = ::testing::Message()
;
944 ASSERT_EQ("1.01E-2", convertToString(1.01E-2, 5, 1))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("1.01E-2")) == 1)>::Compare
("\"1.01E-2\"", "convertToString(1.01E-2, 5, 1)", "1.01E-2", convertToString
(1.01E-2, 5, 1)))) ; else return ::testing::internal::AssertHelper
(::testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 944, gtest_ar.failure_message()) = ::testing::Message()
;
945 ASSERT_EQ("0.78539816339744828", convertToString(0.78539816339744830961, 0, 3))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("0.78539816339744828")) == 1)
>::Compare("\"0.78539816339744828\"", "convertToString(0.78539816339744830961, 0, 3)"
, "0.78539816339744828", convertToString(0.78539816339744830961
, 0, 3)))) ; else return ::testing::internal::AssertHelper(::
testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 945, gtest_ar.failure_message()) = ::testing::Message()
;
946 ASSERT_EQ("4.9406564584124654E-324", convertToString(4.9406564584124654e-324, 0, 3))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("4.9406564584124654E-324")) ==
1)>::Compare("\"4.9406564584124654E-324\"", "convertToString(4.9406564584124654e-324, 0, 3)"
, "4.9406564584124654E-324", convertToString(4.9406564584124654e-324
, 0, 3)))) ; else return ::testing::internal::AssertHelper(::
testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 946, gtest_ar.failure_message()) = ::testing::Message()
;
947 ASSERT_EQ("873.18340000000001", convertToString(873.1834, 0, 1))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("873.18340000000001")) == 1)>
::Compare("\"873.18340000000001\"", "convertToString(873.1834, 0, 1)"
, "873.18340000000001", convertToString(873.1834, 0, 1)))) ; else
return ::testing::internal::AssertHelper(::testing::TestPartResult
::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 947, gtest_ar.failure_message()) = ::testing::Message()
;
948 ASSERT_EQ("8.7318340000000001E+2", convertToString(873.1834, 0, 0))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("8.7318340000000001E+2")) == 1
)>::Compare("\"8.7318340000000001E+2\"", "convertToString(873.1834, 0, 0)"
, "8.7318340000000001E+2", convertToString(873.1834, 0, 0))))
; else return ::testing::internal::AssertHelper(::testing::TestPartResult
::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 948, gtest_ar.failure_message()) = ::testing::Message()
;
949 ASSERT_EQ("1.7976931348623157E+308", convertToString(1.7976931348623157E+308, 0, 0))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper("1.7976931348623157E+308")) ==
1)>::Compare("\"1.7976931348623157E+308\"", "convertToString(1.7976931348623157E+308, 0, 0)"
, "1.7976931348623157E+308", convertToString(1.7976931348623157E+308
, 0, 0)))) ; else return ::testing::internal::AssertHelper(::
testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 949, gtest_ar.failure_message()) = ::testing::Message()
;
950}
951
952TEST(APFloatTest, toInteger)class APFloatTest_toInteger_Test : public ::testing::Test { public
: APFloatTest_toInteger_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_toInteger_Test(APFloatTest_toInteger_Test
const &); void operator=(APFloatTest_toInteger_Test const
&);};::testing::TestInfo* const APFloatTest_toInteger_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "toInteger", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_toInteger_Test>);void APFloatTest_toInteger_Test
::TestBody()
{
953 bool isExact = false;
954 APSInt result(5, /*isUnsigned=*/true);
955
956 EXPECT_EQ(APFloat::opOK,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opOK)) == 1)>::Compare
("APFloat::opOK", "APFloat(APFloat::IEEEdouble, \"10\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opOK, APFloat(APFloat::IEEEdouble, "10") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 958, gtest_ar.failure_message()) = ::testing::Message()
957 APFloat(APFloat::IEEEdouble, "10")switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opOK)) == 1)>::Compare
("APFloat::opOK", "APFloat(APFloat::IEEEdouble, \"10\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opOK, APFloat(APFloat::IEEEdouble, "10") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 958, gtest_ar.failure_message()) = ::testing::Message()
958 .convertToInteger(result, APFloat::rmTowardZero, &isExact))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opOK)) == 1)>::Compare
("APFloat::opOK", "APFloat(APFloat::IEEEdouble, \"10\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opOK, APFloat(APFloat::IEEEdouble, "10") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 958, gtest_ar.failure_message()) = ::testing::Message()
;
959 EXPECT_TRUE(isExact)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(isExact)) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 959, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "isExact", "false", "true").c_str()) = ::testing::Message()
;
960 EXPECT_EQ(APSInt(APInt(5, 10), true), result)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APSInt(APInt(5, 10), true))) ==
1)>::Compare("APSInt(APInt(5, 10), true)", "result", APSInt
(APInt(5, 10), true), result))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 960, gtest_ar.failure_message()) = ::testing::Message()
;
961
962 EXPECT_EQ(APFloat::opInvalidOp,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInvalidOp)) == 1)>
::Compare("APFloat::opInvalidOp", "APFloat(APFloat::IEEEdouble, \"-10\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInvalidOp, APFloat(APFloat::IEEEdouble, "-10") .
convertToInteger(result, APFloat::rmTowardZero, &isExact)
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 964, gtest_ar.failure_message()) = ::testing::Message()
963 APFloat(APFloat::IEEEdouble, "-10")switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInvalidOp)) == 1)>
::Compare("APFloat::opInvalidOp", "APFloat(APFloat::IEEEdouble, \"-10\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInvalidOp, APFloat(APFloat::IEEEdouble, "-10") .
convertToInteger(result, APFloat::rmTowardZero, &isExact)
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 964, gtest_ar.failure_message()) = ::testing::Message()
964 .convertToInteger(result, APFloat::rmTowardZero, &isExact))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInvalidOp)) == 1)>
::Compare("APFloat::opInvalidOp", "APFloat(APFloat::IEEEdouble, \"-10\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInvalidOp, APFloat(APFloat::IEEEdouble, "-10") .
convertToInteger(result, APFloat::rmTowardZero, &isExact)
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 964, gtest_ar.failure_message()) = ::testing::Message()
;
965 EXPECT_FALSE(isExact)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(isExact))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 965, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "isExact", "true", "false").c_str()) = ::testing::Message()
;
966 EXPECT_EQ(APSInt::getMinValue(5, true), result)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APSInt::getMinValue(5, true))
) == 1)>::Compare("APSInt::getMinValue(5, true)", "result"
, APSInt::getMinValue(5, true), result))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 966, gtest_ar.failure_message()) = ::testing::Message()
;
967
968 EXPECT_EQ(APFloat::opInvalidOp,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInvalidOp)) == 1)>
::Compare("APFloat::opInvalidOp", "APFloat(APFloat::IEEEdouble, \"32\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInvalidOp, APFloat(APFloat::IEEEdouble, "32") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 970, gtest_ar.failure_message()) = ::testing::Message()
969 APFloat(APFloat::IEEEdouble, "32")switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInvalidOp)) == 1)>
::Compare("APFloat::opInvalidOp", "APFloat(APFloat::IEEEdouble, \"32\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInvalidOp, APFloat(APFloat::IEEEdouble, "32") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 970, gtest_ar.failure_message()) = ::testing::Message()
970 .convertToInteger(result, APFloat::rmTowardZero, &isExact))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInvalidOp)) == 1)>
::Compare("APFloat::opInvalidOp", "APFloat(APFloat::IEEEdouble, \"32\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInvalidOp, APFloat(APFloat::IEEEdouble, "32") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 970, gtest_ar.failure_message()) = ::testing::Message()
;
971 EXPECT_FALSE(isExact)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(isExact))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 971, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "isExact", "true", "false").c_str()) = ::testing::Message()
;
972 EXPECT_EQ(APSInt::getMaxValue(5, true), result)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APSInt::getMaxValue(5, true))
) == 1)>::Compare("APSInt::getMaxValue(5, true)", "result"
, APSInt::getMaxValue(5, true), result))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 972, gtest_ar.failure_message()) = ::testing::Message()
;
973
974 EXPECT_EQ(APFloat::opInexact,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInexact)) == 1)>
::Compare("APFloat::opInexact", "APFloat(APFloat::IEEEdouble, \"7.9\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInexact, APFloat(APFloat::IEEEdouble, "7.9") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 976, gtest_ar.failure_message()) = ::testing::Message()
975 APFloat(APFloat::IEEEdouble, "7.9")switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInexact)) == 1)>
::Compare("APFloat::opInexact", "APFloat(APFloat::IEEEdouble, \"7.9\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInexact, APFloat(APFloat::IEEEdouble, "7.9") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 976, gtest_ar.failure_message()) = ::testing::Message()
976 .convertToInteger(result, APFloat::rmTowardZero, &isExact))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInexact)) == 1)>
::Compare("APFloat::opInexact", "APFloat(APFloat::IEEEdouble, \"7.9\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInexact, APFloat(APFloat::IEEEdouble, "7.9") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 976, gtest_ar.failure_message()) = ::testing::Message()
;
977 EXPECT_FALSE(isExact)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(isExact))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 977, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "isExact", "true", "false").c_str()) = ::testing::Message()
;
978 EXPECT_EQ(APSInt(APInt(5, 7), true), result)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APSInt(APInt(5, 7), true))) ==
1)>::Compare("APSInt(APInt(5, 7), true)", "result", APSInt
(APInt(5, 7), true), result))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 978, gtest_ar.failure_message()) = ::testing::Message()
;
979
980 result.setIsUnsigned(false);
981 EXPECT_EQ(APFloat::opOK,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opOK)) == 1)>::Compare
("APFloat::opOK", "APFloat(APFloat::IEEEdouble, \"-10\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opOK, APFloat(APFloat::IEEEdouble, "-10") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 983, gtest_ar.failure_message()) = ::testing::Message()
982 APFloat(APFloat::IEEEdouble, "-10")switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opOK)) == 1)>::Compare
("APFloat::opOK", "APFloat(APFloat::IEEEdouble, \"-10\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opOK, APFloat(APFloat::IEEEdouble, "-10") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 983, gtest_ar.failure_message()) = ::testing::Message()
983 .convertToInteger(result, APFloat::rmTowardZero, &isExact))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opOK)) == 1)>::Compare
("APFloat::opOK", "APFloat(APFloat::IEEEdouble, \"-10\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opOK, APFloat(APFloat::IEEEdouble, "-10") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 983, gtest_ar.failure_message()) = ::testing::Message()
;
984 EXPECT_TRUE(isExact)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(isExact)) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 984, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "isExact", "false", "true").c_str()) = ::testing::Message()
;
985 EXPECT_EQ(APSInt(APInt(5, -10, true), false), result)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APSInt(APInt(5, -10, true), false
))) == 1)>::Compare("APSInt(APInt(5, -10, true), false)", "result"
, APSInt(APInt(5, -10, true), false), result))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 985, gtest_ar.failure_message()) = ::testing::Message()
;
986
987 EXPECT_EQ(APFloat::opInvalidOp,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInvalidOp)) == 1)>
::Compare("APFloat::opInvalidOp", "APFloat(APFloat::IEEEdouble, \"-17\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInvalidOp, APFloat(APFloat::IEEEdouble, "-17") .
convertToInteger(result, APFloat::rmTowardZero, &isExact)
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 989, gtest_ar.failure_message()) = ::testing::Message()
988 APFloat(APFloat::IEEEdouble, "-17")switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInvalidOp)) == 1)>
::Compare("APFloat::opInvalidOp", "APFloat(APFloat::IEEEdouble, \"-17\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInvalidOp, APFloat(APFloat::IEEEdouble, "-17") .
convertToInteger(result, APFloat::rmTowardZero, &isExact)
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 989, gtest_ar.failure_message()) = ::testing::Message()
989 .convertToInteger(result, APFloat::rmTowardZero, &isExact))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInvalidOp)) == 1)>
::Compare("APFloat::opInvalidOp", "APFloat(APFloat::IEEEdouble, \"-17\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInvalidOp, APFloat(APFloat::IEEEdouble, "-17") .
convertToInteger(result, APFloat::rmTowardZero, &isExact)
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 989, gtest_ar.failure_message()) = ::testing::Message()
;
990 EXPECT_FALSE(isExact)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(isExact))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 990, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "isExact", "true", "false").c_str()) = ::testing::Message()
;
991 EXPECT_EQ(APSInt::getMinValue(5, false), result)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APSInt::getMinValue(5, false)
)) == 1)>::Compare("APSInt::getMinValue(5, false)", "result"
, APSInt::getMinValue(5, false), result))) ; else ::testing::
internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 991, gtest_ar.failure_message()) = ::testing::Message()
;
992
993 EXPECT_EQ(APFloat::opInvalidOp,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInvalidOp)) == 1)>
::Compare("APFloat::opInvalidOp", "APFloat(APFloat::IEEEdouble, \"16\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInvalidOp, APFloat(APFloat::IEEEdouble, "16") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 995, gtest_ar.failure_message()) = ::testing::Message()
994 APFloat(APFloat::IEEEdouble, "16")switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInvalidOp)) == 1)>
::Compare("APFloat::opInvalidOp", "APFloat(APFloat::IEEEdouble, \"16\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInvalidOp, APFloat(APFloat::IEEEdouble, "16") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 995, gtest_ar.failure_message()) = ::testing::Message()
995 .convertToInteger(result, APFloat::rmTowardZero, &isExact))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::opInvalidOp)) == 1)>
::Compare("APFloat::opInvalidOp", "APFloat(APFloat::IEEEdouble, \"16\") .convertToInteger(result, APFloat::rmTowardZero, &isExact)"
, APFloat::opInvalidOp, APFloat(APFloat::IEEEdouble, "16") .convertToInteger
(result, APFloat::rmTowardZero, &isExact)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 995, gtest_ar.failure_message()) = ::testing::Message()
;
996 EXPECT_FALSE(isExact)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(isExact))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 996, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "isExact", "true", "false").c_str()) = ::testing::Message()
;
997 EXPECT_EQ(APSInt::getMaxValue(5, false), result)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APSInt::getMaxValue(5, false)
)) == 1)>::Compare("APSInt::getMaxValue(5, false)", "result"
, APSInt::getMaxValue(5, false), result))) ; else ::testing::
internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 997, gtest_ar.failure_message()) = ::testing::Message()
;
998}
999
1000static APInt nanbits(const fltSemantics &Sem,
1001 bool SNaN, bool Negative, uint64_t fill) {
1002 APInt apfill(64, fill);
1003 if (SNaN)
1004 return APFloat::getSNaN(Sem, Negative, &apfill).bitcastToAPInt();
1005 else
1006 return APFloat::getQNaN(Sem, Negative, &apfill).bitcastToAPInt();
1007}
1008
1009TEST(APFloatTest, makeNaN)class APFloatTest_makeNaN_Test : public ::testing::Test { public
: APFloatTest_makeNaN_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_makeNaN_Test(APFloatTest_makeNaN_Test
const &); void operator=(APFloatTest_makeNaN_Test const &
);};::testing::TestInfo* const APFloatTest_makeNaN_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "makeNaN", __null, __null, (::testing::internal::GetTestTypeId
()), ::testing::Test::SetUpTestCase, ::testing::Test::TearDownTestCase
, new ::testing::internal::TestFactoryImpl< APFloatTest_makeNaN_Test
>);void APFloatTest_makeNaN_Test::TestBody()
{
1010 ASSERT_EQ(0x7fc00000, nanbits(APFloat::IEEEsingle, false, false, 0))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7fc00000)) == 1)>::Compare
("0x7fc00000", "nanbits(APFloat::IEEEsingle, false, false, 0)"
, 0x7fc00000, nanbits(APFloat::IEEEsingle, false, false, 0)))
) ; else return ::testing::internal::AssertHelper(::testing::
TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1010, gtest_ar.failure_message()) = ::testing::Message()
;
1011 ASSERT_EQ(0xffc00000, nanbits(APFloat::IEEEsingle, false, true, 0))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0xffc00000)) == 1)>::Compare
("0xffc00000", "nanbits(APFloat::IEEEsingle, false, true, 0)"
, 0xffc00000, nanbits(APFloat::IEEEsingle, false, true, 0))))
; else return ::testing::internal::AssertHelper(::testing::TestPartResult
::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1011, gtest_ar.failure_message()) = ::testing::Message()
;
1012 ASSERT_EQ(0x7fc0ae72, nanbits(APFloat::IEEEsingle, false, false, 0xae72))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7fc0ae72)) == 1)>::Compare
("0x7fc0ae72", "nanbits(APFloat::IEEEsingle, false, false, 0xae72)"
, 0x7fc0ae72, nanbits(APFloat::IEEEsingle, false, false, 0xae72
)))) ; else return ::testing::internal::AssertHelper(::testing
::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1012, gtest_ar.failure_message()) = ::testing::Message()
;
1013 ASSERT_EQ(0x7fffae72, nanbits(APFloat::IEEEsingle, false, false, 0xffffae72))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7fffae72)) == 1)>::Compare
("0x7fffae72", "nanbits(APFloat::IEEEsingle, false, false, 0xffffae72)"
, 0x7fffae72, nanbits(APFloat::IEEEsingle, false, false, 0xffffae72
)))) ; else return ::testing::internal::AssertHelper(::testing
::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1013, gtest_ar.failure_message()) = ::testing::Message()
;
1014 ASSERT_EQ(0x7fa00000, nanbits(APFloat::IEEEsingle, true, false, 0))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7fa00000)) == 1)>::Compare
("0x7fa00000", "nanbits(APFloat::IEEEsingle, true, false, 0)"
, 0x7fa00000, nanbits(APFloat::IEEEsingle, true, false, 0))))
; else return ::testing::internal::AssertHelper(::testing::TestPartResult
::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1014, gtest_ar.failure_message()) = ::testing::Message()
;
1015 ASSERT_EQ(0xffa00000, nanbits(APFloat::IEEEsingle, true, true, 0))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0xffa00000)) == 1)>::Compare
("0xffa00000", "nanbits(APFloat::IEEEsingle, true, true, 0)",
0xffa00000, nanbits(APFloat::IEEEsingle, true, true, 0)))) ;
else return ::testing::internal::AssertHelper(::testing::TestPartResult
::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1015, gtest_ar.failure_message()) = ::testing::Message()
;
1016 ASSERT_EQ(0x7f80ae72, nanbits(APFloat::IEEEsingle, true, false, 0xae72))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7f80ae72)) == 1)>::Compare
("0x7f80ae72", "nanbits(APFloat::IEEEsingle, true, false, 0xae72)"
, 0x7f80ae72, nanbits(APFloat::IEEEsingle, true, false, 0xae72
)))) ; else return ::testing::internal::AssertHelper(::testing
::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1016, gtest_ar.failure_message()) = ::testing::Message()
;
1017 ASSERT_EQ(0x7fbfae72, nanbits(APFloat::IEEEsingle, true, false, 0xffffae72))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7fbfae72)) == 1)>::Compare
("0x7fbfae72", "nanbits(APFloat::IEEEsingle, true, false, 0xffffae72)"
, 0x7fbfae72, nanbits(APFloat::IEEEsingle, true, false, 0xffffae72
)))) ; else return ::testing::internal::AssertHelper(::testing
::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1017, gtest_ar.failure_message()) = ::testing::Message()
;
1018
1019 ASSERT_EQ(0x7ff8000000000000ULL, nanbits(APFloat::IEEEdouble, false, false, 0))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7ff8000000000000ULL)) == 1)
>::Compare("0x7ff8000000000000ULL", "nanbits(APFloat::IEEEdouble, false, false, 0)"
, 0x7ff8000000000000ULL, nanbits(APFloat::IEEEdouble, false, false
, 0)))) ; else return ::testing::internal::AssertHelper(::testing
::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1019, gtest_ar.failure_message()) = ::testing::Message()
;
1020 ASSERT_EQ(0xfff8000000000000ULL, nanbits(APFloat::IEEEdouble, false, true, 0))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0xfff8000000000000ULL)) == 1)
>::Compare("0xfff8000000000000ULL", "nanbits(APFloat::IEEEdouble, false, true, 0)"
, 0xfff8000000000000ULL, nanbits(APFloat::IEEEdouble, false, true
, 0)))) ; else return ::testing::internal::AssertHelper(::testing
::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1020, gtest_ar.failure_message()) = ::testing::Message()
;
1021 ASSERT_EQ(0x7ff800000000ae72ULL, nanbits(APFloat::IEEEdouble, false, false, 0xae72))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7ff800000000ae72ULL)) == 1)
>::Compare("0x7ff800000000ae72ULL", "nanbits(APFloat::IEEEdouble, false, false, 0xae72)"
, 0x7ff800000000ae72ULL, nanbits(APFloat::IEEEdouble, false, false
, 0xae72)))) ; else return ::testing::internal::AssertHelper(
::testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1021, gtest_ar.failure_message()) = ::testing::Message()
;
1022 ASSERT_EQ(0x7fffffffffffae72ULL, nanbits(APFloat::IEEEdouble, false, false, 0xffffffffffffae72ULL))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7fffffffffffae72ULL)) == 1)
>::Compare("0x7fffffffffffae72ULL", "nanbits(APFloat::IEEEdouble, false, false, 0xffffffffffffae72ULL)"
, 0x7fffffffffffae72ULL, nanbits(APFloat::IEEEdouble, false, false
, 0xffffffffffffae72ULL)))) ; else return ::testing::internal
::AssertHelper(::testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1022, gtest_ar.failure_message()) = ::testing::Message()
;
1023 ASSERT_EQ(0x7ff4000000000000ULL, nanbits(APFloat::IEEEdouble, true, false, 0))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7ff4000000000000ULL)) == 1)
>::Compare("0x7ff4000000000000ULL", "nanbits(APFloat::IEEEdouble, true, false, 0)"
, 0x7ff4000000000000ULL, nanbits(APFloat::IEEEdouble, true, false
, 0)))) ; else return ::testing::internal::AssertHelper(::testing
::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1023, gtest_ar.failure_message()) = ::testing::Message()
;
1024 ASSERT_EQ(0xfff4000000000000ULL, nanbits(APFloat::IEEEdouble, true, true, 0))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0xfff4000000000000ULL)) == 1)
>::Compare("0xfff4000000000000ULL", "nanbits(APFloat::IEEEdouble, true, true, 0)"
, 0xfff4000000000000ULL, nanbits(APFloat::IEEEdouble, true, true
, 0)))) ; else return ::testing::internal::AssertHelper(::testing
::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1024, gtest_ar.failure_message()) = ::testing::Message()
;
1025 ASSERT_EQ(0x7ff000000000ae72ULL, nanbits(APFloat::IEEEdouble, true, false, 0xae72))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7ff000000000ae72ULL)) == 1)
>::Compare("0x7ff000000000ae72ULL", "nanbits(APFloat::IEEEdouble, true, false, 0xae72)"
, 0x7ff000000000ae72ULL, nanbits(APFloat::IEEEdouble, true, false
, 0xae72)))) ; else return ::testing::internal::AssertHelper(
::testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1025, gtest_ar.failure_message()) = ::testing::Message()
;
1026 ASSERT_EQ(0x7ff7ffffffffae72ULL, nanbits(APFloat::IEEEdouble, true, false, 0xffffffffffffae72ULL))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7ff7ffffffffae72ULL)) == 1)
>::Compare("0x7ff7ffffffffae72ULL", "nanbits(APFloat::IEEEdouble, true, false, 0xffffffffffffae72ULL)"
, 0x7ff7ffffffffae72ULL, nanbits(APFloat::IEEEdouble, true, false
, 0xffffffffffffae72ULL)))) ; else return ::testing::internal
::AssertHelper(::testing::TestPartResult::kFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1026, gtest_ar.failure_message()) = ::testing::Message()
;
1027}
1028
1029#ifdef GTEST_HAS_DEATH_TEST1
1030#ifndef NDEBUG
1031TEST(APFloatTest, SemanticsDeath)class APFloatTest_SemanticsDeath_Test : public ::testing::Test
{ public: APFloatTest_SemanticsDeath_Test() {} private: virtual
void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); APFloatTest_SemanticsDeath_Test(APFloatTest_SemanticsDeath_Test
const &); void operator=(APFloatTest_SemanticsDeath_Test
const &);};::testing::TestInfo* const APFloatTest_SemanticsDeath_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "SemanticsDeath", __null, __null, (::testing::
internal::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::
testing::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_SemanticsDeath_Test>);void APFloatTest_SemanticsDeath_Test
::TestBody()
{
1032 EXPECT_DEATH(APFloat(APFloat::IEEEsingle, 0.0f).convertToDouble(), "Float semantics are not IEEEdouble")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Float semantics are not IEEEdouble"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEsingle, 0.0f).convertToDouble()"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1032, &gtest_dt)) { goto gtest_label_1032; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1032; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEsingle, 0.0f
).convertToDouble(); }; gtest_dt->Abort(::testing::internal
::DeathTest::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1032
: ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1032, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1033 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, 0.0 ).convertToFloat(), "Float semantics are not IEEEsingle")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Float semantics are not IEEEsingle"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, 0.0 ).convertToFloat()"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1033, &gtest_dt)) { goto gtest_label_1033; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1033; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, 0.0 )
.convertToFloat(); }; gtest_dt->Abort(::testing::internal::
DeathTest::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1033
: ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1033, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1034}
1035
1036TEST(APFloatTest, StringDecimalDeath)class APFloatTest_StringDecimalDeath_Test : public ::testing::
Test { public: APFloatTest_StringDecimalDeath_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); APFloatTest_StringDecimalDeath_Test
(APFloatTest_StringDecimalDeath_Test const &); void operator
=(APFloatTest_StringDecimalDeath_Test const &);};::testing
::TestInfo* const APFloatTest_StringDecimalDeath_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "StringDecimalDeath", __null, __null, (::testing::internal::
GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing::
Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_StringDecimalDeath_Test>);void APFloatTest_StringDecimalDeath_Test
::TestBody()
{
1037 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, ""), "Invalid string length")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid string length"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1037, &gtest_dt)) { goto gtest_label_1037; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1037; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "");
}; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1037: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1037, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1038 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+"), "String has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("String has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1038, &gtest_dt)) { goto gtest_label_1038; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1038; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+")
; }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1038: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1038, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1039 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-"), "String has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("String has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1039, &gtest_dt)) { goto gtest_label_1039; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1039; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-")
; }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1039: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1039, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1040
1041 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("\0", 1)), "Invalid character in significand")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in significand"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"\\0\", 1))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1041, &gtest_dt)) { goto gtest_label_1041; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1041; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("\0", 1)); }; gtest_dt->Abort(::testing::internal::DeathTest
::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1041: ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1041, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1042 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("1\0", 2)), "Invalid character in significand")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in significand"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"1\\0\", 2))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1042, &gtest_dt)) { goto gtest_label_1042; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1042; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("1\0", 2)); }; gtest_dt->Abort(::testing::internal::DeathTest
::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1042: ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1042, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1043 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("1\02", 3)), "Invalid character in significand")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in significand"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"1\\02\", 3))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1043, &gtest_dt)) { goto gtest_label_1043; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1043; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("1\02", 3)); }; gtest_dt->Abort(::testing::internal::DeathTest
::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1043: ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1043, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1044 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("1\02e1", 5)), "Invalid character in significand")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in significand"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"1\\02e1\", 5))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1044, &gtest_dt)) { goto gtest_label_1044; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1044; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("1\02e1", 5)); }; gtest_dt->Abort(::testing::internal::DeathTest
::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1044: ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1044, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1045 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("1e\0", 3)), "Invalid character in exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"1e\\0\", 3))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1045, &gtest_dt)) { goto gtest_label_1045; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1045; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("1e\0", 3)); }; gtest_dt->Abort(::testing::internal::DeathTest
::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1045: ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1045, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
Within the expansion of the macro 'EXPECT_DEATH':
a
Function call argument is an uninitialized value
1046 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("1e1\0", 4)), "Invalid character in exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"1e1\\0\", 4))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1046, &gtest_dt)) { goto gtest_label_1046; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1046; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("1e1\0", 4)); }; gtest_dt->Abort(::testing::internal::DeathTest
::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1046: ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1046, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1047 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("1e1\02", 5)), "Invalid character in exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"1e1\\02\", 5))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1047, &gtest_dt)) { goto gtest_label_1047; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1047; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("1e1\02", 5)); }; gtest_dt->Abort(::testing::internal::DeathTest
::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1047: ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1047, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1048
1049 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "1.0f"), "Invalid character in significand")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in significand"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"1.0f\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1049, &gtest_dt)) { goto gtest_label_1049; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1049; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "1.0f"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1049: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1049, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1050
1051 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, ".."), "String contains multiple dots")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("String contains multiple dots"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"..\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1051, &gtest_dt)) { goto gtest_label_1051; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1051; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, ".."
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1051: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1051, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1052 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "..0"), "String contains multiple dots")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("String contains multiple dots"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"..0\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1052, &gtest_dt)) { goto gtest_label_1052; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1052; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "..0"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1052: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1052, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1053 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "1.0.0"), "String contains multiple dots")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("String contains multiple dots"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"1.0.0\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1053, &gtest_dt)) { goto gtest_label_1053; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1053; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "1.0.0"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1053: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1053, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1054}
1055
1056TEST(APFloatTest, StringDecimalSignificandDeath)class APFloatTest_StringDecimalSignificandDeath_Test : public
::testing::Test { public: APFloatTest_StringDecimalSignificandDeath_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); APFloatTest_StringDecimalSignificandDeath_Test
(APFloatTest_StringDecimalSignificandDeath_Test const &);
void operator=(APFloatTest_StringDecimalSignificandDeath_Test
const &);};::testing::TestInfo* const APFloatTest_StringDecimalSignificandDeath_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "StringDecimalSignificandDeath", __null, __null
, (::testing::internal::GetTestTypeId()), ::testing::Test::SetUpTestCase
, ::testing::Test::TearDownTestCase, new ::testing::internal::
TestFactoryImpl< APFloatTest_StringDecimalSignificandDeath_Test
>);void APFloatTest_StringDecimalSignificandDeath_Test::TestBody
()
{
1057 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "."), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \".\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1057, &gtest_dt)) { goto gtest_label_1057; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1057; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, ".")
; }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1057: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1057, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1058 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+."), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+.\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1058, &gtest_dt)) { goto gtest_label_1058; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1058; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+."
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1058: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1058, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1059 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-."), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-.\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1059, &gtest_dt)) { goto gtest_label_1059; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1059; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-."
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1059: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1059, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1060
1061
1062 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "e"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1062, &gtest_dt)) { goto gtest_label_1062; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1062; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "e")
; }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1062: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1062, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1063 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+e"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1063, &gtest_dt)) { goto gtest_label_1063; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1063; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1063: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1063, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1064 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-e"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1064, &gtest_dt)) { goto gtest_label_1064; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1064; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1064: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1064, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1065
1066 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "e1"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"e1\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1066, &gtest_dt)) { goto gtest_label_1066; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1066; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "e1"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1066: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1066, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1067 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+e1"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+e1\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1067, &gtest_dt)) { goto gtest_label_1067; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1067; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+e1"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1067: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1067, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1068 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-e1"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-e1\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1068, &gtest_dt)) { goto gtest_label_1068; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1068; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-e1"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1068: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1068, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1069
1070 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, ".e1"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \".e1\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1070, &gtest_dt)) { goto gtest_label_1070; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1070; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, ".e1"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1070: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1070, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1071 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+.e1"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+.e1\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1071, &gtest_dt)) { goto gtest_label_1071; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1071; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+.e1"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1071: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1071, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1072 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-.e1"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-.e1\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1072, &gtest_dt)) { goto gtest_label_1072; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1072; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-.e1"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1072: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1072, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1073
1074
1075 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, ".e"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \".e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1075, &gtest_dt)) { goto gtest_label_1075; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1075; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, ".e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1075: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1075, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1076 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+.e"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+.e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1076, &gtest_dt)) { goto gtest_label_1076; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1076; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+.e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1076: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1076, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1077 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-.e"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-.e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1077, &gtest_dt)) { goto gtest_label_1077; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1077; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-.e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1077: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1077, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1078}
1079
1080TEST(APFloatTest, StringDecimalExponentDeath)class APFloatTest_StringDecimalExponentDeath_Test : public ::
testing::Test { public: APFloatTest_StringDecimalExponentDeath_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); APFloatTest_StringDecimalExponentDeath_Test
(APFloatTest_StringDecimalExponentDeath_Test const &); void
operator=(APFloatTest_StringDecimalExponentDeath_Test const &
);};::testing::TestInfo* const APFloatTest_StringDecimalExponentDeath_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "StringDecimalExponentDeath", __null, __null,
(::testing::internal::GetTestTypeId()), ::testing::Test::SetUpTestCase
, ::testing::Test::TearDownTestCase, new ::testing::internal::
TestFactoryImpl< APFloatTest_StringDecimalExponentDeath_Test
>);void APFloatTest_StringDecimalExponentDeath_Test::TestBody
()
{
1081 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "1e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"1e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1081, &gtest_dt)) { goto gtest_label_1081; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1081; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "1e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1081: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1081, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1082 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+1e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+1e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1082, &gtest_dt)) { goto gtest_label_1082; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1082; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+1e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1082: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1082, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1083 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-1e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-1e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1083, &gtest_dt)) { goto gtest_label_1083; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1083; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-1e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1083: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1083, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1084
1085 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "1.e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"1.e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1085, &gtest_dt)) { goto gtest_label_1085; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1085; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "1.e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1085: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1085, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1086 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+1.e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+1.e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1086, &gtest_dt)) { goto gtest_label_1086; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1086; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+1.e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1086: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1086, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1087 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-1.e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-1.e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1087, &gtest_dt)) { goto gtest_label_1087; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1087; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-1.e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1087: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1087, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1088
1089 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, ".1e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \".1e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1089, &gtest_dt)) { goto gtest_label_1089; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1089; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, ".1e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1089: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1089, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1090 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+.1e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+.1e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1090, &gtest_dt)) { goto gtest_label_1090; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1090; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+.1e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1090: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1090, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1091 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-.1e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-.1e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1091, &gtest_dt)) { goto gtest_label_1091; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1091; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-.1e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1091: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1091, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1092
1093 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "1.1e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"1.1e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1093, &gtest_dt)) { goto gtest_label_1093; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1093; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "1.1e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1093: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1093, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1094 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+1.1e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+1.1e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1094, &gtest_dt)) { goto gtest_label_1094; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1094; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+1.1e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1094: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1094, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1095 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-1.1e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-1.1e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1095, &gtest_dt)) { goto gtest_label_1095; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1095; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-1.1e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1095: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1095, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1096
1097
1098 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "1e+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"1e+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1098, &gtest_dt)) { goto gtest_label_1098; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1098; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "1e+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1098: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1098, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1099 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "1e-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"1e-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1099, &gtest_dt)) { goto gtest_label_1099; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1099; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "1e-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1099: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1099, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1100
1101 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, ".1e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \".1e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1101, &gtest_dt)) { goto gtest_label_1101; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1101; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, ".1e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1101: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1101, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1102 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, ".1e+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \".1e+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1102, &gtest_dt)) { goto gtest_label_1102; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1102; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, ".1e+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1102: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1102, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1103 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, ".1e-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \".1e-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1103, &gtest_dt)) { goto gtest_label_1103; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1103; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, ".1e-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1103: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1103, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1104
1105 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "1.0e"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"1.0e\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1105, &gtest_dt)) { goto gtest_label_1105; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1105; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "1.0e"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1105: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1105, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1106 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "1.0e+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"1.0e+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1106, &gtest_dt)) { goto gtest_label_1106; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1106; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "1.0e+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1106: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1106, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1107 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "1.0e-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"1.0e-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1107, &gtest_dt)) { goto gtest_label_1107; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1107; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "1.0e-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1107: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1107, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1108}
1109
1110TEST(APFloatTest, StringHexadecimalDeath)class APFloatTest_StringHexadecimalDeath_Test : public ::testing
::Test { public: APFloatTest_StringHexadecimalDeath_Test() {}
private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); APFloatTest_StringHexadecimalDeath_Test
(APFloatTest_StringHexadecimalDeath_Test const &); void operator
=(APFloatTest_StringHexadecimalDeath_Test const &);};::testing
::TestInfo* const APFloatTest_StringHexadecimalDeath_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "StringHexadecimalDeath", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_StringHexadecimalDeath_Test>);void APFloatTest_StringHexadecimalDeath_Test
::TestBody()
{
1111 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x"), "Invalid string")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid string"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1111, &gtest_dt)) { goto gtest_label_1111; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1111; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1111: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1111, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1112 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x"), "Invalid string")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid string"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1112, &gtest_dt)) { goto gtest_label_1112; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1112; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1112: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1112, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1113 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x"), "Invalid string")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid string"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1113, &gtest_dt)) { goto gtest_label_1113; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1113; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1113: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1113, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1114
1115 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x0"), "Hex strings require an exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Hex strings require an exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x0\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1115, &gtest_dt)) { goto gtest_label_1115; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1115; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x0"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1115: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1115, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1116 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x0"), "Hex strings require an exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Hex strings require an exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x0\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1116, &gtest_dt)) { goto gtest_label_1116; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1116; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x0"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1116: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1116, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1117 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x0"), "Hex strings require an exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Hex strings require an exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x0\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1117, &gtest_dt)) { goto gtest_label_1117; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1117; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x0"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1117: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1117, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1118
1119 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x0."), "Hex strings require an exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Hex strings require an exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x0.\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1119, &gtest_dt)) { goto gtest_label_1119; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1119; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x0."
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1119: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1119, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1120 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x0."), "Hex strings require an exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Hex strings require an exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x0.\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1120, &gtest_dt)) { goto gtest_label_1120; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1120; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x0."
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1120: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1120, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1121 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x0."), "Hex strings require an exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Hex strings require an exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x0.\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1121, &gtest_dt)) { goto gtest_label_1121; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1121; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x0."
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1121: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1121, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1122
1123 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x.0"), "Hex strings require an exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Hex strings require an exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x.0\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1123, &gtest_dt)) { goto gtest_label_1123; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1123; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x.0"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1123: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1123, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1124 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x.0"), "Hex strings require an exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Hex strings require an exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x.0\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1124, &gtest_dt)) { goto gtest_label_1124; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1124; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x.0"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1124: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1124, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1125 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x.0"), "Hex strings require an exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Hex strings require an exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x.0\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1125, &gtest_dt)) { goto gtest_label_1125; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1125; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x.0"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1125: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1125, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1126
1127 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x0.0"), "Hex strings require an exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Hex strings require an exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x0.0\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1127, &gtest_dt)) { goto gtest_label_1127; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1127; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x0.0"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1127: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1127, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1128 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x0.0"), "Hex strings require an exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Hex strings require an exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x0.0\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1128, &gtest_dt)) { goto gtest_label_1128; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1128; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x0.0"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1128: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1128, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1129 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x0.0"), "Hex strings require an exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Hex strings require an exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x0.0\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1129, &gtest_dt)) { goto gtest_label_1129; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1129; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x0.0"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1129: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1129, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1130
1131 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("0x\0", 3)), "Invalid character in significand")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in significand"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"0x\\0\", 3))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1131, &gtest_dt)) { goto gtest_label_1131; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1131; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("0x\0", 3)); }; gtest_dt->Abort(::testing::internal::DeathTest
::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1131: ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1131, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1132 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("0x1\0", 4)), "Invalid character in significand")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in significand"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"0x1\\0\", 4))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1132, &gtest_dt)) { goto gtest_label_1132; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1132; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("0x1\0", 4)); }; gtest_dt->Abort(::testing::internal::DeathTest
::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1132: ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1132, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1133 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("0x1\02", 5)), "Invalid character in significand")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in significand"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"0x1\\02\", 5))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1133, &gtest_dt)) { goto gtest_label_1133; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1133; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("0x1\02", 5)); }; gtest_dt->Abort(::testing::internal::DeathTest
::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1133: ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1133, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1134 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("0x1\02p1", 7)), "Invalid character in significand")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in significand"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"0x1\\02p1\", 7))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1134, &gtest_dt)) { goto gtest_label_1134; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1134; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("0x1\02p1", 7)); }; gtest_dt->Abort(::testing::internal::
DeathTest::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1134
: ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1134, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1135 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("0x1p\0", 5)), "Invalid character in exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"0x1p\\0\", 5))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1135, &gtest_dt)) { goto gtest_label_1135; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1135; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("0x1p\0", 5)); }; gtest_dt->Abort(::testing::internal::DeathTest
::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1135: ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1135, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1136 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("0x1p1\0", 6)), "Invalid character in exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"0x1p1\\0\", 6))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1136, &gtest_dt)) { goto gtest_label_1136; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1136; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("0x1p1\0", 6)); }; gtest_dt->Abort(::testing::internal::DeathTest
::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1136: ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1136, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1137 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, StringRef("0x1p1\02", 7)), "Invalid character in exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, StringRef(\"0x1p1\\02\", 7))"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1137, &gtest_dt)) { goto gtest_label_1137; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1137; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, StringRef
("0x1p1\02", 7)); }; gtest_dt->Abort(::testing::internal::
DeathTest::TEST_DID_NOT_DIE); break; } } } } else gtest_label_1137
: ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1137, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1138
1139 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x1p0f"), "Invalid character in exponent")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Invalid character in exponent"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x1p0f\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1139, &gtest_dt)) { goto gtest_label_1139; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1139; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x1p0f"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1139: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1139, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1140
1141 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x..p1"), "String contains multiple dots")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("String contains multiple dots"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x..p1\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1141, &gtest_dt)) { goto gtest_label_1141; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1141; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x..p1"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1141: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1141, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1142 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x..0p1"), "String contains multiple dots")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("String contains multiple dots"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x..0p1\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1142, &gtest_dt)) { goto gtest_label_1142; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1142; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x..0p1"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1142: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1142, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1143 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x1.0.0p1"), "String contains multiple dots")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("String contains multiple dots"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x1.0.0p1\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1143, &gtest_dt)) { goto gtest_label_1143; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1143; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x1.0.0p1"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1143: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1143, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1144}
1145
1146TEST(APFloatTest, StringHexadecimalSignificandDeath)class APFloatTest_StringHexadecimalSignificandDeath_Test : public
::testing::Test { public: APFloatTest_StringHexadecimalSignificandDeath_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); APFloatTest_StringHexadecimalSignificandDeath_Test
(APFloatTest_StringHexadecimalSignificandDeath_Test const &
); void operator=(APFloatTest_StringHexadecimalSignificandDeath_Test
const &);};::testing::TestInfo* const APFloatTest_StringHexadecimalSignificandDeath_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "StringHexadecimalSignificandDeath", __null, __null
, (::testing::internal::GetTestTypeId()), ::testing::Test::SetUpTestCase
, ::testing::Test::TearDownTestCase, new ::testing::internal::
TestFactoryImpl< APFloatTest_StringHexadecimalSignificandDeath_Test
>);void APFloatTest_StringHexadecimalSignificandDeath_Test
::TestBody()
{
1147 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x."), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x.\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1147, &gtest_dt)) { goto gtest_label_1147; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1147; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x."
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1147: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1147, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1148 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x."), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x.\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1148, &gtest_dt)) { goto gtest_label_1148; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1148; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x."
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1148: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1148, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1149 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x."), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x.\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1149, &gtest_dt)) { goto gtest_label_1149; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1149; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x."
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1149: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1149, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1150
1151 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0xp"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0xp\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1151, &gtest_dt)) { goto gtest_label_1151; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1151; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0xp"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1151: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1151, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1152 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0xp"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0xp\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1152, &gtest_dt)) { goto gtest_label_1152; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1152; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0xp"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1152: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1152, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1153 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0xp"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0xp\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1153, &gtest_dt)) { goto gtest_label_1153; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1153; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0xp"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1153: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1153, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1154
1155 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0xp+"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0xp+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1155, &gtest_dt)) { goto gtest_label_1155; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1155; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0xp+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1155: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1155, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1156 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0xp+"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0xp+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1156, &gtest_dt)) { goto gtest_label_1156; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1156; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0xp+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1156: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1156, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1157 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0xp+"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0xp+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1157, &gtest_dt)) { goto gtest_label_1157; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1157; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0xp+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1157: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1157, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1158
1159 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0xp-"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0xp-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1159, &gtest_dt)) { goto gtest_label_1159; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1159; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0xp-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1159: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1159, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1160 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0xp-"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0xp-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1160, &gtest_dt)) { goto gtest_label_1160; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1160; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0xp-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1160: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1160, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1161 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0xp-"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0xp-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1161, &gtest_dt)) { goto gtest_label_1161; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1161; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0xp-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1161: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1161, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1162
1163
1164 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x.p"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x.p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1164, &gtest_dt)) { goto gtest_label_1164; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1164; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x.p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1164: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1164, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1165 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x.p"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x.p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1165, &gtest_dt)) { goto gtest_label_1165; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1165; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x.p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1165: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1165, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1166 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x.p"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x.p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1166, &gtest_dt)) { goto gtest_label_1166; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1166; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x.p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1166: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1166, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1167
1168 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x.p+"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x.p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1168, &gtest_dt)) { goto gtest_label_1168; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1168; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x.p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1168: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1168, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1169 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x.p+"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x.p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1169, &gtest_dt)) { goto gtest_label_1169; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1169; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x.p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1169: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1169, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1170 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x.p+"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x.p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1170, &gtest_dt)) { goto gtest_label_1170; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1170; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x.p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1170: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1170, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1171
1172 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x.p-"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x.p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1172, &gtest_dt)) { goto gtest_label_1172; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1172; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x.p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1172: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1172, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1173 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x.p-"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x.p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1173, &gtest_dt)) { goto gtest_label_1173; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1173; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x.p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1173: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1173, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1174 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x.p-"), "Significand has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Significand has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x.p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1174, &gtest_dt)) { goto gtest_label_1174; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1174; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x.p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1174: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1174, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1175}
1176
1177TEST(APFloatTest, StringHexadecimalExponentDeath)class APFloatTest_StringHexadecimalExponentDeath_Test : public
::testing::Test { public: APFloatTest_StringHexadecimalExponentDeath_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); APFloatTest_StringHexadecimalExponentDeath_Test
(APFloatTest_StringHexadecimalExponentDeath_Test const &)
; void operator=(APFloatTest_StringHexadecimalExponentDeath_Test
const &);};::testing::TestInfo* const APFloatTest_StringHexadecimalExponentDeath_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "StringHexadecimalExponentDeath", __null, __null
, (::testing::internal::GetTestTypeId()), ::testing::Test::SetUpTestCase
, ::testing::Test::TearDownTestCase, new ::testing::internal::
TestFactoryImpl< APFloatTest_StringHexadecimalExponentDeath_Test
>);void APFloatTest_StringHexadecimalExponentDeath_Test::TestBody
()
{
1178 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x1p"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x1p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1178, &gtest_dt)) { goto gtest_label_1178; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1178; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x1p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1178: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1178, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1179 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x1p"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x1p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1179, &gtest_dt)) { goto gtest_label_1179; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1179; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x1p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1179: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1179, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1180 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x1p"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x1p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1180, &gtest_dt)) { goto gtest_label_1180; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1180; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x1p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1180: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1180, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1181
1182 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x1p+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x1p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1182, &gtest_dt)) { goto gtest_label_1182; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1182; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x1p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1182: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1182, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1183 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x1p+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x1p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1183, &gtest_dt)) { goto gtest_label_1183; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1183; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x1p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1183: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1183, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1184 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x1p+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x1p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1184, &gtest_dt)) { goto gtest_label_1184; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1184; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x1p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1184: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1184, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1185
1186 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x1p-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x1p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1186, &gtest_dt)) { goto gtest_label_1186; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1186; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x1p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1186: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1186, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1187 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x1p-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x1p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1187, &gtest_dt)) { goto gtest_label_1187; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1187; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x1p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1187: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1187, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1188 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x1p-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x1p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1188, &gtest_dt)) { goto gtest_label_1188; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1188; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x1p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1188: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1188, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1189
1190
1191 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x1.p"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x1.p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1191, &gtest_dt)) { goto gtest_label_1191; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1191; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x1.p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1191: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1191, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1192 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x1.p"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x1.p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1192, &gtest_dt)) { goto gtest_label_1192; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1192; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x1.p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1192: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1192, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1193 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x1.p"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x1.p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1193, &gtest_dt)) { goto gtest_label_1193; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1193; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x1.p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1193: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1193, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1194
1195 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x1.p+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x1.p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1195, &gtest_dt)) { goto gtest_label_1195; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1195; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x1.p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1195: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1195, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1196 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x1.p+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x1.p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1196, &gtest_dt)) { goto gtest_label_1196; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1196; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x1.p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1196: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1196, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1197 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x1.p+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x1.p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1197, &gtest_dt)) { goto gtest_label_1197; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1197; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x1.p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1197: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1197, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1198
1199 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x1.p-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x1.p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1199, &gtest_dt)) { goto gtest_label_1199; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1199; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x1.p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1199: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1199, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1200 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x1.p-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x1.p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1200, &gtest_dt)) { goto gtest_label_1200; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1200; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x1.p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1200: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1200, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1201 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x1.p-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x1.p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1201, &gtest_dt)) { goto gtest_label_1201; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1201; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x1.p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1201: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1201, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1202
1203
1204 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x.1p"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x.1p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1204, &gtest_dt)) { goto gtest_label_1204; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1204; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x.1p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1204: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1204, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1205 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x.1p"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x.1p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1205, &gtest_dt)) { goto gtest_label_1205; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1205; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x.1p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1205: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1205, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1206 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x.1p"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x.1p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1206, &gtest_dt)) { goto gtest_label_1206; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1206; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x.1p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1206: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1206, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1207
1208 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x.1p+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x.1p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1208, &gtest_dt)) { goto gtest_label_1208; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1208; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x.1p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1208: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1208, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1209 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x.1p+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x.1p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1209, &gtest_dt)) { goto gtest_label_1209; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1209; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x.1p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1209: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1209, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1210 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x.1p+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x.1p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1210, &gtest_dt)) { goto gtest_label_1210; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1210; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x.1p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1210: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1210, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1211
1212 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x.1p-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x.1p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1212, &gtest_dt)) { goto gtest_label_1212; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1212; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x.1p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1212: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1212, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1213 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x.1p-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x.1p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1213, &gtest_dt)) { goto gtest_label_1213; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1213; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x.1p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1213: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1213, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1214 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x.1p-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x.1p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1214, &gtest_dt)) { goto gtest_label_1214; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1214; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x.1p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1214: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1214, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1215
1216
1217 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x1.1p"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x1.1p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1217, &gtest_dt)) { goto gtest_label_1217; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1217; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x1.1p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1217: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1217, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1218 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x1.1p"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x1.1p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1218, &gtest_dt)) { goto gtest_label_1218; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1218; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x1.1p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1218: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1218, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1219 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x1.1p"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x1.1p\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1219, &gtest_dt)) { goto gtest_label_1219; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1219; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x1.1p"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1219: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1219, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1220
1221 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x1.1p+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x1.1p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1221, &gtest_dt)) { goto gtest_label_1221; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1221; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x1.1p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1221: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1221, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1222 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x1.1p+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x1.1p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1222, &gtest_dt)) { goto gtest_label_1222; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1222; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x1.1p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1222: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1222, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1223 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x1.1p+"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x1.1p+\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1223, &gtest_dt)) { goto gtest_label_1223; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1223; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x1.1p+"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1223: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1223, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1224
1225 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "0x1.1p-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"0x1.1p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1225, &gtest_dt)) { goto gtest_label_1225; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1225; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "0x1.1p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1225: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1225, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1226 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "+0x1.1p-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"+0x1.1p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1226, &gtest_dt)) { goto gtest_label_1226; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1226; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "+0x1.1p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1226: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1226, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1227 EXPECT_DEATH(APFloat(APFloat::IEEEdouble, "-0x1.1p-"), "Exponent has no digits")switch (0) case 0: default: if (::testing::internal::AlwaysTrue
()) { const ::testing::internal::RE& gtest_regex = ("Exponent has no digits"
); ::testing::internal::DeathTest* gtest_dt; if (!::testing::
internal::DeathTest::Create("APFloat(APFloat::IEEEdouble, \"-0x1.1p-\")"
, &gtest_regex, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1227, &gtest_dt)) { goto gtest_label_1227; } if (gtest_dt
!= __null) { ::testing::internal::scoped_ptr< ::testing::
internal::DeathTest> gtest_dt_ptr(gtest_dt); switch (gtest_dt
->AssumeRole()) { case ::testing::internal::DeathTest::OVERSEE_TEST
: if (!gtest_dt->Passed(::testing::internal::ExitedUnsuccessfully
(gtest_dt->Wait()))) { goto gtest_label_1227; } break; case
::testing::internal::DeathTest::EXECUTE_TEST: { ::testing::internal
::DeathTest::ReturnSentinel gtest_sentinel(gtest_dt); if (::testing
::internal::AlwaysTrue()) { APFloat(APFloat::IEEEdouble, "-0x1.1p-"
); }; gtest_dt->Abort(::testing::internal::DeathTest::TEST_DID_NOT_DIE
); break; } } } } else gtest_label_1227: ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1227, ::testing::internal::DeathTest::LastMessage()) = ::testing
::Message()
;
1228}
1229#endif
1230#endif
1231
1232TEST(APFloatTest, exactInverse)class APFloatTest_exactInverse_Test : public ::testing::Test {
public: APFloatTest_exactInverse_Test() {} private: virtual void
TestBody(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_exactInverse_Test(APFloatTest_exactInverse_Test
const &); void operator=(APFloatTest_exactInverse_Test const
&);};::testing::TestInfo* const APFloatTest_exactInverse_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "exactInverse", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_exactInverse_Test>);void APFloatTest_exactInverse_Test
::TestBody()
{
1233 APFloat inv(0.0f);
1234
1235 // Trivial operation.
1236 EXPECT_TRUE(APFloat(2.0).getExactInverse(&inv))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(2.0).getExactInverse
(&inv))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1236, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(2.0).getExactInverse(&inv)", "false", "true").
c_str()) = ::testing::Message()
;
1237 EXPECT_TRUE(inv.bitwiseIsEqual(APFloat(0.5)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(inv.bitwiseIsEqual(APFloat
(0.5)))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1237, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "inv.bitwiseIsEqual(APFloat(0.5))", "false", "true").c_str(
)) = ::testing::Message()
;
1238 EXPECT_TRUE(APFloat(2.0f).getExactInverse(&inv))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(2.0f).getExactInverse
(&inv))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1238, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(2.0f).getExactInverse(&inv)", "false", "true")
.c_str()) = ::testing::Message()
;
1239 EXPECT_TRUE(inv.bitwiseIsEqual(APFloat(0.5f)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(inv.bitwiseIsEqual(APFloat
(0.5f)))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1239, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "inv.bitwiseIsEqual(APFloat(0.5f))", "false", "true").c_str
()) = ::testing::Message()
;
1240 EXPECT_TRUE(APFloat(APFloat::IEEEquad, "2.0").getExactInverse(&inv))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEquad
, "2.0").getExactInverse(&inv))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1240, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEquad, \"2.0\").getExactInverse(&inv)"
, "false", "true").c_str()) = ::testing::Message()
;
1241 EXPECT_TRUE(inv.bitwiseIsEqual(APFloat(APFloat::IEEEquad, "0.5")))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(inv.bitwiseIsEqual(APFloat
(APFloat::IEEEquad, "0.5")))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1241, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "inv.bitwiseIsEqual(APFloat(APFloat::IEEEquad, \"0.5\"))", "false"
, "true").c_str()) = ::testing::Message()
;
1242 EXPECT_TRUE(APFloat(APFloat::PPCDoubleDouble, "2.0").getExactInverse(&inv))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::PPCDoubleDouble
, "2.0").getExactInverse(&inv))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1242, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::PPCDoubleDouble, \"2.0\").getExactInverse(&inv)"
, "false", "true").c_str()) = ::testing::Message()
;
1243 EXPECT_TRUE(inv.bitwiseIsEqual(APFloat(APFloat::PPCDoubleDouble, "0.5")))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(inv.bitwiseIsEqual(APFloat
(APFloat::PPCDoubleDouble, "0.5")))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1243, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "inv.bitwiseIsEqual(APFloat(APFloat::PPCDoubleDouble, \"0.5\"))"
, "false", "true").c_str()) = ::testing::Message()
;
1244 EXPECT_TRUE(APFloat(APFloat::x87DoubleExtended, "2.0").getExactInverse(&inv))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::x87DoubleExtended
, "2.0").getExactInverse(&inv))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1244, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::x87DoubleExtended, \"2.0\").getExactInverse(&inv)"
, "false", "true").c_str()) = ::testing::Message()
;
1245 EXPECT_TRUE(inv.bitwiseIsEqual(APFloat(APFloat::x87DoubleExtended, "0.5")))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(inv.bitwiseIsEqual(APFloat
(APFloat::x87DoubleExtended, "0.5")))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1245, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "inv.bitwiseIsEqual(APFloat(APFloat::x87DoubleExtended, \"0.5\"))"
, "false", "true").c_str()) = ::testing::Message()
;
1246
1247 // FLT_MIN
1248 EXPECT_TRUE(APFloat(1.17549435e-38f).getExactInverse(&inv))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(1.17549435e-38f
).getExactInverse(&inv))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1248, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(1.17549435e-38f).getExactInverse(&inv)", "false"
, "true").c_str()) = ::testing::Message()
;
1249 EXPECT_TRUE(inv.bitwiseIsEqual(APFloat(8.5070592e+37f)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(inv.bitwiseIsEqual(APFloat
(8.5070592e+37f)))) ; else ::testing::internal::AssertHelper(
::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1249, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "inv.bitwiseIsEqual(APFloat(8.5070592e+37f))", "false", "true"
).c_str()) = ::testing::Message()
;
1250
1251 // Large float, inverse is a denormal.
1252 EXPECT_FALSE(APFloat(1.7014118e38f).getExactInverse(nullptr))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(1.7014118e38f
).getExactInverse(nullptr)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1252, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(1.7014118e38f).getExactInverse(nullptr)", "true", "false"
).c_str()) = ::testing::Message()
;
1253 // Zero
1254 EXPECT_FALSE(APFloat(0.0).getExactInverse(nullptr))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(0.0).getExactInverse
(nullptr)))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1254, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(0.0).getExactInverse(nullptr)", "true", "false").c_str
()) = ::testing::Message()
;
1255 // Denormalized float
1256 EXPECT_FALSE(APFloat(1.40129846e-45f).getExactInverse(nullptr))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(1.40129846e-45f
).getExactInverse(nullptr)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1256, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(1.40129846e-45f).getExactInverse(nullptr)", "true"
, "false").c_str()) = ::testing::Message()
;
1257}
1258
1259TEST(APFloatTest, roundToIntegral)class APFloatTest_roundToIntegral_Test : public ::testing::Test
{ public: APFloatTest_roundToIntegral_Test() {} private: virtual
void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); APFloatTest_roundToIntegral_Test(APFloatTest_roundToIntegral_Test
const &); void operator=(APFloatTest_roundToIntegral_Test
const &);};::testing::TestInfo* const APFloatTest_roundToIntegral_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "roundToIntegral", __null, __null, (::testing
::internal::GetTestTypeId()), ::testing::Test::SetUpTestCase,
::testing::Test::TearDownTestCase, new ::testing::internal::
TestFactoryImpl< APFloatTest_roundToIntegral_Test>);void
APFloatTest_roundToIntegral_Test::TestBody()
{
1260 APFloat T(-0.5), S(3.14), R(APFloat::getLargest(APFloat::IEEEdouble)), P(0.0);
1261
1262 P = T;
1263 P.roundToIntegral(APFloat::rmTowardZero);
1264 EXPECT_EQ(-0.0, P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "P.convertToDouble()", -0.0, P.convertToDouble()))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1264, gtest_ar.failure_message()) = ::testing::Message()
;
1265 P = T;
1266 P.roundToIntegral(APFloat::rmTowardNegative);
1267 EXPECT_EQ(-1.0, P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-1.0)) == 1)>::Compare("-1.0"
, "P.convertToDouble()", -1.0, P.convertToDouble()))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1267, gtest_ar.failure_message()) = ::testing::Message()
;
1268 P = T;
1269 P.roundToIntegral(APFloat::rmTowardPositive);
1270 EXPECT_EQ(-0.0, P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "P.convertToDouble()", -0.0, P.convertToDouble()))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1270, gtest_ar.failure_message()) = ::testing::Message()
;
1271 P = T;
1272 P.roundToIntegral(APFloat::rmNearestTiesToEven);
1273 EXPECT_EQ(-0.0, P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "P.convertToDouble()", -0.0, P.convertToDouble()))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1273, gtest_ar.failure_message()) = ::testing::Message()
;
1274
1275 P = S;
1276 P.roundToIntegral(APFloat::rmTowardZero);
1277 EXPECT_EQ(3.0, P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(3.0)) == 1)>::Compare("3.0"
, "P.convertToDouble()", 3.0, P.convertToDouble()))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1277, gtest_ar.failure_message()) = ::testing::Message()
;
1278 P = S;
1279 P.roundToIntegral(APFloat::rmTowardNegative);
1280 EXPECT_EQ(3.0, P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(3.0)) == 1)>::Compare("3.0"
, "P.convertToDouble()", 3.0, P.convertToDouble()))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1280, gtest_ar.failure_message()) = ::testing::Message()
;
1281 P = S;
1282 P.roundToIntegral(APFloat::rmTowardPositive);
1283 EXPECT_EQ(4.0, P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(4.0)) == 1)>::Compare("4.0"
, "P.convertToDouble()", 4.0, P.convertToDouble()))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1283, gtest_ar.failure_message()) = ::testing::Message()
;
1284 P = S;
1285 P.roundToIntegral(APFloat::rmNearestTiesToEven);
1286 EXPECT_EQ(3.0, P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(3.0)) == 1)>::Compare("3.0"
, "P.convertToDouble()", 3.0, P.convertToDouble()))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1286, gtest_ar.failure_message()) = ::testing::Message()
;
1287
1288 P = R;
1289 P.roundToIntegral(APFloat::rmTowardZero);
1290 EXPECT_EQ(R.convertToDouble(), P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(R.convertToDouble())) == 1)>
::Compare("R.convertToDouble()", "P.convertToDouble()", R.convertToDouble
(), P.convertToDouble()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1290, gtest_ar.failure_message()) = ::testing::Message()
;
1291 P = R;
1292 P.roundToIntegral(APFloat::rmTowardNegative);
1293 EXPECT_EQ(R.convertToDouble(), P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(R.convertToDouble())) == 1)>
::Compare("R.convertToDouble()", "P.convertToDouble()", R.convertToDouble
(), P.convertToDouble()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1293, gtest_ar.failure_message()) = ::testing::Message()
;
1294 P = R;
1295 P.roundToIntegral(APFloat::rmTowardPositive);
1296 EXPECT_EQ(R.convertToDouble(), P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(R.convertToDouble())) == 1)>
::Compare("R.convertToDouble()", "P.convertToDouble()", R.convertToDouble
(), P.convertToDouble()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1296, gtest_ar.failure_message()) = ::testing::Message()
;
1297 P = R;
1298 P.roundToIntegral(APFloat::rmNearestTiesToEven);
1299 EXPECT_EQ(R.convertToDouble(), P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(R.convertToDouble())) == 1)>
::Compare("R.convertToDouble()", "P.convertToDouble()", R.convertToDouble
(), P.convertToDouble()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1299, gtest_ar.failure_message()) = ::testing::Message()
;
1300
1301 P = APFloat::getZero(APFloat::IEEEdouble);
1302 P.roundToIntegral(APFloat::rmTowardZero);
1303 EXPECT_EQ(0.0, P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0.0)) == 1)>::Compare("0.0"
, "P.convertToDouble()", 0.0, P.convertToDouble()))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1303, gtest_ar.failure_message()) = ::testing::Message()
;
1304 P = APFloat::getZero(APFloat::IEEEdouble, true);
1305 P.roundToIntegral(APFloat::rmTowardZero);
1306 EXPECT_EQ(-0.0, P.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-0.0)) == 1)>::Compare("-0.0"
, "P.convertToDouble()", -0.0, P.convertToDouble()))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1306, gtest_ar.failure_message()) = ::testing::Message()
;
1307 P = APFloat::getNaN(APFloat::IEEEdouble);
1308 P.roundToIntegral(APFloat::rmTowardZero);
1309 EXPECT_TRUE(std::isnan(P.convertToDouble()))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(std::isnan(P.convertToDouble
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1309, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "std::isnan(P.convertToDouble())", "false", "true").c_str()
) = ::testing::Message()
;
1310 P = APFloat::getInf(APFloat::IEEEdouble);
1311 P.roundToIntegral(APFloat::rmTowardZero);
1312 EXPECT_TRUE(std::isinf(P.convertToDouble()) && P.convertToDouble() > 0.0)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(std::isinf(P.convertToDouble
()) && P.convertToDouble() > 0.0)) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1312, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "std::isinf(P.convertToDouble()) && P.convertToDouble() > 0.0"
, "false", "true").c_str()) = ::testing::Message()
;
1313 P = APFloat::getInf(APFloat::IEEEdouble, true);
1314 P.roundToIntegral(APFloat::rmTowardZero);
1315 EXPECT_TRUE(std::isinf(P.convertToDouble()) && P.convertToDouble() < 0.0)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(std::isinf(P.convertToDouble
()) && P.convertToDouble() < 0.0)) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1315, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "std::isinf(P.convertToDouble()) && P.convertToDouble() < 0.0"
, "false", "true").c_str()) = ::testing::Message()
;
1316}
1317
1318TEST(APFloatTest, isInteger)class APFloatTest_isInteger_Test : public ::testing::Test { public
: APFloatTest_isInteger_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_isInteger_Test(APFloatTest_isInteger_Test
const &); void operator=(APFloatTest_isInteger_Test const
&);};::testing::TestInfo* const APFloatTest_isInteger_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "isInteger", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_isInteger_Test>);void APFloatTest_isInteger_Test
::TestBody()
{
1319 APFloat T(-0.0);
1320 EXPECT_TRUE(T.isInteger())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(T.isInteger())) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1320, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "T.isInteger()", "false", "true").c_str()) = ::testing::Message
()
;
1321 T = APFloat(3.14159);
1322 EXPECT_FALSE(T.isInteger())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(T.isInteger()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1322, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "T.isInteger()", "true", "false").c_str()) = ::testing::Message
()
;
1323 T = APFloat::getNaN(APFloat::IEEEdouble);
1324 EXPECT_FALSE(T.isInteger())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(T.isInteger()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1324, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "T.isInteger()", "true", "false").c_str()) = ::testing::Message
()
;
1325 T = APFloat::getInf(APFloat::IEEEdouble);
1326 EXPECT_FALSE(T.isInteger())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(T.isInteger()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1326, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "T.isInteger()", "true", "false").c_str()) = ::testing::Message
()
;
1327 T = APFloat::getInf(APFloat::IEEEdouble, true);
1328 EXPECT_FALSE(T.isInteger())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(T.isInteger()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1328, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "T.isInteger()", "true", "false").c_str()) = ::testing::Message
()
;
1329 T = APFloat::getLargest(APFloat::IEEEdouble);
1330 EXPECT_TRUE(T.isInteger())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(T.isInteger())) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1330, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "T.isInteger()", "false", "true").c_str()) = ::testing::Message
()
;
1331}
1332
1333TEST(APFloatTest, getLargest)class APFloatTest_getLargest_Test : public ::testing::Test { public
: APFloatTest_getLargest_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_getLargest_Test(APFloatTest_getLargest_Test
const &); void operator=(APFloatTest_getLargest_Test const
&);};::testing::TestInfo* const APFloatTest_getLargest_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "getLargest", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_getLargest_Test>);void APFloatTest_getLargest_Test
::TestBody()
{
1334 EXPECT_EQ(3.402823466e+38f, APFloat::getLargest(APFloat::IEEEsingle).convertToFloat())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(3.402823466e+38f)) == 1)>::
Compare("3.402823466e+38f", "APFloat::getLargest(APFloat::IEEEsingle).convertToFloat()"
, 3.402823466e+38f, APFloat::getLargest(APFloat::IEEEsingle).
convertToFloat()))) ; else ::testing::internal::AssertHelper(
::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1334, gtest_ar.failure_message()) = ::testing::Message()
;
1335 EXPECT_EQ(1.7976931348623158e+308, APFloat::getLargest(APFloat::IEEEdouble).convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.7976931348623158e+308)) == 1
)>::Compare("1.7976931348623158e+308", "APFloat::getLargest(APFloat::IEEEdouble).convertToDouble()"
, 1.7976931348623158e+308, APFloat::getLargest(APFloat::IEEEdouble
).convertToDouble()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1335, gtest_ar.failure_message()) = ::testing::Message()
;
1336}
1337
1338TEST(APFloatTest, getSmallest)class APFloatTest_getSmallest_Test : public ::testing::Test {
public: APFloatTest_getSmallest_Test() {} private: virtual void
TestBody(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_getSmallest_Test(APFloatTest_getSmallest_Test
const &); void operator=(APFloatTest_getSmallest_Test const
&);};::testing::TestInfo* const APFloatTest_getSmallest_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "getSmallest", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_getSmallest_Test>);void APFloatTest_getSmallest_Test
::TestBody()
{
1339 APFloat test = APFloat::getSmallest(APFloat::IEEEsingle, false);
1340 APFloat expected = APFloat(APFloat::IEEEsingle, "0x0.000002p-126");
1341 EXPECT_FALSE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(test.isNegative()))
) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1341, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "true", "false").c_str()) = ::testing::
Message()
;
1342 EXPECT_TRUE(test.isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isFiniteNonZero(
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1342, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isFiniteNonZero()", "false", "true").c_str()) = ::testing
::Message()
;
1343 EXPECT_TRUE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1343, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "false", "true").c_str()) = ::testing::
Message()
;
1344 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1344, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
1345
1346 test = APFloat::getSmallest(APFloat::IEEEsingle, true);
1347 expected = APFloat(APFloat::IEEEsingle, "-0x0.000002p-126");
1348 EXPECT_TRUE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1348, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "false", "true").c_str()) = ::testing::
Message()
;
1349 EXPECT_TRUE(test.isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isFiniteNonZero(
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1349, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isFiniteNonZero()", "false", "true").c_str()) = ::testing
::Message()
;
1350 EXPECT_TRUE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1350, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "false", "true").c_str()) = ::testing::
Message()
;
1351 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1351, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
1352
1353 test = APFloat::getSmallest(APFloat::IEEEquad, false);
1354 expected = APFloat(APFloat::IEEEquad, "0x0.0000000000000000000000000001p-16382");
1355 EXPECT_FALSE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(test.isNegative()))
) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1355, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "true", "false").c_str()) = ::testing::
Message()
;
1356 EXPECT_TRUE(test.isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isFiniteNonZero(
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1356, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isFiniteNonZero()", "false", "true").c_str()) = ::testing
::Message()
;
1357 EXPECT_TRUE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1357, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "false", "true").c_str()) = ::testing::
Message()
;
1358 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1358, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
1359
1360 test = APFloat::getSmallest(APFloat::IEEEquad, true);
1361 expected = APFloat(APFloat::IEEEquad, "-0x0.0000000000000000000000000001p-16382");
1362 EXPECT_TRUE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1362, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "false", "true").c_str()) = ::testing::
Message()
;
1363 EXPECT_TRUE(test.isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isFiniteNonZero(
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1363, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isFiniteNonZero()", "false", "true").c_str()) = ::testing
::Message()
;
1364 EXPECT_TRUE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isDenormal())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1364, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "false", "true").c_str()) = ::testing::
Message()
;
1365 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1365, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
1366}
1367
1368TEST(APFloatTest, getSmallestNormalized)class APFloatTest_getSmallestNormalized_Test : public ::testing
::Test { public: APFloatTest_getSmallestNormalized_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); APFloatTest_getSmallestNormalized_Test
(APFloatTest_getSmallestNormalized_Test const &); void operator
=(APFloatTest_getSmallestNormalized_Test const &);};::testing
::TestInfo* const APFloatTest_getSmallestNormalized_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "getSmallestNormalized", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_getSmallestNormalized_Test>);void APFloatTest_getSmallestNormalized_Test
::TestBody()
{
1369 APFloat test = APFloat::getSmallestNormalized(APFloat::IEEEsingle, false);
1370 APFloat expected = APFloat(APFloat::IEEEsingle, "0x1p-126");
1371 EXPECT_FALSE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(test.isNegative()))
) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1371, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "true", "false").c_str()) = ::testing::
Message()
;
1372 EXPECT_TRUE(test.isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isFiniteNonZero(
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1372, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isFiniteNonZero()", "false", "true").c_str()) = ::testing
::Message()
;
1373 EXPECT_FALSE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(test.isDenormal()))
) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1373, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "true", "false").c_str()) = ::testing::
Message()
;
1374 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1374, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
1375
1376 test = APFloat::getSmallestNormalized(APFloat::IEEEsingle, true);
1377 expected = APFloat(APFloat::IEEEsingle, "-0x1p-126");
1378 EXPECT_TRUE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1378, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "false", "true").c_str()) = ::testing::
Message()
;
1379 EXPECT_TRUE(test.isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isFiniteNonZero(
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1379, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isFiniteNonZero()", "false", "true").c_str()) = ::testing
::Message()
;
1380 EXPECT_FALSE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(test.isDenormal()))
) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1380, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "true", "false").c_str()) = ::testing::
Message()
;
1381 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1381, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
1382
1383 test = APFloat::getSmallestNormalized(APFloat::IEEEquad, false);
1384 expected = APFloat(APFloat::IEEEquad, "0x1p-16382");
1385 EXPECT_FALSE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(test.isNegative()))
) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1385, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "true", "false").c_str()) = ::testing::
Message()
;
1386 EXPECT_TRUE(test.isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isFiniteNonZero(
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1386, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isFiniteNonZero()", "false", "true").c_str()) = ::testing
::Message()
;
1387 EXPECT_FALSE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(test.isDenormal()))
) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1387, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "true", "false").c_str()) = ::testing::
Message()
;
1388 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1388, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
1389
1390 test = APFloat::getSmallestNormalized(APFloat::IEEEquad, true);
1391 expected = APFloat(APFloat::IEEEquad, "-0x1p-16382");
1392 EXPECT_TRUE(test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isNegative())) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1392, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isNegative()", "false", "true").c_str()) = ::testing::
Message()
;
1393 EXPECT_TRUE(test.isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isFiniteNonZero(
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1393, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isFiniteNonZero()", "false", "true").c_str()) = ::testing
::Message()
;
1394 EXPECT_FALSE(test.isDenormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(test.isDenormal()))
) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1394, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isDenormal()", "true", "false").c_str()) = ::testing::
Message()
;
1395 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1395, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
1396}
1397
1398TEST(APFloatTest, getZero)class APFloatTest_getZero_Test : public ::testing::Test { public
: APFloatTest_getZero_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_getZero_Test(APFloatTest_getZero_Test
const &); void operator=(APFloatTest_getZero_Test const &
);};::testing::TestInfo* const APFloatTest_getZero_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "getZero", __null, __null, (::testing::internal::GetTestTypeId
()), ::testing::Test::SetUpTestCase, ::testing::Test::TearDownTestCase
, new ::testing::internal::TestFactoryImpl< APFloatTest_getZero_Test
>);void APFloatTest_getZero_Test::TestBody()
{
1399 struct {
1400 const fltSemantics *semantics;
1401 const bool sign;
1402 const unsigned long long bitPattern[2];
1403 const unsigned bitPatternLength;
1404 } const GetZeroTest[] = {
1405 { &APFloat::IEEEhalf, false, {0, 0}, 1},
1406 { &APFloat::IEEEhalf, true, {0x8000ULL, 0}, 1},
1407 { &APFloat::IEEEsingle, false, {0, 0}, 1},
1408 { &APFloat::IEEEsingle, true, {0x80000000ULL, 0}, 1},
1409 { &APFloat::IEEEdouble, false, {0, 0}, 1},
1410 { &APFloat::IEEEdouble, true, {0x8000000000000000ULL, 0}, 1},
1411 { &APFloat::IEEEquad, false, {0, 0}, 2},
1412 { &APFloat::IEEEquad, true, {0, 0x8000000000000000ULL}, 2},
1413 { &APFloat::PPCDoubleDouble, false, {0, 0}, 2},
1414 { &APFloat::PPCDoubleDouble, true, {0x8000000000000000ULL, 0}, 2},
1415 { &APFloat::x87DoubleExtended, false, {0, 0}, 2},
1416 { &APFloat::x87DoubleExtended, true, {0, 0x8000ULL}, 2},
1417 };
1418 const unsigned NumGetZeroTests = 12;
1419 for (unsigned i = 0; i < NumGetZeroTests; ++i) {
1420 APFloat test = APFloat::getZero(*GetZeroTest[i].semantics,
1421 GetZeroTest[i].sign);
1422 const char *pattern = GetZeroTest[i].sign? "-0x0p+0" : "0x0p+0";
1423 APFloat expected = APFloat(*GetZeroTest[i].semantics,
1424 pattern);
1425 EXPECT_TRUE(test.isZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.isZero())) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1425, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.isZero()", "false", "true").c_str()) = ::testing::Message
()
;
1426 EXPECT_TRUE(GetZeroTest[i].sign? test.isNegative() : !test.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(GetZeroTest[i].sign? test
.isNegative() : !test.isNegative())) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1426, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "GetZeroTest[i].sign? test.isNegative() : !test.isNegative()"
, "false", "true").c_str()) = ::testing::Message()
;
1427 EXPECT_TRUE(test.bitwiseIsEqual(expected))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(expected
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1427, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(expected)", "false", "true").c_str()) =
::testing::Message()
;
1428 for (unsigned j = 0, je = GetZeroTest[i].bitPatternLength; j < je; ++j) {
1429 EXPECT_EQ(GetZeroTest[i].bitPattern[j],switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(GetZeroTest[i].bitPattern[j])
) == 1)>::Compare("GetZeroTest[i].bitPattern[j]", "test.bitcastToAPInt().getRawData()[j]"
, GetZeroTest[i].bitPattern[j], test.bitcastToAPInt().getRawData
()[j]))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1430, gtest_ar.failure_message()) = ::testing::Message()
1430 test.bitcastToAPInt().getRawData()[j])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(GetZeroTest[i].bitPattern[j])
) == 1)>::Compare("GetZeroTest[i].bitPattern[j]", "test.bitcastToAPInt().getRawData()[j]"
, GetZeroTest[i].bitPattern[j], test.bitcastToAPInt().getRawData
()[j]))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1430, gtest_ar.failure_message()) = ::testing::Message()
;
1431 }
1432 }
1433}
1434
1435TEST(APFloatTest, copySign)class APFloatTest_copySign_Test : public ::testing::Test { public
: APFloatTest_copySign_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_copySign_Test(APFloatTest_copySign_Test
const &); void operator=(APFloatTest_copySign_Test const
&);};::testing::TestInfo* const APFloatTest_copySign_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "copySign", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_copySign_Test>);void APFloatTest_copySign_Test
::TestBody()
{
1436 EXPECT_TRUE(APFloat(-42.0).bitwiseIsEqual(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(-42.0).bitwiseIsEqual
( APFloat::copySign(APFloat(42.0), APFloat(-1.0))))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1437, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(-42.0).bitwiseIsEqual( APFloat::copySign(APFloat(42.0), APFloat(-1.0)))"
, "false", "true").c_str()) = ::testing::Message()
1437 APFloat::copySign(APFloat(42.0), APFloat(-1.0))))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(-42.0).bitwiseIsEqual
( APFloat::copySign(APFloat(42.0), APFloat(-1.0))))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1437, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(-42.0).bitwiseIsEqual( APFloat::copySign(APFloat(42.0), APFloat(-1.0)))"
, "false", "true").c_str()) = ::testing::Message()
;
1438 EXPECT_TRUE(APFloat(42.0).bitwiseIsEqual(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(42.0).bitwiseIsEqual
( APFloat::copySign(APFloat(-42.0), APFloat(1.0))))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1439, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(42.0).bitwiseIsEqual( APFloat::copySign(APFloat(-42.0), APFloat(1.0)))"
, "false", "true").c_str()) = ::testing::Message()
1439 APFloat::copySign(APFloat(-42.0), APFloat(1.0))))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(42.0).bitwiseIsEqual
( APFloat::copySign(APFloat(-42.0), APFloat(1.0))))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1439, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(42.0).bitwiseIsEqual( APFloat::copySign(APFloat(-42.0), APFloat(1.0)))"
, "false", "true").c_str()) = ::testing::Message()
;
1440 EXPECT_TRUE(APFloat(-42.0).bitwiseIsEqual(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(-42.0).bitwiseIsEqual
( APFloat::copySign(APFloat(-42.0), APFloat(-1.0))))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1441, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(-42.0).bitwiseIsEqual( APFloat::copySign(APFloat(-42.0), APFloat(-1.0)))"
, "false", "true").c_str()) = ::testing::Message()
1441 APFloat::copySign(APFloat(-42.0), APFloat(-1.0))))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(-42.0).bitwiseIsEqual
( APFloat::copySign(APFloat(-42.0), APFloat(-1.0))))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1441, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(-42.0).bitwiseIsEqual( APFloat::copySign(APFloat(-42.0), APFloat(-1.0)))"
, "false", "true").c_str()) = ::testing::Message()
;
1442 EXPECT_TRUE(APFloat(42.0).bitwiseIsEqual(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(42.0).bitwiseIsEqual
( APFloat::copySign(APFloat(42.0), APFloat(1.0))))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1443, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(42.0).bitwiseIsEqual( APFloat::copySign(APFloat(42.0), APFloat(1.0)))"
, "false", "true").c_str()) = ::testing::Message()
1443 APFloat::copySign(APFloat(42.0), APFloat(1.0))))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(42.0).bitwiseIsEqual
( APFloat::copySign(APFloat(42.0), APFloat(1.0))))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1443, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(42.0).bitwiseIsEqual( APFloat::copySign(APFloat(42.0), APFloat(1.0)))"
, "false", "true").c_str()) = ::testing::Message()
;
1444}
1445
1446TEST(APFloatTest, convert)class APFloatTest_convert_Test : public ::testing::Test { public
: APFloatTest_convert_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_convert_Test(APFloatTest_convert_Test
const &); void operator=(APFloatTest_convert_Test const &
);};::testing::TestInfo* const APFloatTest_convert_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "convert", __null, __null, (::testing::internal::GetTestTypeId
()), ::testing::Test::SetUpTestCase, ::testing::Test::TearDownTestCase
, new ::testing::internal::TestFactoryImpl< APFloatTest_convert_Test
>);void APFloatTest_convert_Test::TestBody()
{
1447 bool losesInfo;
1448 APFloat test(APFloat::IEEEdouble, "1.0");
1449 test.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &losesInfo);
1450 EXPECT_EQ(1.0f, test.convertToFloat())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0f)) == 1)>::Compare("1.0f"
, "test.convertToFloat()", 1.0f, test.convertToFloat()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1450, gtest_ar.failure_message()) = ::testing::Message()
;
1451 EXPECT_FALSE(losesInfo)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(losesInfo))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1451, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "losesInfo", "true", "false").c_str()) = ::testing::Message
()
;
1452
1453 test = APFloat(APFloat::x87DoubleExtended, "0x1p-53");
1454 test.add(APFloat(APFloat::x87DoubleExtended, "1.0"), APFloat::rmNearestTiesToEven);
1455 test.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &losesInfo);
1456 EXPECT_EQ(1.0, test.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "test.convertToDouble()", 1.0, test.convertToDouble()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1456, gtest_ar.failure_message()) = ::testing::Message()
;
1457 EXPECT_TRUE(losesInfo)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(losesInfo)) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1457, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "losesInfo", "false", "true").c_str()) = ::testing::Message
()
;
1458
1459 test = APFloat(APFloat::IEEEquad, "0x1p-53");
1460 test.add(APFloat(APFloat::IEEEquad, "1.0"), APFloat::rmNearestTiesToEven);
1461 test.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &losesInfo);
1462 EXPECT_EQ(1.0, test.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1.0)) == 1)>::Compare("1.0"
, "test.convertToDouble()", 1.0, test.convertToDouble()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1462, gtest_ar.failure_message()) = ::testing::Message()
;
1463 EXPECT_TRUE(losesInfo)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(losesInfo)) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1463, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "losesInfo", "false", "true").c_str()) = ::testing::Message
()
;
1464
1465 test = APFloat(APFloat::x87DoubleExtended, "0xf.fffffffp+28");
1466 test.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &losesInfo);
1467 EXPECT_EQ(4294967295.0, test.convertToDouble())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(4294967295.0)) == 1)>::Compare
("4294967295.0", "test.convertToDouble()", 4294967295.0, test
.convertToDouble()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1467, gtest_ar.failure_message()) = ::testing::Message()
;
1468 EXPECT_FALSE(losesInfo)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(losesInfo))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1468, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "losesInfo", "true", "false").c_str()) = ::testing::Message
()
;
1469
1470 test = APFloat::getSNaN(APFloat::IEEEsingle);
1471 APFloat X87SNaN = APFloat::getSNaN(APFloat::x87DoubleExtended);
1472 test.convert(APFloat::x87DoubleExtended, APFloat::rmNearestTiesToEven,
1473 &losesInfo);
1474 EXPECT_TRUE(test.bitwiseIsEqual(X87SNaN))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(X87SNaN
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1474, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(X87SNaN)", "false", "true").c_str()) =
::testing::Message()
;
1475 EXPECT_FALSE(losesInfo)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(losesInfo))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1475, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "losesInfo", "true", "false").c_str()) = ::testing::Message
()
;
1476
1477 test = APFloat::getQNaN(APFloat::IEEEsingle);
1478 APFloat X87QNaN = APFloat::getQNaN(APFloat::x87DoubleExtended);
1479 test.convert(APFloat::x87DoubleExtended, APFloat::rmNearestTiesToEven,
1480 &losesInfo);
1481 EXPECT_TRUE(test.bitwiseIsEqual(X87QNaN))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(X87QNaN
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1481, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(X87QNaN)", "false", "true").c_str()) =
::testing::Message()
;
1482 EXPECT_FALSE(losesInfo)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(losesInfo))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1482, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "losesInfo", "true", "false").c_str()) = ::testing::Message
()
;
1483
1484 test = APFloat::getSNaN(APFloat::x87DoubleExtended);
1485 test.convert(APFloat::x87DoubleExtended, APFloat::rmNearestTiesToEven,
1486 &losesInfo);
1487 EXPECT_TRUE(test.bitwiseIsEqual(X87SNaN))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(X87SNaN
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1487, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(X87SNaN)", "false", "true").c_str()) =
::testing::Message()
;
1488 EXPECT_FALSE(losesInfo)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(losesInfo))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1488, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "losesInfo", "true", "false").c_str()) = ::testing::Message
()
;
1489
1490 test = APFloat::getQNaN(APFloat::x87DoubleExtended);
1491 test.convert(APFloat::x87DoubleExtended, APFloat::rmNearestTiesToEven,
1492 &losesInfo);
1493 EXPECT_TRUE(test.bitwiseIsEqual(X87QNaN))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(test.bitwiseIsEqual(X87QNaN
))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1493, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "test.bitwiseIsEqual(X87QNaN)", "false", "true").c_str()) =
::testing::Message()
;
1494 EXPECT_FALSE(losesInfo)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(losesInfo))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1494, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "losesInfo", "true", "false").c_str()) = ::testing::Message
()
;
1495}
1496
1497TEST(APFloatTest, PPCDoubleDouble)class APFloatTest_PPCDoubleDouble_Test : public ::testing::Test
{ public: APFloatTest_PPCDoubleDouble_Test() {} private: virtual
void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); APFloatTest_PPCDoubleDouble_Test(APFloatTest_PPCDoubleDouble_Test
const &); void operator=(APFloatTest_PPCDoubleDouble_Test
const &);};::testing::TestInfo* const APFloatTest_PPCDoubleDouble_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "PPCDoubleDouble", __null, __null, (::testing
::internal::GetTestTypeId()), ::testing::Test::SetUpTestCase,
::testing::Test::TearDownTestCase, new ::testing::internal::
TestFactoryImpl< APFloatTest_PPCDoubleDouble_Test>);void
APFloatTest_PPCDoubleDouble_Test::TestBody()
{
1498 APFloat test(APFloat::PPCDoubleDouble, "1.0");
1499 EXPECT_EQ(0x3ff0000000000000ull, test.bitcastToAPInt().getRawData()[0])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x3ff0000000000000ull)) == 1)
>::Compare("0x3ff0000000000000ull", "test.bitcastToAPInt().getRawData()[0]"
, 0x3ff0000000000000ull, test.bitcastToAPInt().getRawData()[0
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1499, gtest_ar.failure_message()) = ::testing::Message()
;
1500 EXPECT_EQ(0x0000000000000000ull, test.bitcastToAPInt().getRawData()[1])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x0000000000000000ull)) == 1)
>::Compare("0x0000000000000000ull", "test.bitcastToAPInt().getRawData()[1]"
, 0x0000000000000000ull, test.bitcastToAPInt().getRawData()[1
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1500, gtest_ar.failure_message()) = ::testing::Message()
;
1501
1502 test.divide(APFloat(APFloat::PPCDoubleDouble, "3.0"), APFloat::rmNearestTiesToEven);
1503 EXPECT_EQ(0x3fd5555555555555ull, test.bitcastToAPInt().getRawData()[0])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x3fd5555555555555ull)) == 1)
>::Compare("0x3fd5555555555555ull", "test.bitcastToAPInt().getRawData()[0]"
, 0x3fd5555555555555ull, test.bitcastToAPInt().getRawData()[0
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1503, gtest_ar.failure_message()) = ::testing::Message()
;
1504 EXPECT_EQ(0x3c75555555555556ull, test.bitcastToAPInt().getRawData()[1])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x3c75555555555556ull)) == 1)
>::Compare("0x3c75555555555556ull", "test.bitcastToAPInt().getRawData()[1]"
, 0x3c75555555555556ull, test.bitcastToAPInt().getRawData()[1
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1504, gtest_ar.failure_message()) = ::testing::Message()
;
1505
1506 // LDBL_MAX
1507 test = APFloat(APFloat::PPCDoubleDouble, "1.79769313486231580793728971405301e+308");
1508 EXPECT_EQ(0x7fefffffffffffffull, test.bitcastToAPInt().getRawData()[0])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7fefffffffffffffull)) == 1)
>::Compare("0x7fefffffffffffffull", "test.bitcastToAPInt().getRawData()[0]"
, 0x7fefffffffffffffull, test.bitcastToAPInt().getRawData()[0
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1508, gtest_ar.failure_message()) = ::testing::Message()
;
1509 EXPECT_EQ(0x7c8ffffffffffffeull, test.bitcastToAPInt().getRawData()[1])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x7c8ffffffffffffeull)) == 1)
>::Compare("0x7c8ffffffffffffeull", "test.bitcastToAPInt().getRawData()[1]"
, 0x7c8ffffffffffffeull, test.bitcastToAPInt().getRawData()[1
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1509, gtest_ar.failure_message()) = ::testing::Message()
;
1510
1511 // LDBL_MIN
1512 test = APFloat(APFloat::PPCDoubleDouble, "2.00416836000897277799610805135016e-292");
1513 EXPECT_EQ(0x0360000000000000ull, test.bitcastToAPInt().getRawData()[0])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x0360000000000000ull)) == 1)
>::Compare("0x0360000000000000ull", "test.bitcastToAPInt().getRawData()[0]"
, 0x0360000000000000ull, test.bitcastToAPInt().getRawData()[0
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1513, gtest_ar.failure_message()) = ::testing::Message()
;
1514 EXPECT_EQ(0x0000000000000000ull, test.bitcastToAPInt().getRawData()[1])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x0000000000000000ull)) == 1)
>::Compare("0x0000000000000000ull", "test.bitcastToAPInt().getRawData()[1]"
, 0x0000000000000000ull, test.bitcastToAPInt().getRawData()[1
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1514, gtest_ar.failure_message()) = ::testing::Message()
;
1515
1516 test = APFloat(APFloat::PPCDoubleDouble, "1.0");
1517 test.add(APFloat(APFloat::PPCDoubleDouble, "0x1p-105"), APFloat::rmNearestTiesToEven);
1518 EXPECT_EQ(0x3ff0000000000000ull, test.bitcastToAPInt().getRawData()[0])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x3ff0000000000000ull)) == 1)
>::Compare("0x3ff0000000000000ull", "test.bitcastToAPInt().getRawData()[0]"
, 0x3ff0000000000000ull, test.bitcastToAPInt().getRawData()[0
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1518, gtest_ar.failure_message()) = ::testing::Message()
;
1519 EXPECT_EQ(0x3960000000000000ull, test.bitcastToAPInt().getRawData()[1])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x3960000000000000ull)) == 1)
>::Compare("0x3960000000000000ull", "test.bitcastToAPInt().getRawData()[1]"
, 0x3960000000000000ull, test.bitcastToAPInt().getRawData()[1
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1519, gtest_ar.failure_message()) = ::testing::Message()
;
1520
1521 test = APFloat(APFloat::PPCDoubleDouble, "1.0");
1522 test.add(APFloat(APFloat::PPCDoubleDouble, "0x1p-106"), APFloat::rmNearestTiesToEven);
1523 EXPECT_EQ(0x3ff0000000000000ull, test.bitcastToAPInt().getRawData()[0])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x3ff0000000000000ull)) == 1)
>::Compare("0x3ff0000000000000ull", "test.bitcastToAPInt().getRawData()[0]"
, 0x3ff0000000000000ull, test.bitcastToAPInt().getRawData()[0
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1523, gtest_ar.failure_message()) = ::testing::Message()
;
1524#if 0 // XFAIL
1525 // This is what we would expect with a true double-double implementation
1526 EXPECT_EQ(0x3950000000000000ull, test.bitcastToAPInt().getRawData()[1])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x3950000000000000ull)) == 1)
>::Compare("0x3950000000000000ull", "test.bitcastToAPInt().getRawData()[1]"
, 0x3950000000000000ull, test.bitcastToAPInt().getRawData()[1
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1526, gtest_ar.failure_message()) = ::testing::Message()
;
1527#else
1528 // This is what we get with our 106-bit mantissa approximation
1529 EXPECT_EQ(0x0000000000000000ull, test.bitcastToAPInt().getRawData()[1])switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0x0000000000000000ull)) == 1)
>::Compare("0x0000000000000000ull", "test.bitcastToAPInt().getRawData()[1]"
, 0x0000000000000000ull, test.bitcastToAPInt().getRawData()[1
]))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1529, gtest_ar.failure_message()) = ::testing::Message()
;
1530#endif
1531}
1532
1533TEST(APFloatTest, isNegative)class APFloatTest_isNegative_Test : public ::testing::Test { public
: APFloatTest_isNegative_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_isNegative_Test(APFloatTest_isNegative_Test
const &); void operator=(APFloatTest_isNegative_Test const
&);};::testing::TestInfo* const APFloatTest_isNegative_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "isNegative", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_isNegative_Test>);void APFloatTest_isNegative_Test
::TestBody()
{
1534 APFloat t(APFloat::IEEEsingle, "0x1p+0");
1535 EXPECT_FALSE(t.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(t.isNegative()))) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1535, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "t.isNegative()", "true", "false").c_str()) = ::testing::Message
()
;
1536 t = APFloat(APFloat::IEEEsingle, "-0x1p+0");
1537 EXPECT_TRUE(t.isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(t.isNegative())) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1537, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "t.isNegative()", "false", "true").c_str()) = ::testing::Message
()
;
1538
1539 EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, false).isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getInf(APFloat
::IEEEsingle, false).isNegative()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1539, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getInf(APFloat::IEEEsingle, false).isNegative()",
"true", "false").c_str()) = ::testing::Message()
;
1540 EXPECT_TRUE(APFloat::getInf(APFloat::IEEEsingle, true).isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat::getInf(APFloat
::IEEEsingle, true).isNegative())) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1540, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getInf(APFloat::IEEEsingle, true).isNegative()", "false"
, "true").c_str()) = ::testing::Message()
;
1541
1542 EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getZero(APFloat
::IEEEsingle, false).isNegative()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1542, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getZero(APFloat::IEEEsingle, false).isNegative()"
, "true", "false").c_str()) = ::testing::Message()
;
1543 EXPECT_TRUE(APFloat::getZero(APFloat::IEEEsingle, true).isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat::getZero(APFloat
::IEEEsingle, true).isNegative())) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1543, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getZero(APFloat::IEEEsingle, true).isNegative()",
"false", "true").c_str()) = ::testing::Message()
;
1544
1545 EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getNaN(APFloat
::IEEEsingle, false).isNegative()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1545, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getNaN(APFloat::IEEEsingle, false).isNegative()",
"true", "false").c_str()) = ::testing::Message()
;
1546 EXPECT_TRUE(APFloat::getNaN(APFloat::IEEEsingle, true).isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat::getNaN(APFloat
::IEEEsingle, true).isNegative())) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1546, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getNaN(APFloat::IEEEsingle, true).isNegative()", "false"
, "true").c_str()) = ::testing::Message()
;
1547
1548 EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getSNaN(APFloat
::IEEEsingle, false).isNegative()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1548, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getSNaN(APFloat::IEEEsingle, false).isNegative()"
, "true", "false").c_str()) = ::testing::Message()
;
1549 EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, true).isNegative())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat::getSNaN(APFloat
::IEEEsingle, true).isNegative())) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1549, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getSNaN(APFloat::IEEEsingle, true).isNegative()",
"false", "true").c_str()) = ::testing::Message()
;
1550}
1551
1552TEST(APFloatTest, isNormal)class APFloatTest_isNormal_Test : public ::testing::Test { public
: APFloatTest_isNormal_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_isNormal_Test(APFloatTest_isNormal_Test
const &); void operator=(APFloatTest_isNormal_Test const
&);};::testing::TestInfo* const APFloatTest_isNormal_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "isNormal", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_isNormal_Test>);void APFloatTest_isNormal_Test
::TestBody()
{
1553 APFloat t(APFloat::IEEEsingle, "0x1p+0");
1554 EXPECT_TRUE(t.isNormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(t.isNormal())) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1554, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "t.isNormal()", "false", "true").c_str()) = ::testing::Message
()
;
1555
1556 EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, false).isNormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getInf(APFloat
::IEEEsingle, false).isNormal()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1556, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getInf(APFloat::IEEEsingle, false).isNormal()", "true"
, "false").c_str()) = ::testing::Message()
;
1557 EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isNormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getZero(APFloat
::IEEEsingle, false).isNormal()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1557, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getZero(APFloat::IEEEsingle, false).isNormal()", "true"
, "false").c_str()) = ::testing::Message()
;
1558 EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isNormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getNaN(APFloat
::IEEEsingle, false).isNormal()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1558, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getNaN(APFloat::IEEEsingle, false).isNormal()", "true"
, "false").c_str()) = ::testing::Message()
;
1559 EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isNormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getSNaN(APFloat
::IEEEsingle, false).isNormal()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1559, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getSNaN(APFloat::IEEEsingle, false).isNormal()", "true"
, "false").c_str()) = ::testing::Message()
;
1560 EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isNormal())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(APFloat::IEEEsingle
, "0x1p-149").isNormal()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1560, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p-149\").isNormal()", "true"
, "false").c_str()) = ::testing::Message()
;
1561}
1562
1563TEST(APFloatTest, isFinite)class APFloatTest_isFinite_Test : public ::testing::Test { public
: APFloatTest_isFinite_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_isFinite_Test(APFloatTest_isFinite_Test
const &); void operator=(APFloatTest_isFinite_Test const
&);};::testing::TestInfo* const APFloatTest_isFinite_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "isFinite", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_isFinite_Test>);void APFloatTest_isFinite_Test
::TestBody()
{
1564 APFloat t(APFloat::IEEEsingle, "0x1p+0");
1565 EXPECT_TRUE(t.isFinite())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(t.isFinite())) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1565, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "t.isFinite()", "false", "true").c_str()) = ::testing::Message
()
;
1566 EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, false).isFinite())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getInf(APFloat
::IEEEsingle, false).isFinite()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1566, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getInf(APFloat::IEEEsingle, false).isFinite()", "true"
, "false").c_str()) = ::testing::Message()
;
1567 EXPECT_TRUE(APFloat::getZero(APFloat::IEEEsingle, false).isFinite())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat::getZero(APFloat
::IEEEsingle, false).isFinite())) ; else ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1567, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getZero(APFloat::IEEEsingle, false).isFinite()", "false"
, "true").c_str()) = ::testing::Message()
;
1568 EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isFinite())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getNaN(APFloat
::IEEEsingle, false).isFinite()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1568, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getNaN(APFloat::IEEEsingle, false).isFinite()", "true"
, "false").c_str()) = ::testing::Message()
;
1569 EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isFinite())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getSNaN(APFloat
::IEEEsingle, false).isFinite()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1569, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getSNaN(APFloat::IEEEsingle, false).isFinite()", "true"
, "false").c_str()) = ::testing::Message()
;
1570 EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "0x1p-149").isFinite())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "0x1p-149").isFinite())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1570, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p-149\").isFinite()", "false"
, "true").c_str()) = ::testing::Message()
;
1571}
1572
1573TEST(APFloatTest, isInfinity)class APFloatTest_isInfinity_Test : public ::testing::Test { public
: APFloatTest_isInfinity_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_isInfinity_Test(APFloatTest_isInfinity_Test
const &); void operator=(APFloatTest_isInfinity_Test const
&);};::testing::TestInfo* const APFloatTest_isInfinity_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "isInfinity", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_isInfinity_Test>);void APFloatTest_isInfinity_Test
::TestBody()
{
1574 APFloat t(APFloat::IEEEsingle, "0x1p+0");
1575 EXPECT_FALSE(t.isInfinity())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(t.isInfinity()))) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1575, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "t.isInfinity()", "true", "false").c_str()) = ::testing::Message
()
;
1576 EXPECT_TRUE(APFloat::getInf(APFloat::IEEEsingle, false).isInfinity())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat::getInf(APFloat
::IEEEsingle, false).isInfinity())) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1576, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getInf(APFloat::IEEEsingle, false).isInfinity()",
"false", "true").c_str()) = ::testing::Message()
;
1577 EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isInfinity())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getZero(APFloat
::IEEEsingle, false).isInfinity()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1577, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getZero(APFloat::IEEEsingle, false).isInfinity()"
, "true", "false").c_str()) = ::testing::Message()
;
1578 EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isInfinity())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getNaN(APFloat
::IEEEsingle, false).isInfinity()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1578, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getNaN(APFloat::IEEEsingle, false).isInfinity()",
"true", "false").c_str()) = ::testing::Message()
;
1579 EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isInfinity())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getSNaN(APFloat
::IEEEsingle, false).isInfinity()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1579, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getSNaN(APFloat::IEEEsingle, false).isInfinity()"
, "true", "false").c_str()) = ::testing::Message()
;
1580 EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isInfinity())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(APFloat::IEEEsingle
, "0x1p-149").isInfinity()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1580, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p-149\").isInfinity()", "true"
, "false").c_str()) = ::testing::Message()
;
1581}
1582
1583TEST(APFloatTest, isNaN)class APFloatTest_isNaN_Test : public ::testing::Test { public
: APFloatTest_isNaN_Test() {} private: virtual void TestBody(
); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_isNaN_Test(APFloatTest_isNaN_Test const
&); void operator=(APFloatTest_isNaN_Test const &);}
;::testing::TestInfo* const APFloatTest_isNaN_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "isNaN", __null, __null, (::testing::internal::GetTestTypeId
()), ::testing::Test::SetUpTestCase, ::testing::Test::TearDownTestCase
, new ::testing::internal::TestFactoryImpl< APFloatTest_isNaN_Test
>);void APFloatTest_isNaN_Test::TestBody()
{
1584 APFloat t(APFloat::IEEEsingle, "0x1p+0");
1585 EXPECT_FALSE(t.isNaN())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(t.isNaN()))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1585, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "t.isNaN()", "true", "false").c_str()) = ::testing::Message
()
;
1586 EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, false).isNaN())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getInf(APFloat
::IEEEsingle, false).isNaN()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1586, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getInf(APFloat::IEEEsingle, false).isNaN()", "true"
, "false").c_str()) = ::testing::Message()
;
1587 EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isNaN())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getZero(APFloat
::IEEEsingle, false).isNaN()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1587, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getZero(APFloat::IEEEsingle, false).isNaN()", "true"
, "false").c_str()) = ::testing::Message()
;
1588 EXPECT_TRUE(APFloat::getNaN(APFloat::IEEEsingle, false).isNaN())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat::getNaN(APFloat
::IEEEsingle, false).isNaN())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1588, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getNaN(APFloat::IEEEsingle, false).isNaN()", "false"
, "true").c_str()) = ::testing::Message()
;
1589 EXPECT_TRUE(APFloat::getSNaN(APFloat::IEEEsingle, false).isNaN())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat::getSNaN(APFloat
::IEEEsingle, false).isNaN())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1589, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getSNaN(APFloat::IEEEsingle, false).isNaN()", "false"
, "true").c_str()) = ::testing::Message()
;
1590 EXPECT_FALSE(APFloat(APFloat::IEEEsingle, "0x1p-149").isNaN())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat(APFloat::IEEEsingle
, "0x1p-149").isNaN()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1590, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p-149\").isNaN()", "true"
, "false").c_str()) = ::testing::Message()
;
1591}
1592
1593TEST(APFloatTest, isFiniteNonZero)class APFloatTest_isFiniteNonZero_Test : public ::testing::Test
{ public: APFloatTest_isFiniteNonZero_Test() {} private: virtual
void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); APFloatTest_isFiniteNonZero_Test(APFloatTest_isFiniteNonZero_Test
const &); void operator=(APFloatTest_isFiniteNonZero_Test
const &);};::testing::TestInfo* const APFloatTest_isFiniteNonZero_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "isFiniteNonZero", __null, __null, (::testing
::internal::GetTestTypeId()), ::testing::Test::SetUpTestCase,
::testing::Test::TearDownTestCase, new ::testing::internal::
TestFactoryImpl< APFloatTest_isFiniteNonZero_Test>);void
APFloatTest_isFiniteNonZero_Test::TestBody()
{
1594 // Test positive/negative normal value.
1595 EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "0x1p+0").isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "0x1p+0").isFiniteNonZero())) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1595, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p+0\").isFiniteNonZero()"
, "false", "true").c_str()) = ::testing::Message()
;
1596 EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "-0x1p+0").isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "-0x1p+0").isFiniteNonZero())) ; else ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1596, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"-0x1p+0\").isFiniteNonZero()"
, "false", "true").c_str()) = ::testing::Message()
;
1597
1598 // Test positive/negative denormal value.
1599 EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "0x1p-149").isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "0x1p-149").isFiniteNonZero())) ; else ::testing::internal::
AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1599, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p-149\").isFiniteNonZero()"
, "false", "true").c_str()) = ::testing::Message()
;
1600 EXPECT_TRUE(APFloat(APFloat::IEEEsingle, "-0x1p-149").isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "-0x1p-149").isFiniteNonZero())) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1600, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"-0x1p-149\").isFiniteNonZero()"
, "false", "true").c_str()) = ::testing::Message()
;
1601
1602 // Test +/- Infinity.
1603 EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, false).isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getInf(APFloat
::IEEEsingle, false).isFiniteNonZero()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1603, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getInf(APFloat::IEEEsingle, false).isFiniteNonZero()"
, "true", "false").c_str()) = ::testing::Message()
;
1604 EXPECT_FALSE(APFloat::getInf(APFloat::IEEEsingle, true).isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getInf(APFloat
::IEEEsingle, true).isFiniteNonZero()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1604, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getInf(APFloat::IEEEsingle, true).isFiniteNonZero()"
, "true", "false").c_str()) = ::testing::Message()
;
1605
1606 // Test +/- Zero.
1607 EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, false).isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getZero(APFloat
::IEEEsingle, false).isFiniteNonZero()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1607, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getZero(APFloat::IEEEsingle, false).isFiniteNonZero()"
, "true", "false").c_str()) = ::testing::Message()
;
1608 EXPECT_FALSE(APFloat::getZero(APFloat::IEEEsingle, true).isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getZero(APFloat
::IEEEsingle, true).isFiniteNonZero()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1608, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getZero(APFloat::IEEEsingle, true).isFiniteNonZero()"
, "true", "false").c_str()) = ::testing::Message()
;
1609
1610 // Test +/- qNaN. +/- dont mean anything with qNaN but paranoia can't hurt in
1611 // this instance.
1612 EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, false).isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getNaN(APFloat
::IEEEsingle, false).isFiniteNonZero()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1612, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getNaN(APFloat::IEEEsingle, false).isFiniteNonZero()"
, "true", "false").c_str()) = ::testing::Message()
;
1613 EXPECT_FALSE(APFloat::getNaN(APFloat::IEEEsingle, true).isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getNaN(APFloat
::IEEEsingle, true).isFiniteNonZero()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1613, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getNaN(APFloat::IEEEsingle, true).isFiniteNonZero()"
, "true", "false").c_str()) = ::testing::Message()
;
1614
1615 // Test +/- sNaN. +/- dont mean anything with sNaN but paranoia can't hurt in
1616 // this instance.
1617 EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, false).isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getSNaN(APFloat
::IEEEsingle, false).isFiniteNonZero()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1617, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getSNaN(APFloat::IEEEsingle, false).isFiniteNonZero()"
, "true", "false").c_str()) = ::testing::Message()
;
1618 EXPECT_FALSE(APFloat::getSNaN(APFloat::IEEEsingle, true).isFiniteNonZero())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(!(APFloat::getSNaN(APFloat
::IEEEsingle, true).isFiniteNonZero()))) ; else ::testing::internal
::AssertHelper(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1618, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat::getSNaN(APFloat::IEEEsingle, true).isFiniteNonZero()"
, "true", "false").c_str()) = ::testing::Message()
;
1619}
1620
1621TEST(APFloatTest, add)class APFloatTest_add_Test : public ::testing::Test { public:
APFloatTest_add_Test() {} private: virtual void TestBody(); static
::testing::TestInfo* const test_info_ __attribute__ ((unused
)); APFloatTest_add_Test(APFloatTest_add_Test const &); void
operator=(APFloatTest_add_Test const &);};::testing::TestInfo
* const APFloatTest_add_Test ::test_info_ = ::testing::internal
::MakeAndRegisterTestInfo( "APFloatTest", "add", __null, __null
, (::testing::internal::GetTestTypeId()), ::testing::Test::SetUpTestCase
, ::testing::Test::TearDownTestCase, new ::testing::internal::
TestFactoryImpl< APFloatTest_add_Test>);void APFloatTest_add_Test
::TestBody()
{
1622 // Test Special Cases against each other and normal values.
1623
1624 // TODOS/NOTES:
1625 // 1. Since we perform only default exception handling all operations with
1626 // signaling NaNs should have a result that is a quiet NaN. Currently they
1627 // return sNaN.
1628
1629 APFloat PInf = APFloat::getInf(APFloat::IEEEsingle, false);
1630 APFloat MInf = APFloat::getInf(APFloat::IEEEsingle, true);
1631 APFloat PZero = APFloat::getZero(APFloat::IEEEsingle, false);
1632 APFloat MZero = APFloat::getZero(APFloat::IEEEsingle, true);
1633 APFloat QNaN = APFloat::getNaN(APFloat::IEEEsingle, false);
1634 APFloat SNaN = APFloat::getSNaN(APFloat::IEEEsingle, false);
1635 APFloat PNormalValue = APFloat(APFloat::IEEEsingle, "0x1p+0");
1636 APFloat MNormalValue = APFloat(APFloat::IEEEsingle, "-0x1p+0");
1637 APFloat PLargestValue = APFloat::getLargest(APFloat::IEEEsingle, false);
1638 APFloat MLargestValue = APFloat::getLargest(APFloat::IEEEsingle, true);
1639 APFloat PSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, false);
1640 APFloat MSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, true);
1641 APFloat PSmallestNormalized =
1642 APFloat::getSmallestNormalized(APFloat::IEEEsingle, false);
1643 APFloat MSmallestNormalized =
1644 APFloat::getSmallestNormalized(APFloat::IEEEsingle, true);
1645
1646 const int OverflowStatus = APFloat::opOverflow | APFloat::opInexact;
1647
1648 const unsigned NumTests = 169;
1649 struct {
1650 APFloat x;
1651 APFloat y;
1652 const char *result;
1653 int status;
1654 int category;
1655 } SpecialCaseTests[NumTests] = {
1656 { PInf, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1657 { PInf, MInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1658 { PInf, PZero, "inf", APFloat::opOK, APFloat::fcInfinity },
1659 { PInf, MZero, "inf", APFloat::opOK, APFloat::fcInfinity },
1660 { PInf, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1661#if 0
1662 // See Note 1.
1663 { PInf, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1664#endif
1665 { PInf, PNormalValue, "inf", APFloat::opOK, APFloat::fcInfinity },
1666 { PInf, MNormalValue, "inf", APFloat::opOK, APFloat::fcInfinity },
1667 { PInf, PLargestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
1668 { PInf, MLargestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
1669 { PInf, PSmallestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
1670 { PInf, MSmallestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
1671 { PInf, PSmallestNormalized, "inf", APFloat::opOK, APFloat::fcInfinity },
1672 { PInf, MSmallestNormalized, "inf", APFloat::opOK, APFloat::fcInfinity },
1673 { MInf, PInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1674 { MInf, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1675 { MInf, PZero, "-inf", APFloat::opOK, APFloat::fcInfinity },
1676 { MInf, MZero, "-inf", APFloat::opOK, APFloat::fcInfinity },
1677 { MInf, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1678#if 0
1679 // See Note 1.
1680 { MInf, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1681#endif
1682 { MInf, PNormalValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
1683 { MInf, MNormalValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
1684 { MInf, PLargestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
1685 { MInf, MLargestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
1686 { MInf, PSmallestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
1687 { MInf, MSmallestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
1688 { MInf, PSmallestNormalized, "-inf", APFloat::opOK, APFloat::fcInfinity },
1689 { MInf, MSmallestNormalized, "-inf", APFloat::opOK, APFloat::fcInfinity },
1690 { PZero, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1691 { PZero, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1692 { PZero, PZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1693 { PZero, MZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1694 { PZero, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1695#if 0
1696 // See Note 1.
1697 { PZero, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1698#endif
1699 { PZero, PNormalValue, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
1700 { PZero, MNormalValue, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
1701 { PZero, PLargestValue, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
1702 { PZero, MLargestValue, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
1703 { PZero, PSmallestValue, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
1704 { PZero, MSmallestValue, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
1705 { PZero, PSmallestNormalized, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
1706 { PZero, MSmallestNormalized, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
1707 { MZero, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1708 { MZero, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1709 { MZero, PZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1710 { MZero, MZero, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
1711 { MZero, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1712#if 0
1713 // See Note 1.
1714 { MZero, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1715#endif
1716 { MZero, PNormalValue, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
1717 { MZero, MNormalValue, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
1718 { MZero, PLargestValue, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
1719 { MZero, MLargestValue, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
1720 { MZero, PSmallestValue, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
1721 { MZero, MSmallestValue, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
1722 { MZero, PSmallestNormalized, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
1723 { MZero, MSmallestNormalized, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
1724 { QNaN, PInf, "nan", APFloat::opOK, APFloat::fcNaN },
1725 { QNaN, MInf, "nan", APFloat::opOK, APFloat::fcNaN },
1726 { QNaN, PZero, "nan", APFloat::opOK, APFloat::fcNaN },
1727 { QNaN, MZero, "nan", APFloat::opOK, APFloat::fcNaN },
1728 { QNaN, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1729#if 0
1730 // See Note 1.
1731 { QNaN, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1732#endif
1733 { QNaN, PNormalValue, "nan", APFloat::opOK, APFloat::fcNaN },
1734 { QNaN, MNormalValue, "nan", APFloat::opOK, APFloat::fcNaN },
1735 { QNaN, PLargestValue, "nan", APFloat::opOK, APFloat::fcNaN },
1736 { QNaN, MLargestValue, "nan", APFloat::opOK, APFloat::fcNaN },
1737 { QNaN, PSmallestValue, "nan", APFloat::opOK, APFloat::fcNaN },
1738 { QNaN, MSmallestValue, "nan", APFloat::opOK, APFloat::fcNaN },
1739 { QNaN, PSmallestNormalized, "nan", APFloat::opOK, APFloat::fcNaN },
1740 { QNaN, MSmallestNormalized, "nan", APFloat::opOK, APFloat::fcNaN },
1741#if 0
1742 // See Note 1.
1743 { SNaN, PInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1744 { SNaN, MInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1745 { SNaN, PZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1746 { SNaN, MZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1747 { SNaN, QNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1748 { SNaN, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1749 { SNaN, PNormalValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1750 { SNaN, MNormalValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1751 { SNaN, PLargestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1752 { SNaN, MLargestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1753 { SNaN, PSmallestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1754 { SNaN, MSmallestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1755 { SNaN, PSmallestNormalized, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1756 { SNaN, MSmallestNormalized, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1757#endif
1758 { PNormalValue, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1759 { PNormalValue, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1760 { PNormalValue, PZero, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
1761 { PNormalValue, MZero, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
1762 { PNormalValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1763#if 0
1764 // See Note 1.
1765 { PNormalValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1766#endif
1767 { PNormalValue, PNormalValue, "0x1p+1", APFloat::opOK, APFloat::fcNormal },
1768 { PNormalValue, MNormalValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1769 { PNormalValue, PLargestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1770 { PNormalValue, MLargestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1771 { PNormalValue, PSmallestValue, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1772 { PNormalValue, MSmallestValue, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1773 { PNormalValue, PSmallestNormalized, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1774 { PNormalValue, MSmallestNormalized, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1775 { MNormalValue, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1776 { MNormalValue, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1777 { MNormalValue, PZero, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
1778 { MNormalValue, MZero, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
1779 { MNormalValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1780#if 0
1781 // See Note 1.
1782 { MNormalValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1783#endif
1784 { MNormalValue, PNormalValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1785 { MNormalValue, MNormalValue, "-0x1p+1", APFloat::opOK, APFloat::fcNormal },
1786 { MNormalValue, PLargestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1787 { MNormalValue, MLargestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1788 { MNormalValue, PSmallestValue, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1789 { MNormalValue, MSmallestValue, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1790 { MNormalValue, PSmallestNormalized, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1791 { MNormalValue, MSmallestNormalized, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1792 { PLargestValue, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1793 { PLargestValue, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1794 { PLargestValue, PZero, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
1795 { PLargestValue, MZero, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
1796 { PLargestValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1797#if 0
1798 // See Note 1.
1799 { PLargestValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1800#endif
1801 { PLargestValue, PNormalValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1802 { PLargestValue, MNormalValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1803 { PLargestValue, PLargestValue, "inf", OverflowStatus, APFloat::fcInfinity },
1804 { PLargestValue, MLargestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1805 { PLargestValue, PSmallestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1806 { PLargestValue, MSmallestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1807 { PLargestValue, PSmallestNormalized, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1808 { PLargestValue, MSmallestNormalized, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1809 { MLargestValue, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1810 { MLargestValue, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1811 { MLargestValue, PZero, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
1812 { MLargestValue, MZero, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
1813 { MLargestValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1814#if 0
1815 // See Note 1.
1816 { MLargestValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1817#endif
1818 { MLargestValue, PNormalValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1819 { MLargestValue, MNormalValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1820 { MLargestValue, PLargestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1821 { MLargestValue, MLargestValue, "-inf", OverflowStatus, APFloat::fcInfinity },
1822 { MLargestValue, PSmallestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1823 { MLargestValue, MSmallestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1824 { MLargestValue, PSmallestNormalized, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1825 { MLargestValue, MSmallestNormalized, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1826 { PSmallestValue, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1827 { PSmallestValue, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1828 { PSmallestValue, PZero, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
1829 { PSmallestValue, MZero, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
1830 { PSmallestValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1831#if 0
1832 // See Note 1.
1833 { PSmallestValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1834#endif
1835 { PSmallestValue, PNormalValue, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1836 { PSmallestValue, MNormalValue, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1837 { PSmallestValue, PLargestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1838 { PSmallestValue, MLargestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1839 { PSmallestValue, PSmallestValue, "0x1p-148", APFloat::opOK, APFloat::fcNormal },
1840 { PSmallestValue, MSmallestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1841 { PSmallestValue, PSmallestNormalized, "0x1.000002p-126", APFloat::opOK, APFloat::fcNormal },
1842 { PSmallestValue, MSmallestNormalized, "-0x1.fffffcp-127", APFloat::opOK, APFloat::fcNormal },
1843 { MSmallestValue, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1844 { MSmallestValue, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1845 { MSmallestValue, PZero, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
1846 { MSmallestValue, MZero, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
1847 { MSmallestValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1848#if 0
1849 // See Note 1.
1850 { MSmallestValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1851#endif
1852 { MSmallestValue, PNormalValue, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1853 { MSmallestValue, MNormalValue, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1854 { MSmallestValue, PLargestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1855 { MSmallestValue, MLargestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1856 { MSmallestValue, PSmallestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1857 { MSmallestValue, MSmallestValue, "-0x1p-148", APFloat::opOK, APFloat::fcNormal },
1858 { MSmallestValue, PSmallestNormalized, "0x1.fffffcp-127", APFloat::opOK, APFloat::fcNormal },
1859 { MSmallestValue, MSmallestNormalized, "-0x1.000002p-126", APFloat::opOK, APFloat::fcNormal },
1860 { PSmallestNormalized, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1861 { PSmallestNormalized, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1862 { PSmallestNormalized, PZero, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
1863 { PSmallestNormalized, MZero, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
1864 { PSmallestNormalized, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1865#if 0
1866// See Note 1.
1867 { PSmallestNormalized, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1868#endif
1869 { PSmallestNormalized, PNormalValue, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1870 { PSmallestNormalized, MNormalValue, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1871 { PSmallestNormalized, PLargestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1872 { PSmallestNormalized, MLargestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1873 { PSmallestNormalized, PSmallestValue, "0x1.000002p-126", APFloat::opOK, APFloat::fcNormal },
1874 { PSmallestNormalized, MSmallestValue, "0x1.fffffcp-127", APFloat::opOK, APFloat::fcNormal },
1875 { PSmallestNormalized, PSmallestNormalized, "0x1p-125", APFloat::opOK, APFloat::fcNormal },
1876 { PSmallestNormalized, MSmallestNormalized, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1877 { MSmallestNormalized, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1878 { MSmallestNormalized, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1879 { MSmallestNormalized, PZero, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
1880 { MSmallestNormalized, MZero, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
1881 { MSmallestNormalized, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
1882#if 0
1883 // See Note 1.
1884 { MSmallestNormalized, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1885#endif
1886 { MSmallestNormalized, PNormalValue, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1887 { MSmallestNormalized, MNormalValue, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
1888 { MSmallestNormalized, PLargestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1889 { MSmallestNormalized, MLargestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
1890 { MSmallestNormalized, PSmallestValue, "-0x1.fffffcp-127", APFloat::opOK, APFloat::fcNormal },
1891 { MSmallestNormalized, MSmallestValue, "-0x1.000002p-126", APFloat::opOK, APFloat::fcNormal },
1892 { MSmallestNormalized, PSmallestNormalized, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1893 { MSmallestNormalized, MSmallestNormalized, "-0x1p-125", APFloat::opOK, APFloat::fcNormal }
1894 };
1895
1896 for (size_t i = 0; i < NumTests; ++i) {
1897 APFloat x(SpecialCaseTests[i].x);
1898 APFloat y(SpecialCaseTests[i].y);
1899 APFloat::opStatus status = x.add(y, APFloat::rmNearestTiesToEven);
1900
1901 APFloat result(APFloat::IEEEsingle, SpecialCaseTests[i].result);
1902
1903 EXPECT_TRUE(result.bitwiseIsEqual(x))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(result.bitwiseIsEqual
(x))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1903, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "result.bitwiseIsEqual(x)", "false", "true").c_str()) = ::testing
::Message()
;
1904 EXPECT_TRUE((int)status == SpecialCaseTests[i].status)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult((int)status == SpecialCaseTests
[i].status)) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1904, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "(int)status == SpecialCaseTests[i].status", "false", "true"
).c_str()) = ::testing::Message()
;
1905 EXPECT_TRUE((int)x.getCategory() == SpecialCaseTests[i].category)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult((int)x.getCategory() ==
SpecialCaseTests[i].category)) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 1905, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "(int)x.getCategory() == SpecialCaseTests[i].category", "false"
, "true").c_str()) = ::testing::Message()
;
1906 }
1907}
1908
1909TEST(APFloatTest, subtract)class APFloatTest_subtract_Test : public ::testing::Test { public
: APFloatTest_subtract_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_subtract_Test(APFloatTest_subtract_Test
const &); void operator=(APFloatTest_subtract_Test const
&);};::testing::TestInfo* const APFloatTest_subtract_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "subtract", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_subtract_Test>);void APFloatTest_subtract_Test
::TestBody()
{
1910 // Test Special Cases against each other and normal values.
1911
1912 // TODOS/NOTES:
1913 // 1. Since we perform only default exception handling all operations with
1914 // signaling NaNs should have a result that is a quiet NaN. Currently they
1915 // return sNaN.
1916
1917 APFloat PInf = APFloat::getInf(APFloat::IEEEsingle, false);
1918 APFloat MInf = APFloat::getInf(APFloat::IEEEsingle, true);
1919 APFloat PZero = APFloat::getZero(APFloat::IEEEsingle, false);
1920 APFloat MZero = APFloat::getZero(APFloat::IEEEsingle, true);
1921 APFloat QNaN = APFloat::getNaN(APFloat::IEEEsingle, false);
1922 APFloat SNaN = APFloat::getSNaN(APFloat::IEEEsingle, false);
1923 APFloat PNormalValue = APFloat(APFloat::IEEEsingle, "0x1p+0");
1924 APFloat MNormalValue = APFloat(APFloat::IEEEsingle, "-0x1p+0");
1925 APFloat PLargestValue = APFloat::getLargest(APFloat::IEEEsingle, false);
1926 APFloat MLargestValue = APFloat::getLargest(APFloat::IEEEsingle, true);
1927 APFloat PSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, false);
1928 APFloat MSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, true);
1929 APFloat PSmallestNormalized =
1930 APFloat::getSmallestNormalized(APFloat::IEEEsingle, false);
1931 APFloat MSmallestNormalized =
1932 APFloat::getSmallestNormalized(APFloat::IEEEsingle, true);
1933
1934 const int OverflowStatus = APFloat::opOverflow | APFloat::opInexact;
1935
1936 const unsigned NumTests = 169;
1937 struct {
1938 APFloat x;
1939 APFloat y;
1940 const char *result;
1941 int status;
1942 int category;
1943 } SpecialCaseTests[NumTests] = {
1944 { PInf, PInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1945 { PInf, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1946 { PInf, PZero, "inf", APFloat::opOK, APFloat::fcInfinity },
1947 { PInf, MZero, "inf", APFloat::opOK, APFloat::fcInfinity },
1948 { PInf, QNaN, "-nan", APFloat::opOK, APFloat::fcNaN },
1949#if 0
1950// See Note 1.
1951 { PInf, SNaN, "-nan", APFloat::opInvalidOp, APFloat::fcNaN },
1952#endif
1953 { PInf, PNormalValue, "inf", APFloat::opOK, APFloat::fcInfinity },
1954 { PInf, MNormalValue, "inf", APFloat::opOK, APFloat::fcInfinity },
1955 { PInf, PLargestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
1956 { PInf, MLargestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
1957 { PInf, PSmallestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
1958 { PInf, MSmallestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
1959 { PInf, PSmallestNormalized, "inf", APFloat::opOK, APFloat::fcInfinity },
1960 { PInf, MSmallestNormalized, "inf", APFloat::opOK, APFloat::fcInfinity },
1961 { MInf, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1962 { MInf, MInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
1963 { MInf, PZero, "-inf", APFloat::opOK, APFloat::fcInfinity },
1964 { MInf, MZero, "-inf", APFloat::opOK, APFloat::fcInfinity },
1965 { MInf, QNaN, "-nan", APFloat::opOK, APFloat::fcNaN },
1966#if 0
1967// See Note 1.
1968 { MInf, SNaN, "-nan", APFloat::opInvalidOp, APFloat::fcNaN },
1969#endif
1970 { MInf, PNormalValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
1971 { MInf, MNormalValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
1972 { MInf, PLargestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
1973 { MInf, MLargestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
1974 { MInf, PSmallestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
1975 { MInf, MSmallestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
1976 { MInf, PSmallestNormalized, "-inf", APFloat::opOK, APFloat::fcInfinity },
1977 { MInf, MSmallestNormalized, "-inf", APFloat::opOK, APFloat::fcInfinity },
1978 { PZero, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1979 { PZero, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1980 { PZero, PZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1981 { PZero, MZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1982 { PZero, QNaN, "-nan", APFloat::opOK, APFloat::fcNaN },
1983#if 0
1984// See Note 1.
1985 { PZero, SNaN, "-nan", APFloat::opInvalidOp, APFloat::fcNaN },
1986#endif
1987 { PZero, PNormalValue, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
1988 { PZero, MNormalValue, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
1989 { PZero, PLargestValue, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
1990 { PZero, MLargestValue, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
1991 { PZero, PSmallestValue, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
1992 { PZero, MSmallestValue, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
1993 { PZero, PSmallestNormalized, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
1994 { PZero, MSmallestNormalized, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
1995 { MZero, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
1996 { MZero, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
1997 { MZero, PZero, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
1998 { MZero, MZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
1999 { MZero, QNaN, "-nan", APFloat::opOK, APFloat::fcNaN },
2000#if 0
2001// See Note 1.
2002 { MZero, SNaN, "-nan", APFloat::opInvalidOp, APFloat::fcNaN },
2003#endif
2004 { MZero, PNormalValue, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2005 { MZero, MNormalValue, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2006 { MZero, PLargestValue, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2007 { MZero, MLargestValue, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2008 { MZero, PSmallestValue, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
2009 { MZero, MSmallestValue, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
2010 { MZero, PSmallestNormalized, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
2011 { MZero, MSmallestNormalized, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
2012 { QNaN, PInf, "nan", APFloat::opOK, APFloat::fcNaN },
2013 { QNaN, MInf, "nan", APFloat::opOK, APFloat::fcNaN },
2014 { QNaN, PZero, "nan", APFloat::opOK, APFloat::fcNaN },
2015 { QNaN, MZero, "nan", APFloat::opOK, APFloat::fcNaN },
2016 { QNaN, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2017#if 0
2018// See Note 1.
2019 { QNaN, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2020#endif
2021 { QNaN, PNormalValue, "nan", APFloat::opOK, APFloat::fcNaN },
2022 { QNaN, MNormalValue, "nan", APFloat::opOK, APFloat::fcNaN },
2023 { QNaN, PLargestValue, "nan", APFloat::opOK, APFloat::fcNaN },
2024 { QNaN, MLargestValue, "nan", APFloat::opOK, APFloat::fcNaN },
2025 { QNaN, PSmallestValue, "nan", APFloat::opOK, APFloat::fcNaN },
2026 { QNaN, MSmallestValue, "nan", APFloat::opOK, APFloat::fcNaN },
2027 { QNaN, PSmallestNormalized, "nan", APFloat::opOK, APFloat::fcNaN },
2028 { QNaN, MSmallestNormalized, "nan", APFloat::opOK, APFloat::fcNaN },
2029#if 0
2030// See Note 1.
2031 { SNaN, PInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2032 { SNaN, MInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2033 { SNaN, PZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2034 { SNaN, MZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2035 { SNaN, QNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2036 { SNaN, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2037 { SNaN, PNormalValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2038 { SNaN, MNormalValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2039 { SNaN, PLargestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2040 { SNaN, MLargestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2041 { SNaN, PSmallestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2042 { SNaN, MSmallestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2043 { SNaN, PSmallestNormalized, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2044 { SNaN, MSmallestNormalized, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2045#endif
2046 { PNormalValue, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2047 { PNormalValue, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2048 { PNormalValue, PZero, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2049 { PNormalValue, MZero, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2050 { PNormalValue, QNaN, "-nan", APFloat::opOK, APFloat::fcNaN },
2051#if 0
2052// See Note 1.
2053 { PNormalValue, SNaN, "-nan", APFloat::opInvalidOp, APFloat::fcNaN },
2054#endif
2055 { PNormalValue, PNormalValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2056 { PNormalValue, MNormalValue, "0x1p+1", APFloat::opOK, APFloat::fcNormal },
2057 { PNormalValue, PLargestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2058 { PNormalValue, MLargestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2059 { PNormalValue, PSmallestValue, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2060 { PNormalValue, MSmallestValue, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2061 { PNormalValue, PSmallestNormalized, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2062 { PNormalValue, MSmallestNormalized, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2063 { MNormalValue, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2064 { MNormalValue, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2065 { MNormalValue, PZero, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2066 { MNormalValue, MZero, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2067 { MNormalValue, QNaN, "-nan", APFloat::opOK, APFloat::fcNaN },
2068#if 0
2069// See Note 1.
2070 { MNormalValue, SNaN, "-nan", APFloat::opInvalidOp, APFloat::fcNaN },
2071#endif
2072 { MNormalValue, PNormalValue, "-0x1p+1", APFloat::opOK, APFloat::fcNormal },
2073 { MNormalValue, MNormalValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2074 { MNormalValue, PLargestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2075 { MNormalValue, MLargestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2076 { MNormalValue, PSmallestValue, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2077 { MNormalValue, MSmallestValue, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2078 { MNormalValue, PSmallestNormalized, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2079 { MNormalValue, MSmallestNormalized, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2080 { PLargestValue, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2081 { PLargestValue, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2082 { PLargestValue, PZero, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2083 { PLargestValue, MZero, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2084 { PLargestValue, QNaN, "-nan", APFloat::opOK, APFloat::fcNaN },
2085#if 0
2086// See Note 1.
2087 { PLargestValue, SNaN, "-nan", APFloat::opInvalidOp, APFloat::fcNaN },
2088#endif
2089 { PLargestValue, PNormalValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2090 { PLargestValue, MNormalValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2091 { PLargestValue, PLargestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2092 { PLargestValue, MLargestValue, "inf", OverflowStatus, APFloat::fcInfinity },
2093 { PLargestValue, PSmallestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2094 { PLargestValue, MSmallestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2095 { PLargestValue, PSmallestNormalized, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2096 { PLargestValue, MSmallestNormalized, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2097 { MLargestValue, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2098 { MLargestValue, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2099 { MLargestValue, PZero, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2100 { MLargestValue, MZero, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2101 { MLargestValue, QNaN, "-nan", APFloat::opOK, APFloat::fcNaN },
2102#if 0
2103// See Note 1.
2104 { MLargestValue, SNaN, "-nan", APFloat::opInvalidOp, APFloat::fcNaN },
2105#endif
2106 { MLargestValue, PNormalValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2107 { MLargestValue, MNormalValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2108 { MLargestValue, PLargestValue, "-inf", OverflowStatus, APFloat::fcInfinity },
2109 { MLargestValue, MLargestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2110 { MLargestValue, PSmallestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2111 { MLargestValue, MSmallestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2112 { MLargestValue, PSmallestNormalized, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2113 { MLargestValue, MSmallestNormalized, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2114 { PSmallestValue, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2115 { PSmallestValue, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2116 { PSmallestValue, PZero, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
2117 { PSmallestValue, MZero, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
2118 { PSmallestValue, QNaN, "-nan", APFloat::opOK, APFloat::fcNaN },
2119#if 0
2120// See Note 1.
2121 { PSmallestValue, SNaN, "-nan", APFloat::opInvalidOp, APFloat::fcNaN },
2122#endif
2123 { PSmallestValue, PNormalValue, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2124 { PSmallestValue, MNormalValue, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2125 { PSmallestValue, PLargestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2126 { PSmallestValue, MLargestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2127 { PSmallestValue, PSmallestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2128 { PSmallestValue, MSmallestValue, "0x1p-148", APFloat::opOK, APFloat::fcNormal },
2129 { PSmallestValue, PSmallestNormalized, "-0x1.fffffcp-127", APFloat::opOK, APFloat::fcNormal },
2130 { PSmallestValue, MSmallestNormalized, "0x1.000002p-126", APFloat::opOK, APFloat::fcNormal },
2131 { MSmallestValue, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2132 { MSmallestValue, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2133 { MSmallestValue, PZero, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
2134 { MSmallestValue, MZero, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
2135 { MSmallestValue, QNaN, "-nan", APFloat::opOK, APFloat::fcNaN },
2136#if 0
2137// See Note 1.
2138 { MSmallestValue, SNaN, "-nan", APFloat::opInvalidOp, APFloat::fcNaN },
2139#endif
2140 { MSmallestValue, PNormalValue, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2141 { MSmallestValue, MNormalValue, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2142 { MSmallestValue, PLargestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2143 { MSmallestValue, MLargestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2144 { MSmallestValue, PSmallestValue, "-0x1p-148", APFloat::opOK, APFloat::fcNormal },
2145 { MSmallestValue, MSmallestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2146 { MSmallestValue, PSmallestNormalized, "-0x1.000002p-126", APFloat::opOK, APFloat::fcNormal },
2147 { MSmallestValue, MSmallestNormalized, "0x1.fffffcp-127", APFloat::opOK, APFloat::fcNormal },
2148 { PSmallestNormalized, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2149 { PSmallestNormalized, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2150 { PSmallestNormalized, PZero, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
2151 { PSmallestNormalized, MZero, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
2152 { PSmallestNormalized, QNaN, "-nan", APFloat::opOK, APFloat::fcNaN },
2153#if 0
2154// See Note 1.
2155 { PSmallestNormalized, SNaN, "-nan", APFloat::opInvalidOp, APFloat::fcNaN },
2156#endif
2157 { PSmallestNormalized, PNormalValue, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2158 { PSmallestNormalized, MNormalValue, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2159 { PSmallestNormalized, PLargestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2160 { PSmallestNormalized, MLargestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2161 { PSmallestNormalized, PSmallestValue, "0x1.fffffcp-127", APFloat::opOK, APFloat::fcNormal },
2162 { PSmallestNormalized, MSmallestValue, "0x1.000002p-126", APFloat::opOK, APFloat::fcNormal },
2163 { PSmallestNormalized, PSmallestNormalized, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2164 { PSmallestNormalized, MSmallestNormalized, "0x1p-125", APFloat::opOK, APFloat::fcNormal },
2165 { MSmallestNormalized, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2166 { MSmallestNormalized, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2167 { MSmallestNormalized, PZero, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
2168 { MSmallestNormalized, MZero, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
2169 { MSmallestNormalized, QNaN, "-nan", APFloat::opOK, APFloat::fcNaN },
2170#if 0
2171// See Note 1.
2172 { MSmallestNormalized, SNaN, "-nan", APFloat::opInvalidOp, APFloat::fcNaN },
2173#endif
2174 { MSmallestNormalized, PNormalValue, "-0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2175 { MSmallestNormalized, MNormalValue, "0x1p+0", APFloat::opInexact, APFloat::fcNormal },
2176 { MSmallestNormalized, PLargestValue, "-0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2177 { MSmallestNormalized, MLargestValue, "0x1.fffffep+127", APFloat::opInexact, APFloat::fcNormal },
2178 { MSmallestNormalized, PSmallestValue, "-0x1.000002p-126", APFloat::opOK, APFloat::fcNormal },
2179 { MSmallestNormalized, MSmallestValue, "-0x1.fffffcp-127", APFloat::opOK, APFloat::fcNormal },
2180 { MSmallestNormalized, PSmallestNormalized, "-0x1p-125", APFloat::opOK, APFloat::fcNormal },
2181 { MSmallestNormalized, MSmallestNormalized, "0x0p+0", APFloat::opOK, APFloat::fcZero }
2182 };
2183
2184 for (size_t i = 0; i < NumTests; ++i) {
2185 APFloat x(SpecialCaseTests[i].x);
2186 APFloat y(SpecialCaseTests[i].y);
2187 APFloat::opStatus status = x.subtract(y, APFloat::rmNearestTiesToEven);
2188
2189 APFloat result(APFloat::IEEEsingle, SpecialCaseTests[i].result);
2190
2191 EXPECT_TRUE(result.bitwiseIsEqual(x))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(result.bitwiseIsEqual
(x))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2191, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "result.bitwiseIsEqual(x)", "false", "true").c_str()) = ::testing
::Message()
;
2192 EXPECT_TRUE((int)status == SpecialCaseTests[i].status)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult((int)status == SpecialCaseTests
[i].status)) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2192, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "(int)status == SpecialCaseTests[i].status", "false", "true"
).c_str()) = ::testing::Message()
;
2193 EXPECT_TRUE((int)x.getCategory() == SpecialCaseTests[i].category)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult((int)x.getCategory() ==
SpecialCaseTests[i].category)) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2193, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "(int)x.getCategory() == SpecialCaseTests[i].category", "false"
, "true").c_str()) = ::testing::Message()
;
2194 }
2195}
2196
2197TEST(APFloatTest, multiply)class APFloatTest_multiply_Test : public ::testing::Test { public
: APFloatTest_multiply_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_multiply_Test(APFloatTest_multiply_Test
const &); void operator=(APFloatTest_multiply_Test const
&);};::testing::TestInfo* const APFloatTest_multiply_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"APFloatTest", "multiply", __null, __null, (::testing::internal
::GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing
::Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_multiply_Test>);void APFloatTest_multiply_Test
::TestBody()
{
2198 // Test Special Cases against each other and normal values.
2199
2200 // TODOS/NOTES:
2201 // 1. Since we perform only default exception handling all operations with
2202 // signaling NaNs should have a result that is a quiet NaN. Currently they
2203 // return sNaN.
2204
2205 APFloat PInf = APFloat::getInf(APFloat::IEEEsingle, false);
2206 APFloat MInf = APFloat::getInf(APFloat::IEEEsingle, true);
2207 APFloat PZero = APFloat::getZero(APFloat::IEEEsingle, false);
2208 APFloat MZero = APFloat::getZero(APFloat::IEEEsingle, true);
2209 APFloat QNaN = APFloat::getNaN(APFloat::IEEEsingle, false);
2210 APFloat SNaN = APFloat::getSNaN(APFloat::IEEEsingle, false);
2211 APFloat PNormalValue = APFloat(APFloat::IEEEsingle, "0x1p+0");
2212 APFloat MNormalValue = APFloat(APFloat::IEEEsingle, "-0x1p+0");
2213 APFloat PLargestValue = APFloat::getLargest(APFloat::IEEEsingle, false);
2214 APFloat MLargestValue = APFloat::getLargest(APFloat::IEEEsingle, true);
2215 APFloat PSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, false);
2216 APFloat MSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, true);
2217 APFloat PSmallestNormalized =
2218 APFloat::getSmallestNormalized(APFloat::IEEEsingle, false);
2219 APFloat MSmallestNormalized =
2220 APFloat::getSmallestNormalized(APFloat::IEEEsingle, true);
2221
2222 const int OverflowStatus = APFloat::opOverflow | APFloat::opInexact;
2223 const int UnderflowStatus = APFloat::opUnderflow | APFloat::opInexact;
2224
2225 const unsigned NumTests = 169;
2226 struct {
2227 APFloat x;
2228 APFloat y;
2229 const char *result;
2230 int status;
2231 int category;
2232 } SpecialCaseTests[NumTests] = {
2233 { PInf, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2234 { PInf, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2235 { PInf, PZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2236 { PInf, MZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2237 { PInf, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2238#if 0
2239// See Note 1.
2240 { PInf, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2241#endif
2242 { PInf, PNormalValue, "inf", APFloat::opOK, APFloat::fcInfinity },
2243 { PInf, MNormalValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
2244 { PInf, PLargestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
2245 { PInf, MLargestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
2246 { PInf, PSmallestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
2247 { PInf, MSmallestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
2248 { PInf, PSmallestNormalized, "inf", APFloat::opOK, APFloat::fcInfinity },
2249 { PInf, MSmallestNormalized, "-inf", APFloat::opOK, APFloat::fcInfinity },
2250 { MInf, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2251 { MInf, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2252 { MInf, PZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2253 { MInf, MZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2254 { MInf, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2255#if 0
2256// See Note 1.
2257 { MInf, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2258#endif
2259 { MInf, PNormalValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
2260 { MInf, MNormalValue, "inf", APFloat::opOK, APFloat::fcInfinity },
2261 { MInf, PLargestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
2262 { MInf, MLargestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
2263 { MInf, PSmallestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
2264 { MInf, MSmallestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
2265 { MInf, PSmallestNormalized, "-inf", APFloat::opOK, APFloat::fcInfinity },
2266 { MInf, MSmallestNormalized, "inf", APFloat::opOK, APFloat::fcInfinity },
2267 { PZero, PInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2268 { PZero, MInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2269 { PZero, PZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2270 { PZero, MZero, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2271 { PZero, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2272#if 0
2273// See Note 1.
2274 { PZero, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2275#endif
2276 { PZero, PNormalValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2277 { PZero, MNormalValue, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2278 { PZero, PLargestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2279 { PZero, MLargestValue, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2280 { PZero, PSmallestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2281 { PZero, MSmallestValue, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2282 { PZero, PSmallestNormalized, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2283 { PZero, MSmallestNormalized, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2284 { MZero, PInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2285 { MZero, MInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2286 { MZero, PZero, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2287 { MZero, MZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2288 { MZero, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2289#if 0
2290// See Note 1.
2291 { MZero, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2292#endif
2293 { MZero, PNormalValue, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2294 { MZero, MNormalValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2295 { MZero, PLargestValue, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2296 { MZero, MLargestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2297 { MZero, PSmallestValue, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2298 { MZero, MSmallestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2299 { MZero, PSmallestNormalized, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2300 { MZero, MSmallestNormalized, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2301 { QNaN, PInf, "nan", APFloat::opOK, APFloat::fcNaN },
2302 { QNaN, MInf, "nan", APFloat::opOK, APFloat::fcNaN },
2303 { QNaN, PZero, "nan", APFloat::opOK, APFloat::fcNaN },
2304 { QNaN, MZero, "nan", APFloat::opOK, APFloat::fcNaN },
2305 { QNaN, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2306#if 0
2307// See Note 1.
2308 { QNaN, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2309#endif
2310 { QNaN, PNormalValue, "nan", APFloat::opOK, APFloat::fcNaN },
2311 { QNaN, MNormalValue, "nan", APFloat::opOK, APFloat::fcNaN },
2312 { QNaN, PLargestValue, "nan", APFloat::opOK, APFloat::fcNaN },
2313 { QNaN, MLargestValue, "nan", APFloat::opOK, APFloat::fcNaN },
2314 { QNaN, PSmallestValue, "nan", APFloat::opOK, APFloat::fcNaN },
2315 { QNaN, MSmallestValue, "nan", APFloat::opOK, APFloat::fcNaN },
2316 { QNaN, PSmallestNormalized, "nan", APFloat::opOK, APFloat::fcNaN },
2317 { QNaN, MSmallestNormalized, "nan", APFloat::opOK, APFloat::fcNaN },
2318#if 0
2319// See Note 1.
2320 { SNaN, PInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2321 { SNaN, MInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2322 { SNaN, PZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2323 { SNaN, MZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2324 { SNaN, QNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2325 { SNaN, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2326 { SNaN, PNormalValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2327 { SNaN, MNormalValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2328 { SNaN, PLargestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2329 { SNaN, MLargestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2330 { SNaN, PSmallestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2331 { SNaN, MSmallestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2332 { SNaN, PSmallestNormalized, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2333 { SNaN, MSmallestNormalized, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2334#endif
2335 { PNormalValue, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2336 { PNormalValue, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2337 { PNormalValue, PZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2338 { PNormalValue, MZero, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2339 { PNormalValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2340#if 0
2341// See Note 1.
2342 { PNormalValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2343#endif
2344 { PNormalValue, PNormalValue, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2345 { PNormalValue, MNormalValue, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2346 { PNormalValue, PLargestValue, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2347 { PNormalValue, MLargestValue, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2348 { PNormalValue, PSmallestValue, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
2349 { PNormalValue, MSmallestValue, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
2350 { PNormalValue, PSmallestNormalized, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
2351 { PNormalValue, MSmallestNormalized, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
2352 { MNormalValue, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2353 { MNormalValue, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2354 { MNormalValue, PZero, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2355 { MNormalValue, MZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2356 { MNormalValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2357#if 0
2358// See Note 1.
2359 { MNormalValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2360#endif
2361 { MNormalValue, PNormalValue, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2362 { MNormalValue, MNormalValue, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2363 { MNormalValue, PLargestValue, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2364 { MNormalValue, MLargestValue, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2365 { MNormalValue, PSmallestValue, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
2366 { MNormalValue, MSmallestValue, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
2367 { MNormalValue, PSmallestNormalized, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
2368 { MNormalValue, MSmallestNormalized, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
2369 { PLargestValue, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2370 { PLargestValue, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2371 { PLargestValue, PZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2372 { PLargestValue, MZero, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2373 { PLargestValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2374#if 0
2375// See Note 1.
2376 { PLargestValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2377#endif
2378 { PLargestValue, PNormalValue, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2379 { PLargestValue, MNormalValue, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2380 { PLargestValue, PLargestValue, "inf", OverflowStatus, APFloat::fcInfinity },
2381 { PLargestValue, MLargestValue, "-inf", OverflowStatus, APFloat::fcInfinity },
2382 { PLargestValue, PSmallestValue, "0x1.fffffep-22", APFloat::opOK, APFloat::fcNormal },
2383 { PLargestValue, MSmallestValue, "-0x1.fffffep-22", APFloat::opOK, APFloat::fcNormal },
2384 { PLargestValue, PSmallestNormalized, "0x1.fffffep+1", APFloat::opOK, APFloat::fcNormal },
2385 { PLargestValue, MSmallestNormalized, "-0x1.fffffep+1", APFloat::opOK, APFloat::fcNormal },
2386 { MLargestValue, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2387 { MLargestValue, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2388 { MLargestValue, PZero, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2389 { MLargestValue, MZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2390 { MLargestValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2391#if 0
2392// See Note 1.
2393 { MLargestValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2394#endif
2395 { MLargestValue, PNormalValue, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2396 { MLargestValue, MNormalValue, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2397 { MLargestValue, PLargestValue, "-inf", OverflowStatus, APFloat::fcInfinity },
2398 { MLargestValue, MLargestValue, "inf", OverflowStatus, APFloat::fcInfinity },
2399 { MLargestValue, PSmallestValue, "-0x1.fffffep-22", APFloat::opOK, APFloat::fcNormal },
2400 { MLargestValue, MSmallestValue, "0x1.fffffep-22", APFloat::opOK, APFloat::fcNormal },
2401 { MLargestValue, PSmallestNormalized, "-0x1.fffffep+1", APFloat::opOK, APFloat::fcNormal },
2402 { MLargestValue, MSmallestNormalized, "0x1.fffffep+1", APFloat::opOK, APFloat::fcNormal },
2403 { PSmallestValue, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2404 { PSmallestValue, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2405 { PSmallestValue, PZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2406 { PSmallestValue, MZero, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2407 { PSmallestValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2408#if 0
2409// See Note 1.
2410 { PSmallestValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2411#endif
2412 { PSmallestValue, PNormalValue, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
2413 { PSmallestValue, MNormalValue, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
2414 { PSmallestValue, PLargestValue, "0x1.fffffep-22", APFloat::opOK, APFloat::fcNormal },
2415 { PSmallestValue, MLargestValue, "-0x1.fffffep-22", APFloat::opOK, APFloat::fcNormal },
2416 { PSmallestValue, PSmallestValue, "0x0p+0", UnderflowStatus, APFloat::fcZero },
2417 { PSmallestValue, MSmallestValue, "-0x0p+0", UnderflowStatus, APFloat::fcZero },
2418 { PSmallestValue, PSmallestNormalized, "0x0p+0", UnderflowStatus, APFloat::fcZero },
2419 { PSmallestValue, MSmallestNormalized, "-0x0p+0", UnderflowStatus, APFloat::fcZero },
2420 { MSmallestValue, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2421 { MSmallestValue, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2422 { MSmallestValue, PZero, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2423 { MSmallestValue, MZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2424 { MSmallestValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2425#if 0
2426// See Note 1.
2427 { MSmallestValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2428#endif
2429 { MSmallestValue, PNormalValue, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
2430 { MSmallestValue, MNormalValue, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
2431 { MSmallestValue, PLargestValue, "-0x1.fffffep-22", APFloat::opOK, APFloat::fcNormal },
2432 { MSmallestValue, MLargestValue, "0x1.fffffep-22", APFloat::opOK, APFloat::fcNormal },
2433 { MSmallestValue, PSmallestValue, "-0x0p+0", UnderflowStatus, APFloat::fcZero },
2434 { MSmallestValue, MSmallestValue, "0x0p+0", UnderflowStatus, APFloat::fcZero },
2435 { MSmallestValue, PSmallestNormalized, "-0x0p+0", UnderflowStatus, APFloat::fcZero },
2436 { MSmallestValue, MSmallestNormalized, "0x0p+0", UnderflowStatus, APFloat::fcZero },
2437 { PSmallestNormalized, PInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2438 { PSmallestNormalized, MInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2439 { PSmallestNormalized, PZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2440 { PSmallestNormalized, MZero, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2441 { PSmallestNormalized, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2442#if 0
2443// See Note 1.
2444 { PSmallestNormalized, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2445#endif
2446 { PSmallestNormalized, PNormalValue, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
2447 { PSmallestNormalized, MNormalValue, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
2448 { PSmallestNormalized, PLargestValue, "0x1.fffffep+1", APFloat::opOK, APFloat::fcNormal },
2449 { PSmallestNormalized, MLargestValue, "-0x1.fffffep+1", APFloat::opOK, APFloat::fcNormal },
2450 { PSmallestNormalized, PSmallestValue, "0x0p+0", UnderflowStatus, APFloat::fcZero },
2451 { PSmallestNormalized, MSmallestValue, "-0x0p+0", UnderflowStatus, APFloat::fcZero },
2452 { PSmallestNormalized, PSmallestNormalized, "0x0p+0", UnderflowStatus, APFloat::fcZero },
2453 { PSmallestNormalized, MSmallestNormalized, "-0x0p+0", UnderflowStatus, APFloat::fcZero },
2454 { MSmallestNormalized, PInf, "-inf", APFloat::opOK, APFloat::fcInfinity },
2455 { MSmallestNormalized, MInf, "inf", APFloat::opOK, APFloat::fcInfinity },
2456 { MSmallestNormalized, PZero, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2457 { MSmallestNormalized, MZero, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2458 { MSmallestNormalized, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2459#if 0
2460// See Note 1.
2461 { MSmallestNormalized, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2462#endif
2463 { MSmallestNormalized, PNormalValue, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
2464 { MSmallestNormalized, MNormalValue, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
2465 { MSmallestNormalized, PLargestValue, "-0x1.fffffep+1", APFloat::opOK, APFloat::fcNormal },
2466 { MSmallestNormalized, MLargestValue, "0x1.fffffep+1", APFloat::opOK, APFloat::fcNormal },
2467 { MSmallestNormalized, PSmallestValue, "-0x0p+0", UnderflowStatus, APFloat::fcZero },
2468 { MSmallestNormalized, MSmallestValue, "0x0p+0", UnderflowStatus, APFloat::fcZero },
2469 { MSmallestNormalized, PSmallestNormalized, "-0x0p+0", UnderflowStatus, APFloat::fcZero },
2470 { MSmallestNormalized, MSmallestNormalized, "0x0p+0", UnderflowStatus, APFloat::fcZero }
2471 };
2472
2473 for (size_t i = 0; i < NumTests; ++i) {
2474 APFloat x(SpecialCaseTests[i].x);
2475 APFloat y(SpecialCaseTests[i].y);
2476 APFloat::opStatus status = x.multiply(y, APFloat::rmNearestTiesToEven);
2477
2478 APFloat result(APFloat::IEEEsingle, SpecialCaseTests[i].result);
2479
2480 EXPECT_TRUE(result.bitwiseIsEqual(x))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(result.bitwiseIsEqual
(x))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2480, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "result.bitwiseIsEqual(x)", "false", "true").c_str()) = ::testing
::Message()
;
2481 EXPECT_TRUE((int)status == SpecialCaseTests[i].status)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult((int)status == SpecialCaseTests
[i].status)) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2481, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "(int)status == SpecialCaseTests[i].status", "false", "true"
).c_str()) = ::testing::Message()
;
2482 EXPECT_TRUE((int)x.getCategory() == SpecialCaseTests[i].category)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult((int)x.getCategory() ==
SpecialCaseTests[i].category)) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2482, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "(int)x.getCategory() == SpecialCaseTests[i].category", "false"
, "true").c_str()) = ::testing::Message()
;
2483 }
2484}
2485
2486TEST(APFloatTest, divide)class APFloatTest_divide_Test : public ::testing::Test { public
: APFloatTest_divide_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_divide_Test(APFloatTest_divide_Test const
&); void operator=(APFloatTest_divide_Test const &);
};::testing::TestInfo* const APFloatTest_divide_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "divide", __null, __null, (::testing::internal::GetTestTypeId
()), ::testing::Test::SetUpTestCase, ::testing::Test::TearDownTestCase
, new ::testing::internal::TestFactoryImpl< APFloatTest_divide_Test
>);void APFloatTest_divide_Test::TestBody()
{
2487 // Test Special Cases against each other and normal values.
2488
2489 // TODOS/NOTES:
2490 // 1. Since we perform only default exception handling all operations with
2491 // signaling NaNs should have a result that is a quiet NaN. Currently they
2492 // return sNaN.
2493
2494 APFloat PInf = APFloat::getInf(APFloat::IEEEsingle, false);
2495 APFloat MInf = APFloat::getInf(APFloat::IEEEsingle, true);
2496 APFloat PZero = APFloat::getZero(APFloat::IEEEsingle, false);
2497 APFloat MZero = APFloat::getZero(APFloat::IEEEsingle, true);
2498 APFloat QNaN = APFloat::getNaN(APFloat::IEEEsingle, false);
2499 APFloat SNaN = APFloat::getSNaN(APFloat::IEEEsingle, false);
2500 APFloat PNormalValue = APFloat(APFloat::IEEEsingle, "0x1p+0");
2501 APFloat MNormalValue = APFloat(APFloat::IEEEsingle, "-0x1p+0");
2502 APFloat PLargestValue = APFloat::getLargest(APFloat::IEEEsingle, false);
2503 APFloat MLargestValue = APFloat::getLargest(APFloat::IEEEsingle, true);
2504 APFloat PSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, false);
2505 APFloat MSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, true);
2506 APFloat PSmallestNormalized =
2507 APFloat::getSmallestNormalized(APFloat::IEEEsingle, false);
2508 APFloat MSmallestNormalized =
2509 APFloat::getSmallestNormalized(APFloat::IEEEsingle, true);
2510
2511 const int OverflowStatus = APFloat::opOverflow | APFloat::opInexact;
2512 const int UnderflowStatus = APFloat::opUnderflow | APFloat::opInexact;
2513
2514 const unsigned NumTests = 169;
2515 struct {
2516 APFloat x;
2517 APFloat y;
2518 const char *result;
2519 int status;
2520 int category;
2521 } SpecialCaseTests[NumTests] = {
2522 { PInf, PInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2523 { PInf, MInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2524 { PInf, PZero, "inf", APFloat::opOK, APFloat::fcInfinity },
2525 { PInf, MZero, "-inf", APFloat::opOK, APFloat::fcInfinity },
2526 { PInf, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2527#if 0
2528// See Note 1.
2529 { PInf, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2530#endif
2531 { PInf, PNormalValue, "inf", APFloat::opOK, APFloat::fcInfinity },
2532 { PInf, MNormalValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
2533 { PInf, PLargestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
2534 { PInf, MLargestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
2535 { PInf, PSmallestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
2536 { PInf, MSmallestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
2537 { PInf, PSmallestNormalized, "inf", APFloat::opOK, APFloat::fcInfinity },
2538 { PInf, MSmallestNormalized, "-inf", APFloat::opOK, APFloat::fcInfinity },
2539 { MInf, PInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2540 { MInf, MInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2541 { MInf, PZero, "-inf", APFloat::opOK, APFloat::fcInfinity },
2542 { MInf, MZero, "inf", APFloat::opOK, APFloat::fcInfinity },
2543 { MInf, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2544#if 0
2545// See Note 1.
2546 { MInf, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2547#endif
2548 { MInf, PNormalValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
2549 { MInf, MNormalValue, "inf", APFloat::opOK, APFloat::fcInfinity },
2550 { MInf, PLargestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
2551 { MInf, MLargestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
2552 { MInf, PSmallestValue, "-inf", APFloat::opOK, APFloat::fcInfinity },
2553 { MInf, MSmallestValue, "inf", APFloat::opOK, APFloat::fcInfinity },
2554 { MInf, PSmallestNormalized, "-inf", APFloat::opOK, APFloat::fcInfinity },
2555 { MInf, MSmallestNormalized, "inf", APFloat::opOK, APFloat::fcInfinity },
2556 { PZero, PInf, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2557 { PZero, MInf, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2558 { PZero, PZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2559 { PZero, MZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2560 { PZero, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2561#if 0
2562// See Note 1.
2563 { PZero, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2564#endif
2565 { PZero, PNormalValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2566 { PZero, MNormalValue, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2567 { PZero, PLargestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2568 { PZero, MLargestValue, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2569 { PZero, PSmallestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2570 { PZero, MSmallestValue, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2571 { PZero, PSmallestNormalized, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2572 { PZero, MSmallestNormalized, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2573 { MZero, PInf, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2574 { MZero, MInf, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2575 { MZero, PZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2576 { MZero, MZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2577 { MZero, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2578#if 0
2579// See Note 1.
2580 { MZero, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2581#endif
2582 { MZero, PNormalValue, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2583 { MZero, MNormalValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2584 { MZero, PLargestValue, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2585 { MZero, MLargestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2586 { MZero, PSmallestValue, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2587 { MZero, MSmallestValue, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2588 { MZero, PSmallestNormalized, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2589 { MZero, MSmallestNormalized, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2590 { QNaN, PInf, "nan", APFloat::opOK, APFloat::fcNaN },
2591 { QNaN, MInf, "nan", APFloat::opOK, APFloat::fcNaN },
2592 { QNaN, PZero, "nan", APFloat::opOK, APFloat::fcNaN },
2593 { QNaN, MZero, "nan", APFloat::opOK, APFloat::fcNaN },
2594 { QNaN, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2595#if 0
2596// See Note 1.
2597 { QNaN, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2598#endif
2599 { QNaN, PNormalValue, "nan", APFloat::opOK, APFloat::fcNaN },
2600 { QNaN, MNormalValue, "nan", APFloat::opOK, APFloat::fcNaN },
2601 { QNaN, PLargestValue, "nan", APFloat::opOK, APFloat::fcNaN },
2602 { QNaN, MLargestValue, "nan", APFloat::opOK, APFloat::fcNaN },
2603 { QNaN, PSmallestValue, "nan", APFloat::opOK, APFloat::fcNaN },
2604 { QNaN, MSmallestValue, "nan", APFloat::opOK, APFloat::fcNaN },
2605 { QNaN, PSmallestNormalized, "nan", APFloat::opOK, APFloat::fcNaN },
2606 { QNaN, MSmallestNormalized, "nan", APFloat::opOK, APFloat::fcNaN },
2607#if 0
2608// See Note 1.
2609 { SNaN, PInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2610 { SNaN, MInf, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2611 { SNaN, PZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2612 { SNaN, MZero, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2613 { SNaN, QNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2614 { SNaN, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2615 { SNaN, PNormalValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2616 { SNaN, MNormalValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2617 { SNaN, PLargestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2618 { SNaN, MLargestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2619 { SNaN, PSmallestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2620 { SNaN, MSmallestValue, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2621 { SNaN, PSmallestNormalized, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2622 { SNaN, MSmallestNormalized, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2623#endif
2624 { PNormalValue, PInf, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2625 { PNormalValue, MInf, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2626 { PNormalValue, PZero, "inf", APFloat::opDivByZero, APFloat::fcInfinity },
2627 { PNormalValue, MZero, "-inf", APFloat::opDivByZero, APFloat::fcInfinity },
2628 { PNormalValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2629#if 0
2630// See Note 1.
2631 { PNormalValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2632#endif
2633 { PNormalValue, PNormalValue, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2634 { PNormalValue, MNormalValue, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2635 { PNormalValue, PLargestValue, "0x1p-128", UnderflowStatus, APFloat::fcNormal },
2636 { PNormalValue, MLargestValue, "-0x1p-128", UnderflowStatus, APFloat::fcNormal },
2637 { PNormalValue, PSmallestValue, "inf", OverflowStatus, APFloat::fcInfinity },
2638 { PNormalValue, MSmallestValue, "-inf", OverflowStatus, APFloat::fcInfinity },
2639 { PNormalValue, PSmallestNormalized, "0x1p+126", APFloat::opOK, APFloat::fcNormal },
2640 { PNormalValue, MSmallestNormalized, "-0x1p+126", APFloat::opOK, APFloat::fcNormal },
2641 { MNormalValue, PInf, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2642 { MNormalValue, MInf, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2643 { MNormalValue, PZero, "-inf", APFloat::opDivByZero, APFloat::fcInfinity },
2644 { MNormalValue, MZero, "inf", APFloat::opDivByZero, APFloat::fcInfinity },
2645 { MNormalValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2646#if 0
2647// See Note 1.
2648 { MNormalValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2649#endif
2650 { MNormalValue, PNormalValue, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2651 { MNormalValue, MNormalValue, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2652 { MNormalValue, PLargestValue, "-0x1p-128", UnderflowStatus, APFloat::fcNormal },
2653 { MNormalValue, MLargestValue, "0x1p-128", UnderflowStatus, APFloat::fcNormal },
2654 { MNormalValue, PSmallestValue, "-inf", OverflowStatus, APFloat::fcInfinity },
2655 { MNormalValue, MSmallestValue, "inf", OverflowStatus, APFloat::fcInfinity },
2656 { MNormalValue, PSmallestNormalized, "-0x1p+126", APFloat::opOK, APFloat::fcNormal },
2657 { MNormalValue, MSmallestNormalized, "0x1p+126", APFloat::opOK, APFloat::fcNormal },
2658 { PLargestValue, PInf, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2659 { PLargestValue, MInf, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2660 { PLargestValue, PZero, "inf", APFloat::opDivByZero, APFloat::fcInfinity },
2661 { PLargestValue, MZero, "-inf", APFloat::opDivByZero, APFloat::fcInfinity },
2662 { PLargestValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2663#if 0
2664// See Note 1.
2665 { PLargestValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2666#endif
2667 { PLargestValue, PNormalValue, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2668 { PLargestValue, MNormalValue, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2669 { PLargestValue, PLargestValue, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2670 { PLargestValue, MLargestValue, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2671 { PLargestValue, PSmallestValue, "inf", OverflowStatus, APFloat::fcInfinity },
2672 { PLargestValue, MSmallestValue, "-inf", OverflowStatus, APFloat::fcInfinity },
2673 { PLargestValue, PSmallestNormalized, "inf", OverflowStatus, APFloat::fcInfinity },
2674 { PLargestValue, MSmallestNormalized, "-inf", OverflowStatus, APFloat::fcInfinity },
2675 { MLargestValue, PInf, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2676 { MLargestValue, MInf, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2677 { MLargestValue, PZero, "-inf", APFloat::opDivByZero, APFloat::fcInfinity },
2678 { MLargestValue, MZero, "inf", APFloat::opDivByZero, APFloat::fcInfinity },
2679 { MLargestValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2680#if 0
2681// See Note 1.
2682 { MLargestValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2683#endif
2684 { MLargestValue, PNormalValue, "-0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2685 { MLargestValue, MNormalValue, "0x1.fffffep+127", APFloat::opOK, APFloat::fcNormal },
2686 { MLargestValue, PLargestValue, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2687 { MLargestValue, MLargestValue, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2688 { MLargestValue, PSmallestValue, "-inf", OverflowStatus, APFloat::fcInfinity },
2689 { MLargestValue, MSmallestValue, "inf", OverflowStatus, APFloat::fcInfinity },
2690 { MLargestValue, PSmallestNormalized, "-inf", OverflowStatus, APFloat::fcInfinity },
2691 { MLargestValue, MSmallestNormalized, "inf", OverflowStatus, APFloat::fcInfinity },
2692 { PSmallestValue, PInf, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2693 { PSmallestValue, MInf, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2694 { PSmallestValue, PZero, "inf", APFloat::opDivByZero, APFloat::fcInfinity },
2695 { PSmallestValue, MZero, "-inf", APFloat::opDivByZero, APFloat::fcInfinity },
2696 { PSmallestValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2697#if 0
2698// See Note 1.
2699 { PSmallestValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2700#endif
2701 { PSmallestValue, PNormalValue, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
2702 { PSmallestValue, MNormalValue, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
2703 { PSmallestValue, PLargestValue, "0x0p+0", UnderflowStatus, APFloat::fcZero },
2704 { PSmallestValue, MLargestValue, "-0x0p+0", UnderflowStatus, APFloat::fcZero },
2705 { PSmallestValue, PSmallestValue, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2706 { PSmallestValue, MSmallestValue, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2707 { PSmallestValue, PSmallestNormalized, "0x1p-23", APFloat::opOK, APFloat::fcNormal },
2708 { PSmallestValue, MSmallestNormalized, "-0x1p-23", APFloat::opOK, APFloat::fcNormal },
2709 { MSmallestValue, PInf, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2710 { MSmallestValue, MInf, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2711 { MSmallestValue, PZero, "-inf", APFloat::opDivByZero, APFloat::fcInfinity },
2712 { MSmallestValue, MZero, "inf", APFloat::opDivByZero, APFloat::fcInfinity },
2713 { MSmallestValue, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2714#if 0
2715// See Note 1.
2716 { MSmallestValue, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2717#endif
2718 { MSmallestValue, PNormalValue, "-0x1p-149", APFloat::opOK, APFloat::fcNormal },
2719 { MSmallestValue, MNormalValue, "0x1p-149", APFloat::opOK, APFloat::fcNormal },
2720 { MSmallestValue, PLargestValue, "-0x0p+0", UnderflowStatus, APFloat::fcZero },
2721 { MSmallestValue, MLargestValue, "0x0p+0", UnderflowStatus, APFloat::fcZero },
2722 { MSmallestValue, PSmallestValue, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2723 { MSmallestValue, MSmallestValue, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2724 { MSmallestValue, PSmallestNormalized, "-0x1p-23", APFloat::opOK, APFloat::fcNormal },
2725 { MSmallestValue, MSmallestNormalized, "0x1p-23", APFloat::opOK, APFloat::fcNormal },
2726 { PSmallestNormalized, PInf, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2727 { PSmallestNormalized, MInf, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2728 { PSmallestNormalized, PZero, "inf", APFloat::opDivByZero, APFloat::fcInfinity },
2729 { PSmallestNormalized, MZero, "-inf", APFloat::opDivByZero, APFloat::fcInfinity },
2730 { PSmallestNormalized, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2731#if 0
2732// See Note 1.
2733 { PSmallestNormalized, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2734#endif
2735 { PSmallestNormalized, PNormalValue, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
2736 { PSmallestNormalized, MNormalValue, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
2737 { PSmallestNormalized, PLargestValue, "0x0p+0", UnderflowStatus, APFloat::fcZero },
2738 { PSmallestNormalized, MLargestValue, "-0x0p+0", UnderflowStatus, APFloat::fcZero },
2739 { PSmallestNormalized, PSmallestValue, "0x1p+23", APFloat::opOK, APFloat::fcNormal },
2740 { PSmallestNormalized, MSmallestValue, "-0x1p+23", APFloat::opOK, APFloat::fcNormal },
2741 { PSmallestNormalized, PSmallestNormalized, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2742 { PSmallestNormalized, MSmallestNormalized, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2743 { MSmallestNormalized, PInf, "-0x0p+0", APFloat::opOK, APFloat::fcZero },
2744 { MSmallestNormalized, MInf, "0x0p+0", APFloat::opOK, APFloat::fcZero },
2745 { MSmallestNormalized, PZero, "-inf", APFloat::opDivByZero, APFloat::fcInfinity },
2746 { MSmallestNormalized, MZero, "inf", APFloat::opDivByZero, APFloat::fcInfinity },
2747 { MSmallestNormalized, QNaN, "nan", APFloat::opOK, APFloat::fcNaN },
2748#if 0
2749// See Note 1.
2750 { MSmallestNormalized, SNaN, "nan", APFloat::opInvalidOp, APFloat::fcNaN },
2751#endif
2752 { MSmallestNormalized, PNormalValue, "-0x1p-126", APFloat::opOK, APFloat::fcNormal },
2753 { MSmallestNormalized, MNormalValue, "0x1p-126", APFloat::opOK, APFloat::fcNormal },
2754 { MSmallestNormalized, PLargestValue, "-0x0p+0", UnderflowStatus, APFloat::fcZero },
2755 { MSmallestNormalized, MLargestValue, "0x0p+0", UnderflowStatus, APFloat::fcZero },
2756 { MSmallestNormalized, PSmallestValue, "-0x1p+23", APFloat::opOK, APFloat::fcNormal },
2757 { MSmallestNormalized, MSmallestValue, "0x1p+23", APFloat::opOK, APFloat::fcNormal },
2758 { MSmallestNormalized, PSmallestNormalized, "-0x1p+0", APFloat::opOK, APFloat::fcNormal },
2759 { MSmallestNormalized, MSmallestNormalized, "0x1p+0", APFloat::opOK, APFloat::fcNormal },
2760 };
2761
2762 for (size_t i = 0; i < NumTests; ++i) {
2763 APFloat x(SpecialCaseTests[i].x);
2764 APFloat y(SpecialCaseTests[i].y);
2765 APFloat::opStatus status = x.divide(y, APFloat::rmNearestTiesToEven);
2766
2767 APFloat result(APFloat::IEEEsingle, SpecialCaseTests[i].result);
2768
2769 EXPECT_TRUE(result.bitwiseIsEqual(x))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(result.bitwiseIsEqual
(x))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2769, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "result.bitwiseIsEqual(x)", "false", "true").c_str()) = ::testing
::Message()
;
2770 EXPECT_TRUE((int)status == SpecialCaseTests[i].status)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult((int)status == SpecialCaseTests
[i].status)) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2770, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "(int)status == SpecialCaseTests[i].status", "false", "true"
).c_str()) = ::testing::Message()
;
2771 EXPECT_TRUE((int)x.getCategory() == SpecialCaseTests[i].category)switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult((int)x.getCategory() ==
SpecialCaseTests[i].category)) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2771, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "(int)x.getCategory() == SpecialCaseTests[i].category", "false"
, "true").c_str()) = ::testing::Message()
;
2772 }
2773}
2774
2775TEST(APFloatTest, operatorOverloads)class APFloatTest_operatorOverloads_Test : public ::testing::
Test { public: APFloatTest_operatorOverloads_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); APFloatTest_operatorOverloads_Test
(APFloatTest_operatorOverloads_Test const &); void operator
=(APFloatTest_operatorOverloads_Test const &);};::testing
::TestInfo* const APFloatTest_operatorOverloads_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "operatorOverloads", __null, __null, (::testing::internal::
GetTestTypeId()), ::testing::Test::SetUpTestCase, ::testing::
Test::TearDownTestCase, new ::testing::internal::TestFactoryImpl
< APFloatTest_operatorOverloads_Test>);void APFloatTest_operatorOverloads_Test
::TestBody()
{
2776 // This is mostly testing that these operator overloads compile.
2777 APFloat One = APFloat(APFloat::IEEEsingle, "0x1p+0");
2778 APFloat Two = APFloat(APFloat::IEEEsingle, "0x2p+0");
2779 EXPECT_TRUE(Two.bitwiseIsEqual(One + One))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(Two.bitwiseIsEqual(One
+ One))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2779, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "Two.bitwiseIsEqual(One + One)", "false", "true").c_str()) =
::testing::Message()
;
2780 EXPECT_TRUE(One.bitwiseIsEqual(Two - One))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(One.bitwiseIsEqual(Two
- One))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2780, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "One.bitwiseIsEqual(Two - One)", "false", "true").c_str()) =
::testing::Message()
;
2781 EXPECT_TRUE(Two.bitwiseIsEqual(One * Two))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(Two.bitwiseIsEqual(One
* Two))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2781, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "Two.bitwiseIsEqual(One * Two)", "false", "true").c_str()) =
::testing::Message()
;
2782 EXPECT_TRUE(One.bitwiseIsEqual(Two / Two))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(One.bitwiseIsEqual(Two
/ Two))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2782, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "One.bitwiseIsEqual(Two / Two)", "false", "true").c_str()) =
::testing::Message()
;
2783}
2784
2785TEST(APFloatTest, abs)class APFloatTest_abs_Test : public ::testing::Test { public:
APFloatTest_abs_Test() {} private: virtual void TestBody(); static
::testing::TestInfo* const test_info_ __attribute__ ((unused
)); APFloatTest_abs_Test(APFloatTest_abs_Test const &); void
operator=(APFloatTest_abs_Test const &);};::testing::TestInfo
* const APFloatTest_abs_Test ::test_info_ = ::testing::internal
::MakeAndRegisterTestInfo( "APFloatTest", "abs", __null, __null
, (::testing::internal::GetTestTypeId()), ::testing::Test::SetUpTestCase
, ::testing::Test::TearDownTestCase, new ::testing::internal::
TestFactoryImpl< APFloatTest_abs_Test>);void APFloatTest_abs_Test
::TestBody()
{
2786 APFloat PInf = APFloat::getInf(APFloat::IEEEsingle, false);
2787 APFloat MInf = APFloat::getInf(APFloat::IEEEsingle, true);
2788 APFloat PZero = APFloat::getZero(APFloat::IEEEsingle, false);
2789 APFloat MZero = APFloat::getZero(APFloat::IEEEsingle, true);
2790 APFloat PQNaN = APFloat::getNaN(APFloat::IEEEsingle, false);
2791 APFloat MQNaN = APFloat::getNaN(APFloat::IEEEsingle, true);
2792 APFloat PSNaN = APFloat::getSNaN(APFloat::IEEEsingle, false);
2793 APFloat MSNaN = APFloat::getSNaN(APFloat::IEEEsingle, true);
2794 APFloat PNormalValue = APFloat(APFloat::IEEEsingle, "0x1p+0");
2795 APFloat MNormalValue = APFloat(APFloat::IEEEsingle, "-0x1p+0");
2796 APFloat PLargestValue = APFloat::getLargest(APFloat::IEEEsingle, false);
2797 APFloat MLargestValue = APFloat::getLargest(APFloat::IEEEsingle, true);
2798 APFloat PSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, false);
2799 APFloat MSmallestValue = APFloat::getSmallest(APFloat::IEEEsingle, true);
2800 APFloat PSmallestNormalized =
2801 APFloat::getSmallestNormalized(APFloat::IEEEsingle, false);
2802 APFloat MSmallestNormalized =
2803 APFloat::getSmallestNormalized(APFloat::IEEEsingle, true);
2804
2805 EXPECT_TRUE(PInf.bitwiseIsEqual(abs(PInf)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PInf.bitwiseIsEqual(abs
(PInf)))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2805, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PInf.bitwiseIsEqual(abs(PInf))", "false", "true").c_str())
= ::testing::Message()
;
2806 EXPECT_TRUE(PInf.bitwiseIsEqual(abs(MInf)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PInf.bitwiseIsEqual(abs
(MInf)))) ; else ::testing::internal::AssertHelper(::testing::
TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2806, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PInf.bitwiseIsEqual(abs(MInf))", "false", "true").c_str())
= ::testing::Message()
;
2807 EXPECT_TRUE(PZero.bitwiseIsEqual(abs(PZero)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PZero.bitwiseIsEqual(
abs(PZero)))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2807, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PZero.bitwiseIsEqual(abs(PZero))", "false", "true").c_str(
)) = ::testing::Message()
;
2808 EXPECT_TRUE(PZero.bitwiseIsEqual(abs(MZero)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PZero.bitwiseIsEqual(
abs(MZero)))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2808, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PZero.bitwiseIsEqual(abs(MZero))", "false", "true").c_str(
)) = ::testing::Message()
;
2809 EXPECT_TRUE(PQNaN.bitwiseIsEqual(abs(PQNaN)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PQNaN.bitwiseIsEqual(
abs(PQNaN)))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2809, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PQNaN.bitwiseIsEqual(abs(PQNaN))", "false", "true").c_str(
)) = ::testing::Message()
;
2810 EXPECT_TRUE(PQNaN.bitwiseIsEqual(abs(MQNaN)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PQNaN.bitwiseIsEqual(
abs(MQNaN)))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2810, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PQNaN.bitwiseIsEqual(abs(MQNaN))", "false", "true").c_str(
)) = ::testing::Message()
;
2811 EXPECT_TRUE(PSNaN.bitwiseIsEqual(abs(PSNaN)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PSNaN.bitwiseIsEqual(
abs(PSNaN)))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2811, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PSNaN.bitwiseIsEqual(abs(PSNaN))", "false", "true").c_str(
)) = ::testing::Message()
;
2812 EXPECT_TRUE(PSNaN.bitwiseIsEqual(abs(MSNaN)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PSNaN.bitwiseIsEqual(
abs(MSNaN)))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2812, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PSNaN.bitwiseIsEqual(abs(MSNaN))", "false", "true").c_str(
)) = ::testing::Message()
;
2813 EXPECT_TRUE(PNormalValue.bitwiseIsEqual(abs(PNormalValue)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PNormalValue.bitwiseIsEqual
(abs(PNormalValue)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2813, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PNormalValue.bitwiseIsEqual(abs(PNormalValue))", "false", "true"
).c_str()) = ::testing::Message()
;
2814 EXPECT_TRUE(PNormalValue.bitwiseIsEqual(abs(MNormalValue)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PNormalValue.bitwiseIsEqual
(abs(MNormalValue)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2814, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PNormalValue.bitwiseIsEqual(abs(MNormalValue))", "false", "true"
).c_str()) = ::testing::Message()
;
2815 EXPECT_TRUE(PLargestValue.bitwiseIsEqual(abs(PLargestValue)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PLargestValue.bitwiseIsEqual
(abs(PLargestValue)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2815, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PLargestValue.bitwiseIsEqual(abs(PLargestValue))", "false"
, "true").c_str()) = ::testing::Message()
;
2816 EXPECT_TRUE(PLargestValue.bitwiseIsEqual(abs(MLargestValue)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PLargestValue.bitwiseIsEqual
(abs(MLargestValue)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2816, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PLargestValue.bitwiseIsEqual(abs(MLargestValue))", "false"
, "true").c_str()) = ::testing::Message()
;
2817 EXPECT_TRUE(PSmallestValue.bitwiseIsEqual(abs(PSmallestValue)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PSmallestValue.bitwiseIsEqual
(abs(PSmallestValue)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2817, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PSmallestValue.bitwiseIsEqual(abs(PSmallestValue))", "false"
, "true").c_str()) = ::testing::Message()
;
2818 EXPECT_TRUE(PSmallestValue.bitwiseIsEqual(abs(MSmallestValue)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PSmallestValue.bitwiseIsEqual
(abs(MSmallestValue)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2818, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PSmallestValue.bitwiseIsEqual(abs(MSmallestValue))", "false"
, "true").c_str()) = ::testing::Message()
;
2819 EXPECT_TRUE(PSmallestNormalized.bitwiseIsEqual(abs(PSmallestNormalized)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PSmallestNormalized.bitwiseIsEqual
(abs(PSmallestNormalized)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2819, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PSmallestNormalized.bitwiseIsEqual(abs(PSmallestNormalized))"
, "false", "true").c_str()) = ::testing::Message()
;
2820 EXPECT_TRUE(PSmallestNormalized.bitwiseIsEqual(abs(MSmallestNormalized)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PSmallestNormalized.bitwiseIsEqual
(abs(MSmallestNormalized)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2820, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PSmallestNormalized.bitwiseIsEqual(abs(MSmallestNormalized))"
, "false", "true").c_str()) = ::testing::Message()
;
2821}
2822
2823TEST(APFloatTest, ilogb)class APFloatTest_ilogb_Test : public ::testing::Test { public
: APFloatTest_ilogb_Test() {} private: virtual void TestBody(
); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_ilogb_Test(APFloatTest_ilogb_Test const
&); void operator=(APFloatTest_ilogb_Test const &);}
;::testing::TestInfo* const APFloatTest_ilogb_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "ilogb", __null, __null, (::testing::internal::GetTestTypeId
()), ::testing::Test::SetUpTestCase, ::testing::Test::TearDownTestCase
, new ::testing::internal::TestFactoryImpl< APFloatTest_ilogb_Test
>);void APFloatTest_ilogb_Test::TestBody()
{
2824 EXPECT_EQ(0, ilogb(APFloat(APFloat::IEEEsingle, "0x1p+0")))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0)) == 1)>::Compare("0", "ilogb(APFloat(APFloat::IEEEsingle, \"0x1p+0\"))"
, 0, ilogb(APFloat(APFloat::IEEEsingle, "0x1p+0"))))) ; else ::
testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2824, gtest_ar.failure_message()) = ::testing::Message()
;
2825 EXPECT_EQ(0, ilogb(APFloat(APFloat::IEEEsingle, "-0x1p+0")))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0)) == 1)>::Compare("0", "ilogb(APFloat(APFloat::IEEEsingle, \"-0x1p+0\"))"
, 0, ilogb(APFloat(APFloat::IEEEsingle, "-0x1p+0"))))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2825, gtest_ar.failure_message()) = ::testing::Message()
;
2826 EXPECT_EQ(42, ilogb(APFloat(APFloat::IEEEsingle, "0x1p+42")))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(42)) == 1)>::Compare("42",
"ilogb(APFloat(APFloat::IEEEsingle, \"0x1p+42\"))", 42, ilogb
(APFloat(APFloat::IEEEsingle, "0x1p+42"))))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2826, gtest_ar.failure_message()) = ::testing::Message()
;
2827 EXPECT_EQ(-42, ilogb(APFloat(APFloat::IEEEsingle, "0x1p-42")))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-42)) == 1)>::Compare("-42"
, "ilogb(APFloat(APFloat::IEEEsingle, \"0x1p-42\"))", -42, ilogb
(APFloat(APFloat::IEEEsingle, "0x1p-42"))))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2827, gtest_ar.failure_message()) = ::testing::Message()
;
2828
2829 EXPECT_EQ(APFloat::IEK_Inf,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::IEK_Inf)) == 1)>::
Compare("APFloat::IEK_Inf", "ilogb(APFloat::getInf(APFloat::IEEEsingle, false))"
, APFloat::IEK_Inf, ilogb(APFloat::getInf(APFloat::IEEEsingle
, false))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2830, gtest_ar.failure_message()) = ::testing::Message()
2830 ilogb(APFloat::getInf(APFloat::IEEEsingle, false)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::IEK_Inf)) == 1)>::
Compare("APFloat::IEK_Inf", "ilogb(APFloat::getInf(APFloat::IEEEsingle, false))"
, APFloat::IEK_Inf, ilogb(APFloat::getInf(APFloat::IEEEsingle
, false))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2830, gtest_ar.failure_message()) = ::testing::Message()
;
2831 EXPECT_EQ(APFloat::IEK_Inf,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::IEK_Inf)) == 1)>::
Compare("APFloat::IEK_Inf", "ilogb(APFloat::getInf(APFloat::IEEEsingle, true))"
, APFloat::IEK_Inf, ilogb(APFloat::getInf(APFloat::IEEEsingle
, true))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2832, gtest_ar.failure_message()) = ::testing::Message()
2832 ilogb(APFloat::getInf(APFloat::IEEEsingle, true)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::IEK_Inf)) == 1)>::
Compare("APFloat::IEK_Inf", "ilogb(APFloat::getInf(APFloat::IEEEsingle, true))"
, APFloat::IEK_Inf, ilogb(APFloat::getInf(APFloat::IEEEsingle
, true))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2832, gtest_ar.failure_message()) = ::testing::Message()
;
2833 EXPECT_EQ(APFloat::IEK_Zero,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::IEK_Zero)) == 1)>
::Compare("APFloat::IEK_Zero", "ilogb(APFloat::getZero(APFloat::IEEEsingle, false))"
, APFloat::IEK_Zero, ilogb(APFloat::getZero(APFloat::IEEEsingle
, false))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2834, gtest_ar.failure_message()) = ::testing::Message()
2834 ilogb(APFloat::getZero(APFloat::IEEEsingle, false)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::IEK_Zero)) == 1)>
::Compare("APFloat::IEK_Zero", "ilogb(APFloat::getZero(APFloat::IEEEsingle, false))"
, APFloat::IEK_Zero, ilogb(APFloat::getZero(APFloat::IEEEsingle
, false))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2834, gtest_ar.failure_message()) = ::testing::Message()
;
2835 EXPECT_EQ(APFloat::IEK_Zero,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::IEK_Zero)) == 1)>
::Compare("APFloat::IEK_Zero", "ilogb(APFloat::getZero(APFloat::IEEEsingle, true))"
, APFloat::IEK_Zero, ilogb(APFloat::getZero(APFloat::IEEEsingle
, true))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2836, gtest_ar.failure_message()) = ::testing::Message()
2836 ilogb(APFloat::getZero(APFloat::IEEEsingle, true)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::IEK_Zero)) == 1)>
::Compare("APFloat::IEK_Zero", "ilogb(APFloat::getZero(APFloat::IEEEsingle, true))"
, APFloat::IEK_Zero, ilogb(APFloat::getZero(APFloat::IEEEsingle
, true))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2836, gtest_ar.failure_message()) = ::testing::Message()
;
2837 EXPECT_EQ(APFloat::IEK_NaN,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::IEK_NaN)) == 1)>::
Compare("APFloat::IEK_NaN", "ilogb(APFloat::getNaN(APFloat::IEEEsingle, false))"
, APFloat::IEK_NaN, ilogb(APFloat::getNaN(APFloat::IEEEsingle
, false))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2838, gtest_ar.failure_message()) = ::testing::Message()
2838 ilogb(APFloat::getNaN(APFloat::IEEEsingle, false)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::IEK_NaN)) == 1)>::
Compare("APFloat::IEK_NaN", "ilogb(APFloat::getNaN(APFloat::IEEEsingle, false))"
, APFloat::IEK_NaN, ilogb(APFloat::getNaN(APFloat::IEEEsingle
, false))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2838, gtest_ar.failure_message()) = ::testing::Message()
;
2839 EXPECT_EQ(APFloat::IEK_NaN,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::IEK_NaN)) == 1)>::
Compare("APFloat::IEK_NaN", "ilogb(APFloat::getSNaN(APFloat::IEEEsingle, false))"
, APFloat::IEK_NaN, ilogb(APFloat::getSNaN(APFloat::IEEEsingle
, false))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2840, gtest_ar.failure_message()) = ::testing::Message()
2840 ilogb(APFloat::getSNaN(APFloat::IEEEsingle, false)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(APFloat::IEK_NaN)) == 1)>::
Compare("APFloat::IEK_NaN", "ilogb(APFloat::getSNaN(APFloat::IEEEsingle, false))"
, APFloat::IEK_NaN, ilogb(APFloat::getSNaN(APFloat::IEEEsingle
, false))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2840, gtest_ar.failure_message()) = ::testing::Message()
;
2841
2842 EXPECT_EQ(127, ilogb(APFloat::getLargest(APFloat::IEEEsingle, false)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(127)) == 1)>::Compare("127"
, "ilogb(APFloat::getLargest(APFloat::IEEEsingle, false))", 127
, ilogb(APFloat::getLargest(APFloat::IEEEsingle, false))))) ;
else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2842, gtest_ar.failure_message()) = ::testing::Message()
;
2843 EXPECT_EQ(127, ilogb(APFloat::getLargest(APFloat::IEEEsingle, true)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(127)) == 1)>::Compare("127"
, "ilogb(APFloat::getLargest(APFloat::IEEEsingle, true))", 127
, ilogb(APFloat::getLargest(APFloat::IEEEsingle, true))))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2843, gtest_ar.failure_message()) = ::testing::Message()
;
2844 EXPECT_EQ(-126, ilogb(APFloat::getSmallest(APFloat::IEEEsingle, false)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-126)) == 1)>::Compare("-126"
, "ilogb(APFloat::getSmallest(APFloat::IEEEsingle, false))", -
126, ilogb(APFloat::getSmallest(APFloat::IEEEsingle, false)))
)) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2844, gtest_ar.failure_message()) = ::testing::Message()
;
2845 EXPECT_EQ(-126, ilogb(APFloat::getSmallest(APFloat::IEEEsingle, true)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-126)) == 1)>::Compare("-126"
, "ilogb(APFloat::getSmallest(APFloat::IEEEsingle, true))", -
126, ilogb(APFloat::getSmallest(APFloat::IEEEsingle, true))))
) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2845, gtest_ar.failure_message()) = ::testing::Message()
;
2846 EXPECT_EQ(-126,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-126)) == 1)>::Compare("-126"
, "ilogb(APFloat::getSmallestNormalized(APFloat::IEEEsingle, false))"
, -126, ilogb(APFloat::getSmallestNormalized(APFloat::IEEEsingle
, false))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2847, gtest_ar.failure_message()) = ::testing::Message()
2847 ilogb(APFloat::getSmallestNormalized(APFloat::IEEEsingle, false)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-126)) == 1)>::Compare("-126"
, "ilogb(APFloat::getSmallestNormalized(APFloat::IEEEsingle, false))"
, -126, ilogb(APFloat::getSmallestNormalized(APFloat::IEEEsingle
, false))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2847, gtest_ar.failure_message()) = ::testing::Message()
;
2848 EXPECT_EQ(-126,switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-126)) == 1)>::Compare("-126"
, "ilogb(APFloat::getSmallestNormalized(APFloat::IEEEsingle, true))"
, -126, ilogb(APFloat::getSmallestNormalized(APFloat::IEEEsingle
, true))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2849, gtest_ar.failure_message()) = ::testing::Message()
2849 ilogb(APFloat::getSmallestNormalized(APFloat::IEEEsingle, true)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(-126)) == 1)>::Compare("-126"
, "ilogb(APFloat::getSmallestNormalized(APFloat::IEEEsingle, true))"
, -126, ilogb(APFloat::getSmallestNormalized(APFloat::IEEEsingle
, true))))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2849, gtest_ar.failure_message()) = ::testing::Message()
;
2850}
2851
2852TEST(APFloatTest, scalbn)class APFloatTest_scalbn_Test : public ::testing::Test { public
: APFloatTest_scalbn_Test() {} private: virtual void TestBody
(); static ::testing::TestInfo* const test_info_ __attribute__
((unused)); APFloatTest_scalbn_Test(APFloatTest_scalbn_Test const
&); void operator=(APFloatTest_scalbn_Test const &);
};::testing::TestInfo* const APFloatTest_scalbn_Test ::test_info_
= ::testing::internal::MakeAndRegisterTestInfo( "APFloatTest"
, "scalbn", __null, __null, (::testing::internal::GetTestTypeId
()), ::testing::Test::SetUpTestCase, ::testing::Test::TearDownTestCase
, new ::testing::internal::TestFactoryImpl< APFloatTest_scalbn_Test
>);void APFloatTest_scalbn_Test::TestBody()
{
2853 EXPECT_TRUE(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "0x1p+0") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle
, "0x1p+0"), 0)))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2855, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p+0\") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), 0))"
, "false", "true").c_str()) = ::testing::Message()
2854 APFloat(APFloat::IEEEsingle, "0x1p+0")switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "0x1p+0") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle
, "0x1p+0"), 0)))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2855, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p+0\") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), 0))"
, "false", "true").c_str()) = ::testing::Message()
2855 .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, "0x1p+0"), 0)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "0x1p+0") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle
, "0x1p+0"), 0)))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2855, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p+0\") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), 0))"
, "false", "true").c_str()) = ::testing::Message()
;
2856 EXPECT_TRUE(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "0x1p+42") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle
, "0x1p+0"), 42)))) ; else ::testing::internal::AssertHelper(
::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2858, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p+42\") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), 42))"
, "false", "true").c_str()) = ::testing::Message()
2857 APFloat(APFloat::IEEEsingle, "0x1p+42")switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "0x1p+42") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle
, "0x1p+0"), 42)))) ; else ::testing::internal::AssertHelper(
::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2858, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p+42\") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), 42))"
, "false", "true").c_str()) = ::testing::Message()
2858 .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, "0x1p+0"), 42)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "0x1p+42") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle
, "0x1p+0"), 42)))) ; else ::testing::internal::AssertHelper(
::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2858, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p+42\") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), 42))"
, "false", "true").c_str()) = ::testing::Message()
;
2859 EXPECT_TRUE(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "0x1p-42") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle
, "0x1p+0"), -42)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2861, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p-42\") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), -42))"
, "false", "true").c_str()) = ::testing::Message()
2860 APFloat(APFloat::IEEEsingle, "0x1p-42")switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "0x1p-42") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle
, "0x1p+0"), -42)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2861, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p-42\") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), -42))"
, "false", "true").c_str()) = ::testing::Message()
2861 .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, "0x1p+0"), -42)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(APFloat(APFloat::IEEEsingle
, "0x1p-42") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle
, "0x1p+0"), -42)))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2861, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "APFloat(APFloat::IEEEsingle, \"0x1p-42\") .bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), -42))"
, "false", "true").c_str()) = ::testing::Message()
;
2862
2863 APFloat PInf = APFloat::getInf(APFloat::IEEEsingle, false);
2864 APFloat MInf = APFloat::getInf(APFloat::IEEEsingle, true);
2865 APFloat PZero = APFloat::getZero(APFloat::IEEEsingle, false);
2866 APFloat MZero = APFloat::getZero(APFloat::IEEEsingle, true);
2867 APFloat QPNaN = APFloat::getNaN(APFloat::IEEEsingle, false);
2868 APFloat QMNaN = APFloat::getNaN(APFloat::IEEEsingle, true);
2869 APFloat SNaN = APFloat::getSNaN(APFloat::IEEEsingle, false);
2870
2871 EXPECT_TRUE(PInf.bitwiseIsEqual(scalbn(PInf, 0)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PInf.bitwiseIsEqual(scalbn
(PInf, 0)))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2871, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PInf.bitwiseIsEqual(scalbn(PInf, 0))", "false", "true").c_str
()) = ::testing::Message()
;
2872 EXPECT_TRUE(MInf.bitwiseIsEqual(scalbn(MInf, 0)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(MInf.bitwiseIsEqual(scalbn
(MInf, 0)))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2872, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "MInf.bitwiseIsEqual(scalbn(MInf, 0))", "false", "true").c_str
()) = ::testing::Message()
;
2873 EXPECT_TRUE(PZero.bitwiseIsEqual(scalbn(PZero, 0)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PZero.bitwiseIsEqual(
scalbn(PZero, 0)))) ; else ::testing::internal::AssertHelper(
::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2873, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PZero.bitwiseIsEqual(scalbn(PZero, 0))", "false", "true").
c_str()) = ::testing::Message()
;
2874 EXPECT_TRUE(MZero.bitwiseIsEqual(scalbn(MZero, 0)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(MZero.bitwiseIsEqual(
scalbn(MZero, 0)))) ; else ::testing::internal::AssertHelper(
::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2874, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "MZero.bitwiseIsEqual(scalbn(MZero, 0))", "false", "true").
c_str()) = ::testing::Message()
;
2875 EXPECT_TRUE(QPNaN.bitwiseIsEqual(scalbn(QPNaN, 0)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(QPNaN.bitwiseIsEqual(
scalbn(QPNaN, 0)))) ; else ::testing::internal::AssertHelper(
::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2875, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "QPNaN.bitwiseIsEqual(scalbn(QPNaN, 0))", "false", "true").
c_str()) = ::testing::Message()
;
2876 EXPECT_TRUE(QMNaN.bitwiseIsEqual(scalbn(QMNaN, 0)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(QMNaN.bitwiseIsEqual(
scalbn(QMNaN, 0)))) ; else ::testing::internal::AssertHelper(
::testing::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2876, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "QMNaN.bitwiseIsEqual(scalbn(QMNaN, 0))", "false", "true").
c_str()) = ::testing::Message()
;
2877 EXPECT_TRUE(SNaN.bitwiseIsEqual(scalbn(SNaN, 0)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(SNaN.bitwiseIsEqual(scalbn
(SNaN, 0)))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2877, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "SNaN.bitwiseIsEqual(scalbn(SNaN, 0))", "false", "true").c_str
()) = ::testing::Message()
;
2878
2879 EXPECT_TRUE(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PInf.bitwiseIsEqual(scalbn
(APFloat(APFloat::IEEEsingle, "0x1p+0"), 128)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2880, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PInf.bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), 128))"
, "false", "true").c_str()) = ::testing::Message()
2880 PInf.bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, "0x1p+0"), 128)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PInf.bitwiseIsEqual(scalbn
(APFloat(APFloat::IEEEsingle, "0x1p+0"), 128)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2880, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PInf.bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), 128))"
, "false", "true").c_str()) = ::testing::Message()
;
2881 EXPECT_TRUE(MInf.bitwiseIsEqual(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(MInf.bitwiseIsEqual( scalbn
(APFloat(APFloat::IEEEsingle, "-0x1p+0"), 128)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2882, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "MInf.bitwiseIsEqual( scalbn(APFloat(APFloat::IEEEsingle, \"-0x1p+0\"), 128))"
, "false", "true").c_str()) = ::testing::Message()
2882 scalbn(APFloat(APFloat::IEEEsingle, "-0x1p+0"), 128)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(MInf.bitwiseIsEqual( scalbn
(APFloat(APFloat::IEEEsingle, "-0x1p+0"), 128)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2882, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "MInf.bitwiseIsEqual( scalbn(APFloat(APFloat::IEEEsingle, \"-0x1p+0\"), 128))"
, "false", "true").c_str()) = ::testing::Message()
;
2883 EXPECT_TRUE(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PInf.bitwiseIsEqual(scalbn
(APFloat(APFloat::IEEEsingle, "0x1p+127"), 1)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2884, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PInf.bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+127\"), 1))"
, "false", "true").c_str()) = ::testing::Message()
2884 PInf.bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, "0x1p+127"), 1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PInf.bitwiseIsEqual(scalbn
(APFloat(APFloat::IEEEsingle, "0x1p+127"), 1)))) ; else ::testing
::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure
, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2884, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PInf.bitwiseIsEqual(scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+127\"), 1))"
, "false", "true").c_str()) = ::testing::Message()
;
2885 EXPECT_TRUE(PZero.bitwiseIsEqual(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PZero.bitwiseIsEqual(
scalbn(APFloat(APFloat::IEEEsingle, "0x1p+0"), -127)))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2886, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PZero.bitwiseIsEqual( scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), -127))"
, "false", "true").c_str()) = ::testing::Message()
2886 scalbn(APFloat(APFloat::IEEEsingle, "0x1p+0"), -127)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PZero.bitwiseIsEqual(
scalbn(APFloat(APFloat::IEEEsingle, "0x1p+0"), -127)))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2886, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PZero.bitwiseIsEqual( scalbn(APFloat(APFloat::IEEEsingle, \"0x1p+0\"), -127))"
, "false", "true").c_str()) = ::testing::Message()
;
2887 EXPECT_TRUE(MZero.bitwiseIsEqual(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(MZero.bitwiseIsEqual(
scalbn(APFloat(APFloat::IEEEsingle, "-0x1p+0"), -127)))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2888, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "MZero.bitwiseIsEqual( scalbn(APFloat(APFloat::IEEEsingle, \"-0x1p+0\"), -127))"
, "false", "true").c_str()) = ::testing::Message()
2888 scalbn(APFloat(APFloat::IEEEsingle, "-0x1p+0"), -127)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(MZero.bitwiseIsEqual(
scalbn(APFloat(APFloat::IEEEsingle, "-0x1p+0"), -127)))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2888, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "MZero.bitwiseIsEqual( scalbn(APFloat(APFloat::IEEEsingle, \"-0x1p+0\"), -127))"
, "false", "true").c_str()) = ::testing::Message()
;
2889 EXPECT_TRUE(PZero.bitwiseIsEqual(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PZero.bitwiseIsEqual(
scalbn(APFloat(APFloat::IEEEsingle, "0x1p-126"), -1)))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2890, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PZero.bitwiseIsEqual( scalbn(APFloat(APFloat::IEEEsingle, \"0x1p-126\"), -1))"
, "false", "true").c_str()) = ::testing::Message()
2890 scalbn(APFloat(APFloat::IEEEsingle, "0x1p-126"), -1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PZero.bitwiseIsEqual(
scalbn(APFloat(APFloat::IEEEsingle, "0x1p-126"), -1)))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2890, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PZero.bitwiseIsEqual( scalbn(APFloat(APFloat::IEEEsingle, \"0x1p-126\"), -1))"
, "false", "true").c_str()) = ::testing::Message()
;
2891 EXPECT_TRUE(PZero.bitwiseIsEqual(switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PZero.bitwiseIsEqual(
scalbn(APFloat(APFloat::IEEEsingle, "0x1p-126"), -1)))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2892, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PZero.bitwiseIsEqual( scalbn(APFloat(APFloat::IEEEsingle, \"0x1p-126\"), -1))"
, "false", "true").c_str()) = ::testing::Message()
2892 scalbn(APFloat(APFloat::IEEEsingle, "0x1p-126"), -1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(PZero.bitwiseIsEqual(
scalbn(APFloat(APFloat::IEEEsingle, "0x1p-126"), -1)))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::
kNonFatalFailure, "/tmp/buildd/llvm-toolchain-snapshot-3.8~svn255820/unittests/ADT/APFloatTest.cpp"
, 2892, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "PZero.bitwiseIsEqual( scalbn(APFloat(APFloat::IEEEsingle, \"0x1p-126\"), -1))"
, "false", "true").c_str()) = ::testing::Message()
;
2893}
2894}