mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Port over additional encoding tests to decoding tests, and fix an operand ordering bug this exposed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138575 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2539,8 +2539,8 @@ static DecodeStatus DecodeThumbAddSPReg(llvm::MCInst &Inst, uint16_t Insn,
|
||||
Rdm |= fieldFromInstruction16(Insn, 7, 1) << 3;
|
||||
|
||||
CHECK(S, DecodeGPRRegisterClass(Inst, Rdm, Address, Decoder));
|
||||
Inst.addOperand(MCOperand::CreateReg(ARM::SP));
|
||||
CHECK(S, DecodeGPRRegisterClass(Inst, Rdm, Address, Decoder));
|
||||
Inst.addOperand(MCOperand::CreateReg(ARM::SP));
|
||||
} else if (Inst.getOpcode() == ARM::tADDspr) {
|
||||
unsigned Rm = fieldFromInstruction16(Insn, 3, 4);
|
||||
|
||||
|
Reference in New Issue
Block a user