aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/APIntTest.cpp
AgeCommit message (Expand)AuthorFilesLines
2014-08-27Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just...Craig Topper1-4/+4
2014-08-12Fix -Wsign-compare warningsDavid Blaikie1-3/+3
2014-08-12APInt: Make self-move-assignment a no-op to fix stage3 clang-clReid Kleckner1-0/+17
2014-01-31Clean up whitespaceDuncan P. N. Exon Smith1-2/+2
2014-01-19[APInt] Fix nearestLogBase2 to return correct answers for very large APInt an...Michael Gottesman1-0/+11
2014-01-19[APInt] Fixed bug where APInt(UINT32_MAX, 0) would blow up when being constru...Michael Gottesman1-0/+8
2013-12-13Remove APInt::extractBit since it is already implemented via operator[]. Chan...Michael Gottesman1-3/+3
2013-12-13[block-freq] Add the method APInt::nearestLogBase2().Michael Gottesman1-4/+40
2013-12-13[block-freq] Add the APInt method extractBit.Michael Gottesman1-0/+26
2013-05-28[APInt] Implement tcDecrement as a counterpart to tcIncrement. This is for us...Michael Gottesman1-0/+65
2013-02-20Move the SplatByte helper to APInt and generalize it a bit.Benjamin Kramer1-0/+10
2013-02-07ADT: Correct APInt::getActiveWords for zero valuesMeador Inge1-0/+8
2012-12-04Sort the #include lines for unittest/...Chandler Carruth1-2/+2
2012-05-22fix the quotient returned by sdivrem() for the case when LHS is negative and ...Nuno Lopes1-0/+28
2012-02-07Add a unittest for rotating a really big APInt.Benjamin Kramer1-0/+4
2011-12-22Some unittests for APInt rotates; patch by Cameron McInally.Eli Friedman1-0/+32
2011-12-16APInt: update asserts for base-36Dylan Noblesmith1-3/+3
2011-10-07Fix APInt::operator*= so that it computes the correct result for large intege...Eli Friedman1-0/+9
2011-09-14Add APInt support for converting to/from hexatridecimal stringsDouglas Gregor1-1/+24
2011-07-18Add APInt(numBits, ArrayRef<uint64_t> bigVal) constructor to prevent future a...Jeffrey Yasskin1-0/+4
2011-06-15unittests: add test for APInt::toString()Dylan Noblesmith1-0/+46
2011-03-17Add an argument to APInt's magic udiv calculation to specify the number of bi...Benjamin Kramer1-0/+2
2011-02-21The signed version of our "magic number" computation for the integer approxim...Cameron Zwarich1-0/+18
2010-12-01PR5207: Rename overloaded APInt methods set(), clear(), flip() toJay Foad1-1/+1
2010-09-14Attempt to unbreak the FreeBSD buildbot by XFAILing a unit test that seems to beJakob Stoklund Olesen1-0/+5
2010-07-13Switch from EXPECT_EQ({true,false, ...) to the more canonicalChandler Carruth1-2/+2
2010-03-17Fix death tests in -Asserts builds.Jeffrey Yasskin1-0/+2
2009-10-13Pacify the compiler (signed with unsigned comparison) by makingDuncan Sands1-6/+6
2009-10-13Add a ceilLogBase2 function to APInt.Dan Gohman1-0/+11
2009-09-18Fix a few more conversion warnings on 4.0Daniel Dunbar1-5/+5
2009-09-17Another try at fixing compile warnings on 4.0Daniel Dunbar1-18/+18
2009-09-14Attempt to fix some 4.0.0 build warnings.Daniel Dunbar1-23/+23
2009-09-06Simplify, now that gtest supports raw_ostream directly.Daniel Dunbar1-8/+0
2009-08-24split raw_os_ostream out to its own header and implementation file. ThisChris Lattner1-1/+1
2009-08-24Unbreak unit tests.Daniel Dunbar1-0/+7
2009-08-21Correct for recent assert change.Bill Wendling1-1/+1
2009-08-21Fix bug with APInt::getBitsNeeded with for base 10 numbers 0-9.Erick Tryzelaar1-0/+82
2009-08-21Allow '+' to appear in APInt strings, and add more unit tests.Erick Tryzelaar1-8/+72
2009-08-17Wrap unit test death tests in GTEST_HAS_DEATH_TESTErick Tryzelaar1-0/+2
2009-08-16Add failure tests to APInt unit test.Erick Tryzelaar1-0/+11
2009-08-13Convert APint::{fromString,APInt,getBitsNeeded} to use StringRef.Daniel Dunbar1-6/+6
2009-06-30Reapply 74494, this time removing the conflicting definition of operator<<Dan Gohman1-13/+0
2009-04-25Fix PR4040: APInt's string constructor is too strictChris Lattner1-0/+9
2009-04-08* Fixed calls to APInt ctor to work for negative values on Darwin/x86Misha Brukman1-6/+6
2009-03-24Converted a1.ll to unittests.Misha Brukman1-4/+83
2009-03-19Renamed unittest files to have a consistent {Tt}est suffix.Misha Brukman1-0/+100