#
4497d963 |
| 13-Dec-2013 |
Michael Gottesman <mgottesman@apple.com> |
[block-freq] Add the APInt method extractBit.
llvm-svn: 197271
|
Revision tags: llvmorg-3.4.0-rc2, llvmorg-3.4.0-rc1, llvmorg-3.3.1-rc1, llvmorg-3.3.0, llvmorg-3.3.0-rc3 |
|
#
9d406f4e |
| 28-May-2013 |
Michael Gottesman <mgottesman@apple.com> |
[APInt] Implement tcDecrement as a counterpart to tcIncrement. This is for use in APFloat IEEE-754R 2008 nextUp/nextDown function.
rdar://13852078
llvm-svn: 182801
|
Revision tags: llvmorg-3.3.0-rc2, llvmorg-3.3.0-rc1 |
|
#
5c3e21ba |
| 20-Feb-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
Move the SplatByte helper to APInt and generalize it a bit.
llvm-svn: 175621
|
#
32dc7249 |
| 07-Feb-2013 |
Meador Inge <meadori@codesourcery.com> |
ADT: Correct APInt::getActiveWords for zero values
PR15138 was opened because of a segfault in the Bitcode writer. The actual issue ended up being a bug in APInt where calls to APInt::getActiveWords
ADT: Correct APInt::getActiveWords for zero values
PR15138 was opened because of a segfault in the Bitcode writer. The actual issue ended up being a bug in APInt where calls to APInt::getActiveWords returns a bogus value when the APInt value is 0. This patch fixes the problem by ensuring that getActiveWords returns 1 for 0 valued APInts.
llvm-svn: 174641
show more ...
|
Revision tags: llvmorg-3.2.0, llvmorg-3.2.0-rc3 |
|
#
130cec21 |
| 04-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Sort the #include lines for unittest/...
llvm-svn: 169250
|
Revision tags: llvmorg-3.2.0-rc2, llvmorg-3.2.0-rc1 |
|
#
61b7fa29 |
| 22-May-2012 |
Nuno Lopes <nunoplopes@sapo.pt> |
fix the quotient returned by sdivrem() for the case when LHS is negative and RHS is positive based on a patch by Preston Briggs, with some modifications
llvm-svn: 157231
|
Revision tags: llvmorg-3.1.0, llvmorg-3.1.0-rc3, llvmorg-3.1.0-rc2, llvmorg-3.1.0-rc1 |
|
#
47ddf604 |
| 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.
llvm-svn: 149986
|
#
f70c8623 |
| 22-Dec-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Some unittests for APInt rotates; patch by Cameron McInally.
llvm-svn: 147186
|
#
1c419ff5 |
| 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.
llvm-svn: 146754
|
Revision tags: llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2, llvmorg-3.0.0-rc1 |
|
#
19546418 |
| 07-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
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.
llvm-svn: 141441
show more ...
|
#
663c068d |
| 14-Sep-2011 |
Douglas Gregor <dgregor@apple.com> |
Add APInt support for converting to/from hexatridecimal strings
llvm-svn: 139695
|
#
7a162881 |
| 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.
llvm-
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.
llvm-svn: 135431
show more ...
|
#
c8c184d2 |
| 15-Jun-2011 |
Dylan Noblesmith <nobled@dreamwidth.org> |
unittests: add test for APInt::toString()
Follow up to r133032.
llvm-svn: 133107
|
Revision tags: llvmorg-2.9.0, llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2 |
|
#
09a51bab |
| 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.
llvm-svn: 127828
|
Revision tags: llvmorg-2.9.0-rc1 |
|
#
8731d0cc |
| 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 approxima
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.
llvm-svn: 126097
show more ...
|
#
25a5e4ca |
| 01-Dec-2010 |
Jay Foad <jay.foad@gmail.com> |
PR5207: Rename overloaded APInt methods set(), clear(), flip() to setAllBits(), setBit(unsigned), etc.
llvm-svn: 120564
|
Revision tags: llvmorg-2.8.0, llvmorg-2.8.0-rc3, llvmorg-2.8.0-rc2 |
|
#
e1e70b93 |
| 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.
llvm-svn: 113824
|
Revision tags: llvmorg-2.8.0-rc1, llvmorg-2.8.0-rc0 |
|
#
bc3e8a7c |
| 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.
llv
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.
llvm-svn: 108248
show more ...
|
Revision tags: llvmorg-2.7.0 |
|
#
b5cd0133 |
| 17-Mar-2010 |
Jeffrey Yasskin <jyasskin@google.com> |
Fix death tests in -Asserts builds.
llvm-svn: 98701
|
Revision tags: llvmorg-2.6.0 |
|
#
f7ad620c |
| 13-Oct-2009 |
Duncan Sands <baldrick@free.fr> |
Pacify the compiler (signed with unsigned comparison) by making these constants unsigned.
llvm-svn: 83962
|
#
c4e367b8 |
| 13-Oct-2009 |
Dan Gohman <gohman@apple.com> |
Add a ceilLogBase2 function to APInt.
llvm-svn: 83932
|
#
73e76a1d |
| 18-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix a few more conversion warnings on 4.0
llvm-svn: 82232
|
#
0ec4ed7b |
| 17-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Another try at fixing compile warnings on 4.0
llvm-svn: 82148
|
#
6ced3911 |
| 14-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Attempt to fix some 4.0.0 build warnings.
llvm-svn: 81752
|
#
da30ecdc |
| 06-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Simplify, now that gtest supports raw_ostream directly.
llvm-svn: 81102
|