mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
STC2L_POST and STC2L_POST should be handled the same as STCL_POST/LDC_POST for the purposes of decoding all operands except the predicate.
Found by randomized testing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138003 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -927,6 +927,8 @@ static DecodeStatus DecodeCopMemInstruction(llvm::MCInst &Inst, unsigned Insn,
|
||||
case ARM::STC2L_OPTION:
|
||||
case ARM::LDCL_POST:
|
||||
case ARM::STCL_POST:
|
||||
case ARM::LDC2L_POST:
|
||||
case ARM::STC2L_POST:
|
||||
break;
|
||||
default:
|
||||
Inst.addOperand(MCOperand::CreateReg(0));
|
||||
@ -946,6 +948,8 @@ static DecodeStatus DecodeCopMemInstruction(llvm::MCInst &Inst, unsigned Insn,
|
||||
switch (Inst.getOpcode()) {
|
||||
case ARM::LDCL_POST:
|
||||
case ARM::STCL_POST:
|
||||
case ARM::LDC2L_POST:
|
||||
case ARM::STC2L_POST:
|
||||
imm |= U << 8;
|
||||
case ARM::LDC_OPTION:
|
||||
case ARM::LDCL_OPTION:
|
||||
|
Reference in New Issue
Block a user