aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2005-08-20 11:05:23 +0000
committerJim Laskey <jlaskey@mac.com>2005-08-20 11:05:23 +0000
commitffb973df928701146b46d090a69430db2221600f (patch)
tree6db11c38b886ef3373ac27a0d8536cb500d2e1de
parent4416f1a0a5b17906b9e162209fd506656a2e07d8 (diff)
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
-rw-r--r--lib/Target/IA64/IA64ISelPattern.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/IA64/IA64ISelPattern.cpp b/lib/Target/IA64/IA64ISelPattern.cpp
index a0a6f706e3..b66a032751 100644
--- a/lib/Target/IA64/IA64ISelPattern.cpp
+++ b/lib/Target/IA64/IA64ISelPattern.cpp
@@ -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
}