mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
thinko. Should fix s4addl.ll regression
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22817 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
361ca5c927
commit
035b8abdab
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user