1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Repair an out by one error for IA64.

llvm-svn: 22942
This commit is contained in:
Jim Laskey 2005-08-20 11:05:23 +00:00
parent 9fbbc41021
commit 43192e173f

View File

@ -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
}