mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Tighten decoding of addrmode2 instructions to reject more UNPREDICTABLE cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137325 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -978,6 +978,8 @@ static bool DecodeAddrMode2IdxInstruction(llvm::MCInst &Inst, unsigned Insn,
|
||||
else if (!P && writeback)
|
||||
idx_mode = ARMII::IndexModePost;
|
||||
|
||||
if (writeback && (Rn == 15 || Rn == Rt)) return false; // UNPREDICTABLE
|
||||
|
||||
if (reg) {
|
||||
if (!DecodeGPRnopcRegisterClass(Inst, Rm, Address, Decoder)) return false;
|
||||
ARM_AM::ShiftOpc Opc = ARM_AM::lsl;
|
||||
|
Reference in New Issue
Block a user