diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-08-17 00:47:24 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-08-17 00:47:24 +0000 |
commit | 035b8abdab6191d54e7ac51dcd5117cb7f430fc0 (patch) | |
tree | cc76004534c2a9ce4fb191f8159b5d2252fde94c /lib/Target/Alpha/AlphaISelPattern.cpp | |
parent | 361ca5c927eae645069e73cebc9840c5ee8d5a5f (diff) |
thinko. Should fix s4addl.ll regression
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaISelPattern.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp index e09f9b9dd5..80a47a1a9d 100644 --- a/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/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; } |