bd7561ea29649625775ef814dded2856d91c4dcf |
|
25-Jan-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
APFloat: Make sure that we get a well-formed x87 NaN when converting from a smaller type. Fixes PR15054. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173459 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
7aa1c321f00d29fdc84e9a03080853aa25dd06fc |
|
07-Jan-2013 |
Shuxin Yang <shuxin.llvm@gmail.com> |
Implement APFloat::isDenormal() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171764 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
5a88dda4be791426ab4d20a6a6c9c65d66614a27 |
|
04-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Sort the #include lines for unittest/... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169250 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
6b370e615ca5b3ef17ed4fe4fa891fab1e2bdd9a |
|
08-Nov-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
Drop the limitation to IEEE floating point types from the fdiv of pow2 -> fmul transform. This is safe for x87 long doubles and ppc double doubles too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167582 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
69c9c8c4cf57d49a0c64507082617f433372831d |
|
29-Oct-2012 |
Ulrich Weigand <ulrich.weigand@de.ibm.com> |
Implement arithmetic on APFloat with PPCDoubleDouble semantics by treating it as if it were an IEEE floating-point type with 106-bit mantissa. This makes compile-time arithmetic on "long double" for PowerPC in clang (in particular parsing of floating point constants) work, and fixes all "long double" related failures in the test suite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166951 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
3e7735fe1c9e8f1cbad1bac02fbb998017fd0cbb |
|
26-Sep-2012 |
Benjamin Kramer <benny.kra@googlemail.com> |
APFloat::roundToIntegral: Special values don't keep the exponent value up to date, don't rely on it. Add a couple of unit tests for special floats. Fixes 13929, found by MemorySanitizer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164698 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
c82cc587a468d44e5cfabfa8f8a639667127845d |
|
15-Aug-2012 |
Owen Anderson <resistor@mac.com> |
Fix another roundToIntegral bug where very large values could become infinity. Problem and solution identified by Steve Canon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161969 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
f7a5dfcb3b68b782543d25ba3151893111ff008f |
|
15-Aug-2012 |
Owen Anderson <resistor@mac.com> |
Fix a problem with APFloat::roundToIntegral where it would return incorrect results for negative inputs to trunc. Add unit tests to verify this behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161929 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
4455142a95bb3d0f6e6cbb336d6558919cb59bb8 |
|
26-Nov-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Fix APFloat::convert so that it handles narrowing conversions correctly; it was returning incorrect values in rare cases, and incorrectly marking exact conversions as inexact in some more common cases. Fixes PR11406, and a missed optimization in test/CodeGen/X86/fp-stack-O0.ll. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145141 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
a3a1635d04667a7674d754ce13bc44d43d4b26e9 |
|
13-Oct-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Attempt to fix MSVC build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141831 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
7247a5f20e1997e38cdfe3558afe8f10d547f2eb |
|
12-Oct-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Fix APFloat::getLargest so that it actually returns the correct value. Found by accident while reviewing a patch to nearby code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141816 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
9d74909378eb084ab55f407d134fb68f25c803a0 |
|
29-Aug-2011 |
Matt Beaumont-Gay <matthewbg@google.com> |
Fix a test that wasn't testing the right thing. The APFloat "Zero" test was actually calling the APFloat(const fltSemantics &, integerPart) constructor, and EXPECT_EQ was treating 0 and -0 as equal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138745 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
3d42bfbbdd26ac56ccd706d4ebee984490c72ecc |
|
15-Jul-2011 |
Jeffrey Yasskin <jyasskin@google.com> |
Add an APFloat::convertToInt(APSInt) function that automatically manages the memory for the result. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135259 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
8398512f89623144c8bb45ce9deb4f74f76480fc |
|
30-Mar-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Avoid turning a floating point division with a constant power of two into a denormal multiplication. Some platforms may treat denormals as zero, on other platforms multiplication with a subnormal is slower than dividing by a normal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128555 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
2746000f4fa54e6ad00cf96910ea5772803624ed |
|
30-Mar-2011 |
Benjamin Kramer <benny.kra@googlemail.com> |
Add APFloat::getExactInverse. The idea is, that if an ieee 754 float is divided by a power of two, we can turn the division into a cheaper multiplication. This function sees if we can get an exact multiplicative inverse for a divisor and returns it if possible. This is the hard part of PR9587. I tested many inputs against llvm-gcc's frotend implementation of this optimization and didn't find any difference. However, floating point is the land of weird edge cases, so any review would be appreciated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128545 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
b5f59f5cf07babed5b4ba872815238e29386b0c5 |
|
17-Mar-2010 |
Jeffrey Yasskin <jyasskin@google.com> |
Fix death tests in -Asserts builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98701 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
e12b73816b50bbe2cc54b8005d86c95413b4f465 |
|
28-Feb-2010 |
John McCall <rjmccall@apple.com> |
Teach APFloat how to create both QNaNs and SNaNs and with arbitrary-width payloads. APFloat's internal folding routines always make QNaNs now, instead of sometimes making QNaNs and sometimes SNaNs depending on the type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97364 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
8b3f3307a26c5911eef034db565aec22ed74f13b |
|
26-Feb-2010 |
John McCall <rjmccall@apple.com> |
Make APFloat's string-parsing routines a bit safer against very large exponents. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97278 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
281d051921be84e2f790dd567958cd200b28e2dd |
|
03-Feb-2010 |
John McCall <rjmccall@apple.com> |
Make APInt::countLeadingZerosSlowCase() treat the contents of padding bits as undefined. Fixes an assertion in APFloat::toString noticed by Dale. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95196 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
6a09affdf62fccbd190ca6e9cac0cb065b5f2677 |
|
25-Dec-2009 |
John McCall <rjmccall@apple.com> |
Implement support for converting to string at "natural precision", and fix some major bugs in long-precision conversion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92150 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
00e65de9d83f846af732e3ace3f48d43d67b13d1 |
|
24-Dec-2009 |
John McCall <rjmccall@apple.com> |
Add accessors for the largest-magnitude, smallest-magnitude, and smallest-normalized-magnitude values in a given FP semantics. Provide an APFloat-to-string conversion which I am quite ready to admit could be much more efficient. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92126 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
83fecfa42ce0453a723d37fa46e23c391e4bd6a3 |
|
04-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add test for PR4873, which works for me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80965 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
c78b33bdc1953914b0bbbaa1a0475cc231b43991 |
|
21-Aug-2009 |
Erick Tryzelaar <idadesub@users.sourceforge.net> |
Add support for including '+' in APFloat strings, more asserts, and many new unit tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79574 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
cdd93d8c35e1e983fd3a37f3de2ebc154731f20d |
|
20-Aug-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix two APFloat bugs in converting hexadecimal constants. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79540 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
2ad40a3663cb06c5f6d89a22933e22dc8b985574 |
|
17-Aug-2009 |
Erick Tryzelaar <idadesub@users.sourceforge.net> |
Wrap unit test death tests in GTEST_HAS_DEATH_TEST git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79218 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
33d7dd6dc86704c749c0b95ac512962f54e9af5a |
|
17-Aug-2009 |
Erick Tryzelaar <idadesub@users.sourceforge.net> |
Change APFloatTest from using ASSERTs to EXPECTs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79216 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|
a15d890c34b5e3a6373c410ebc58453f2d52f43b |
|
17-Aug-2009 |
Erick Tryzelaar <idadesub@users.sourceforge.net> |
Modify APFloat to take a StringRef instead of a c string. This also adds unit tests to APFloat that mainly tests the string handling of APFloat, but not much else of it's api. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79210 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APFloatTest.cpp
|