mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Unsigned value cannot be < 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112300 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
68ff776661
commit
3d38e8364a
@ -409,7 +409,7 @@ static inline bool isMatchingDecrement(MachineInstr *MI, unsigned Base,
|
||||
return false;
|
||||
|
||||
// Make sure the offset fits in 8 bits.
|
||||
if (Bytes <= 0 || (Limit && Bytes >= Limit))
|
||||
if (Bytes == 0 || (Limit && Bytes >= Limit))
|
||||
return false;
|
||||
|
||||
unsigned Scale = (MI->getOpcode() == ARM::tSUBspi) ? 4 : 1; // FIXME
|
||||
@ -433,7 +433,7 @@ static inline bool isMatchingIncrement(MachineInstr *MI, unsigned Base,
|
||||
MI->getOpcode() != ARM::ADDri)
|
||||
return false;
|
||||
|
||||
if (Bytes <= 0 || (Limit && Bytes >= Limit))
|
||||
if (Bytes == 0 || (Limit && Bytes >= Limit))
|
||||
// Make sure the offset fits in 8 bits.
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user