arm64: handle alias insn in a better way, and add support for MNEG. bug reported by Patroklos Argyroudis

This commit is contained in:
Nguyen Anh Quynh
2013-11-30 00:54:24 +08:00
parent 81d35e6105
commit 6b7abe3c81
8 changed files with 35 additions and 5 deletions

View File

@ -35,11 +35,21 @@ void MCInst_setOpcode(MCInst *inst, unsigned Op)
inst->Opcode = Op;
}
void MCInst_setOpcodePub(MCInst *inst, unsigned Op)
{
inst->OpcodePub = Op;
}
unsigned MCInst_getOpcode(const MCInst *inst)
{
return inst->Opcode;
}
unsigned MCInst_getOpcodePub(const MCInst *inst)
{
return inst->OpcodePub;
}
MCOperand *MCInst_getOperand(MCInst *inst, unsigned i)
{
return &inst->Operands[i];