mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Whoops, last word with bits in large shift left wasn't correct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8755380fff
commit
438d71eea4
@ -994,7 +994,7 @@ APInt APInt::shl(uint32_t shiftAmt) const {
|
||||
for (; i > offset; --i)
|
||||
val[i] = pVal[i-offset] << wordShift |
|
||||
pVal[i-offset-1] >> (APINT_BITS_PER_WORD - wordShift);
|
||||
val[offset] = pVal[offset-1] << wordShift;
|
||||
val[offset] = pVal[0] << wordShift;
|
||||
for (i = 0; i < offset; ++i)
|
||||
val[i] = 0;
|
||||
val[getNumWords()-1] &= ~uint64_t(0ULL) >> (APINT_BITS_PER_WORD - BitWidth);
|
||||
|
Loading…
Reference in New Issue
Block a user