summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-08-17 00:47:24 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-08-17 00:47:24 +0000
commit73370ba5fdd29af2489a1989106e2716f5a28624 (patch)
tree3e641d11d220fd3805cc8cac579138257ef35d6e /llvm/lib
parent5909c8b10af8670a8fce74ebfc455e6f318c2748 (diff)
downloadbcm5719-llvm-73370ba5fdd29af2489a1989106e2716f5a28624.tar.gz
bcm5719-llvm-73370ba5fdd29af2489a1989106e2716f5a28624.zip
thinko. Should fix s4addl.ll regression
llvm-svn: 22817
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Alpha/AlphaISelPattern.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
index e09f9b9dd52..80a47a1a9d0 100644
--- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -606,7 +606,7 @@ static bool isSIntImmediate(SDOperand N, int64_t& Imm) {
// If so Imm will receive the 64 bit value.
static bool isSIntImmediateBounded(SDOperand N, int64_t& Imm,
int64_t low, int64_t high) {
- if (isSIntImmediate(N, Imm) && Imm <= high && Imm >= high)
+ if (isSIntImmediate(N, Imm) && Imm <= high && Imm >= low)
return true;
return false;
}
@@ -624,7 +624,7 @@ static bool isUIntImmediate(SDOperand N, uint64_t& Imm) {
static bool isUIntImmediateBounded(SDOperand N, uint64_t& Imm,
uint64_t low, uint64_t high) {
- if (isUIntImmediate(N, Imm) && Imm <= high && Imm >= high)
+ if (isUIntImmediate(N, Imm) && Imm <= high && Imm >= low)
return true;
return false;
}
OpenPOWER on IntegriCloud