mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
Thumb2 encoding choice correction for PLD.
Using encoding T1 for offset of #0 and encoding T2 for #-0. rdar://10532413 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145919 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -916,9 +916,9 @@ public:
|
||||
if (!isMemory() || Memory.OffsetRegNum != 0 || Memory.Alignment != 0)
|
||||
return false;
|
||||
// Immediate offset in range [-255, -1].
|
||||
if (!Memory.OffsetImm) return true;
|
||||
if (!Memory.OffsetImm) return false;
|
||||
int64_t Val = Memory.OffsetImm->getValue();
|
||||
return Val > -256 && Val < 0;
|
||||
return (Val == INT32_MIN) || (Val > -256 && Val < 0);
|
||||
}
|
||||
bool isMemUImm12Offset() const {
|
||||
if (!isMemory() || Memory.OffsetRegNum != 0 || Memory.Alignment != 0)
|
||||
|
Reference in New Issue
Block a user