History log of /external/llvm/unittests/ADT/APIntTest.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0ae29a6b37204d95761a859d647f3e13a415c2d2 07-Feb-2012 Benjamin Kramer <benny.kra@googlemail.com> Add a unittest for rotating a really big APInt.

Clang miscompiles it under certain circumstances, and it's a good exercise for APInt.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149986 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
3a3a424a248717487de826ddb48f14deec1d2446 22-Dec-2011 Eli Friedman <eli.friedman@gmail.com> Some unittests for APInt rotates; patch by Cameron McInally.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147186 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
efb0d1e42f266efbd3d15b0c12c0790e90c5be66 16-Dec-2011 Dylan Noblesmith <nobled@dreamwidth.org> APInt: update asserts for base-36

Hexatridecimal was added in r139695.

And fix the unittest that now triggers the assert.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146754 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
9eb6b4d91b83448ec818089754c74bbdcf7dfd7a 08-Oct-2011 Eli Friedman <eli.friedman@gmail.com> Fix APInt::operator*= so that it computes the correct result for large integers where there is unsigned overflow. Fix APFloat::toString so that it doesn't depend on the incorrect behavior in common cases (and computes the correct result in some rare cases). Fixes PR11086.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141441 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
dcd999624159842886d4be21efcc3ba0e61bab99 14-Sep-2011 Douglas Gregor <dgregor@apple.com> Add APInt support for converting to/from hexatridecimal strings

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139695 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
3ba292dbc2acee2d1052fb7ffe332e2164147b47 18-Jul-2011 Jeffrey Yasskin <jyasskin@google.com> Add APInt(numBits, ArrayRef<uint64_t> bigVal) constructor to prevent future ambiguity
errors like the one corrected by r135261. Migrate all LLVM callers of the old
constructor to the new one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135431 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
5f36bb1759e35bd3aef4b6ce226e091849f6b816 16-Jun-2011 Dylan Noblesmith <nobled@dreamwidth.org> unittests: add test for APInt::toString()

Follow up to r133032.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133107 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
d9103df51b858cf051a1650ac7eb33d416e9ac41 17-Mar-2011 Benjamin Kramer <benny.kra@googlemail.com> Add an argument to APInt's magic udiv calculation to specify the number of bits that are known zero in the divided number.

This will come in handy soon.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127828 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
8d7285d0e5eb5937a6682e884b883516377e903d 21-Feb-2011 Cameron Zwarich <zwarich@apple.com> The signed version of our "magic number" computation for the integer approximation
of a constant had a minor typo introduced when copying it from the book, which
caused it to favor negative approximations over positive approximations in many
cases. Positive approximations require fewer operations beyond the multiplication.

In the case of division by 3, we still generate code that is a single instruction
larger than GCC's code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126097 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
7a874ddda037349184fbeb22838cc11a1a9bb78f 01-Dec-2010 Jay Foad <jay.foad@gmail.com> PR5207: Rename overloaded APInt methods set(), clear(), flip() to
setAllBits(), setBit(unsigned), etc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120564 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
bc9c36bb7c436d7691d12d51d2b67f309b25df4f 14-Sep-2010 Jakob Stoklund Olesen <stoklund@2pi.dk> Attempt to unbreak the FreeBSD buildbot by XFAILing a unit test that seems to be
miscompiled by the system gcc-4.2.1

The test remains enabled for the second-stage test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113824 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
48b17fa5bebf46ecdbcb51ebab1c3d8b483afd3c 13-Jul-2010 Chandler Carruth <chandlerc@gmail.com> Switch from EXPECT_EQ({true,false, ...) to the more canonical
EXPECT_{TRUE,FALSE}(...) macros. This also prevents suprious warnings about
bool-to-pointer conversion that occurs withit EXPECT_EQ.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108248 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.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/APIntTest.cpp
937708cea9de4bc65c8d3297fcf0396686729912 13-Oct-2009 Duncan Sands <baldrick@free.fr> Pacify the compiler (signed with unsigned comparison) by making
these constants unsigned.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83962 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
cbc7cc63b6c7ee1008f92064388c37327c183328 13-Oct-2009 Dan Gohman <gohman@apple.com> Add a ceilLogBase2 function to APInt.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83932 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
393317975c0620360c54a6a3052c06db0b56f7e9 18-Sep-2009 Daniel Dunbar <daniel@zuster.org> Fix a few more conversion warnings on 4.0

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82232 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
f74610b5e79031ecb39a7ca67093ff9cda8852f3 17-Sep-2009 Daniel Dunbar <daniel@zuster.org> Another try at fixing compile warnings on 4.0

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82148 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
9c29730bb3e9dd52d226d0d14a727139f61a936d 14-Sep-2009 Daniel Dunbar <daniel@zuster.org> Attempt to fix some 4.0.0 build warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81752 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
46e124668a4ad86df1a554d3209e8597498b25bf 06-Sep-2009 Daniel Dunbar <daniel@zuster.org> Simplify, now that gtest supports raw_ostream directly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81102 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
32e1eef631fb275c9db580d80116d1110c3ae5ee 24-Aug-2009 Chris Lattner <sabre@nondot.org> split raw_os_ostream out to its own header and implementation file. This
means that raw_ostream no longer has to #include <iosfwd>. Nothing in llvm
should use raw_os_ostream.h, but llvm-gcc and some unit tests do.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79886 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
2571440d1e4fd86b43a65599e3ae078f92412df8 24-Aug-2009 Daniel Dunbar <daniel@zuster.org> Unbreak unit tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79879 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
5504225c2accd5331ec56a739576c5b027ca868a 21-Aug-2009 Bill Wendling <isanbard@gmail.com> Correct for recent assert change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79601 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
ae8f78d4de403965603ed2b61898d820db2449f9 21-Aug-2009 Erick Tryzelaar <idadesub@users.sourceforge.net> Fix bug with APInt::getBitsNeeded with for base 10 numbers 0-9.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79593 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
bb97531a5a13c9d5b2f04b3b714037b1eff7e9a9 21-Aug-2009 Erick Tryzelaar <idadesub@users.sourceforge.net> Allow '+' to appear in APInt strings, and add more unit tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79592 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.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/APIntTest.cpp
1b9104ff80ec708dee522128b1f6a929fdd323dd 17-Aug-2009 Erick Tryzelaar <idadesub@users.sourceforge.net> Add failure tests to APInt unit test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79209 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
689ad6ef3fd2e89394f1e8860dfebfe56b73c3da 13-Aug-2009 Daniel Dunbar <daniel@zuster.org> Convert APint::{fromString,APInt,getBitsNeeded} to use StringRef.
- Patch by Erick Tryzelaar, with some edits (and a bug fix) from me.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78885 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
38a253ddf786b83dba14d980d269f7bb5c2252ea 30-Jun-2009 Dan Gohman <gohman@apple.com> Reapply 74494, this time removing the conflicting definition of operator<<
in APIntTest.cpp.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74550 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
38300e91f5ff2d427d98f81fb25df8cc2800d985 25-Apr-2009 Chris Lattner <sabre@nondot.org> Fix PR4040: APInt's string constructor is too strict
patch by Jeff Yasskin!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70058 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
e3bc46ede58d9c02b8f1a630e70ee1c98a1e4229 08-Apr-2009 Misha Brukman <brukman+llvm@gmail.com> * Fixed calls to APInt ctor to work for negative values on Darwin/x86
* Converted C-style casts to C++-style casts



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68613 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
2e734269e3f354e52bd9e55d791e1885aa7d4cd8 24-Mar-2009 Misha Brukman <brukman+llvm@gmail.com> Converted a1.ll to unittests.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67652 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp
8be1ac213b20c5f4f6126d6ef955a9997f150ead 19-Mar-2009 Misha Brukman <brukman+llvm@gmail.com> Renamed unittest files to have a consistent {Tt}est suffix.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67326 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/unittests/ADT/APIntTest.cpp