mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
PR9030: Fix disassembly of ARM "mov pc, lr" instruction.
Patch by Jyun-Yan You. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124492 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
593faa53fa
commit
d11c57a937
@ -801,8 +801,8 @@ static bool DisassembleBrMiscFrm(MCInst &MI, unsigned Opcode, uint32_t insn,
|
||||
|
||||
OpIdx = 0;
|
||||
|
||||
// BX_RET has only two predicate operands, do an early return.
|
||||
if (Opcode == ARM::BX_RET)
|
||||
// BX_RET and MOVPCLR have only two predicate operands; do an early return.
|
||||
if (Opcode == ARM::BX_RET || Opcode == ARM::MOVPCLR)
|
||||
return true;
|
||||
|
||||
// BLXr9 and BX take one GPR reg.
|
||||
|
@ -9,6 +9,9 @@
|
||||
# CHECK: bfi r8, r0, #16, #1
|
||||
0x10 0x88 0xd0 0xe7
|
||||
|
||||
# CHECK: mov pc, lr
|
||||
0x0e 0xf0 0xa0 0xe1
|
||||
|
||||
# CHECK: cmn r0, #1
|
||||
0x01 0x00 0x70 0xe3
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user