mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-03 17:32:59 +00:00
Instruction formats of SWP/SWPB were changed from LdStExFrm to MiscFrm. Modify the disassembler to handle that.
rdar://problem/9184053 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128285 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
15a3ea0628
commit
6c3891067b
@ -2951,6 +2951,11 @@ static bool DisassembleMiscFrm(MCInst &MI, unsigned Opcode, uint32_t insn,
|
||||
case ARM::WFI:
|
||||
case ARM::SEV:
|
||||
return true;
|
||||
case ARM::SWP:
|
||||
case ARM::SWPB:
|
||||
// SWP, SWPB: Rd Rm Rn
|
||||
// Delegate to DisassembleLdStExFrm()....
|
||||
return DisassembleLdStExFrm(MI, Opcode, insn, NumOps, NumOpsAdded, B);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -184,3 +184,6 @@
|
||||
|
||||
# CHECK: ldmdb sp, {r0, r4, r8, r11, r12, pc}
|
||||
0x11 0x99 0x1d 0xe9
|
||||
|
||||
# CHECK: swpge r3, r2, [r6]
|
||||
0x92 0x30 0x06 0xa1
|
||||
|
Loading…
Reference in New Issue
Block a user