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:
Bob Wilson 2011-01-28 17:50:30 +00:00
parent 593faa53fa
commit d11c57a937
2 changed files with 5 additions and 2 deletions

View File

@ -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.

View File

@ -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