arm64: support more alias insn

This commit is contained in:
Nguyen Anh Quynh 2013-11-30 12:28:56 +08:00
parent 0fd5da2449
commit 6b9b6647c1
2 changed files with 27 additions and 0 deletions

View File

@ -2236,8 +2236,24 @@ arm64_reg AArch64_map_insn(char *name)
{ ARM64_INS_BIC, "BICS" },
{ ARM64_INS_SBC, "SBCS" },
{ ARM64_INS_SUB, "SUBS" },
// alias insn
{ ARM64_INS_MNEG, "MNEG" },
{ ARM64_INS_UMNEGL, "UMNEGL" },
{ ARM64_INS_SMNEGL, "SMNEGL" },
{ ARM64_INS_MOV, "MOV" },
{ ARM64_INS_NOP, "NOP" },
{ ARM64_INS_YIELD, "YIELD" },
{ ARM64_INS_WFE, "WFE" },
{ ARM64_INS_WFI, "WFI" },
{ ARM64_INS_SEV, "SEV" },
{ ARM64_INS_SEVL, "SEVL" },
{ ARM64_INS_NGC, "NGC" },
{ ARM64_INS_NEG, "NEG" },
// FIXME: map these with flag updated
{ ARM64_INS_NEG, "NEGS" },
{ ARM64_INS_NGC, "NGCS" },
};
// NOTE: skip first NULL name in insn_name_maps

View File

@ -694,6 +694,17 @@ typedef enum arm64_insn {
// alias insn
ARM64_INS_MNEG,
ARM64_INS_UMNEGL,
ARM64_INS_SMNEGL,
ARM64_INS_MOV,
ARM64_INS_NOP,
ARM64_INS_YIELD,
ARM64_INS_WFE,
ARM64_INS_WFI,
ARM64_INS_SEV,
ARM64_INS_SEVL,
ARM64_INS_NGC,
ARM64_INS_NEG,
ARM64_INS_MAX,
} arm64_insn;