mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Make second source operand of LDRD pre/post explicit.
Finish what r128736 started. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1232,8 +1232,6 @@ static bool DisassembleLdStMiscFrm(MCInst &MI, unsigned Opcode, uint32_t insn,
|
||||
++OpIdx;
|
||||
}
|
||||
|
||||
bool DualReg = HasDualReg(Opcode);
|
||||
|
||||
// Disassemble the dst/src operand.
|
||||
if (OpIdx >= NumOps)
|
||||
return false;
|
||||
@ -1244,9 +1242,8 @@ static bool DisassembleLdStMiscFrm(MCInst &MI, unsigned Opcode, uint32_t insn,
|
||||
decodeRd(insn))));
|
||||
++OpIdx;
|
||||
|
||||
// Fill in LDRD and STRD's second operand, but only if it's offset mode OR we
|
||||
// have a pre-or-post-indexed store operation.
|
||||
if (DualReg && (!isPrePost || isStore)) {
|
||||
// Fill in LDRD and STRD's second operand Rt operand.
|
||||
if (HasDualReg(Opcode)) {
|
||||
MI.addOperand(MCOperand::CreateReg(getRegisterEnum(B, ARM::GPRRegClassID,
|
||||
decodeRd(insn) + 1)));
|
||||
++OpIdx;
|
||||
|
Reference in New Issue
Block a user