mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Repair an out by one error for IA64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22942 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4416f1a0a5
commit
ffb973df92
@ -875,7 +875,7 @@ static unsigned ponderIntegerAndWith(SDOperand N, unsigned& Imm) {
|
||||
int64_t v = (int64_t)cast<ConstantSDNode>(N)->getSignExtended();
|
||||
|
||||
if (isMask_64(v)) { // if ANDing with ((2^n)-1) for some n
|
||||
Imm = Log2_64(v);
|
||||
Imm = Log2_64(v) + 1;
|
||||
return 1; // say so
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user