mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01: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. llvm-svn: 138003
This commit is contained in:
parent
d113a59074
commit
421e30086e
@ -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:
|
||||
|
@ -314,3 +314,6 @@
|
||||
|
||||
# CHECK: rfedb #4!
|
||||
0x14 0x0 0x32 0xf9
|
||||
|
||||
# CHECK: stc2l p0, cr0, [r2], #-96
|
||||
0x18 0x0 0x62 0xfc
|
||||
|
Loading…
Reference in New Issue
Block a user