mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +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::WFI:
|
||||||
case ARM::SEV:
|
case ARM::SEV:
|
||||||
return true;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -184,3 +184,6 @@
|
|||||||
|
|
||||||
# CHECK: ldmdb sp, {r0, r4, r8, r11, r12, pc}
|
# CHECK: ldmdb sp, {r0, r4, r8, r11, r12, pc}
|
||||||
0x11 0x99 0x1d 0xe9
|
0x11 0x99 0x1d 0xe9
|
||||||
|
|
||||||
|
# CHECK: swpge r3, r2, [r6]
|
||||||
|
0x92 0x30 0x06 0xa1
|
||||||
|
Loading…
Reference in New Issue
Block a user