aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/APIntTest.cpp
AgeCommit message (Expand)AuthorFilesLines
2016-04-16Remove some unneeded headers and replace some headers with forward class decl...Mehdi Amini1-1/+1
2016-04-12APInt: Add overload of isMaskMatt Arsenault1-0/+17
2016-03-21Implement constant folding for bitreverseMatt Arsenault1-0/+42
2015-09-04Fix APInt value initialization to give a zero value as any sane integer typeRichard Smith1-0/+7
2015-07-01Change APInt comparison with uint64_t.Pawel Bylica1-0/+127
2015-06-25Add missing <array> include.Pawel Bylica1-0/+1
2015-06-25Express APInt::{s,u}{l,g}e(uint64_t) in terms of APInt::{s,u}{l,g}t(uint64_t)...Pawel Bylica1-0/+38
2015-06-04[APInt] Remove special case for i1.Benjamin Kramer1-0/+6
2015-04-24Fix APInt long division algorithmPawel Bylica1-182/+66
2015-04-22Another test to exercise APInt divide step D6.Yaron Keren1-0/+13
2015-03-26Fix rare case where APInt divide algorithm applied un-needed transformation.Yaron Keren1-0/+200
2015-03-25[APInt] Add an isSplat helper and use it in some places.Benjamin Kramer1-0/+40
2015-01-14Disable -Wunknown-pragmas in a test so that Clang without -Wself-move will notRichard Trieu1-0/+4
2015-01-13Silence warnings about unknown pragmas for compilers that are not Clang. NFC.Aaron Ballman1-1/+4
2015-01-13Disable a warning for self move since the test is checking for this behavior.Richard Trieu1-0/+4
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