mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Refactor the ARM 'setend' instruction pattern. Use a single instruction pattern
and handle the operand explicitly. Flesh out encoding information. Add an explicit disassembler testcase for the instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116432 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2998,13 +2998,17 @@ static bool DisassembleMiscFrm(MCInst &MI, unsigned Opcode, uint32_t insn,
|
||||
case ARM::WFE:
|
||||
case ARM::WFI:
|
||||
case ARM::SEV:
|
||||
case ARM::SETENDBE:
|
||||
case ARM::SETENDLE:
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (Opcode == ARM::SETEND) {
|
||||
NumOpsAdded = 1;
|
||||
MI.addOperand(MCOperand::CreateImm(slice(insn, 9, 9)));
|
||||
return true;
|
||||
}
|
||||
|
||||
// CPS has a singleton $opt operand that contains the following information:
|
||||
// opt{4-0} = mode from Inst{4-0}
|
||||
// opt{5} = changemode from Inst{17}
|
||||
|
||||
Reference in New Issue
Block a user