Skip to content

Commit

Permalink
ppc: add PPC_INS_BNE for alias instruction BNE
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Sep 16, 2014
1 parent bd85448 commit eaecfa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/PowerPC/PPCMapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -7872,6 +7872,9 @@ static name_map insn_name_maps[] = {
{ PPC_INS_BA_CC, "ba_cc" },
{ PPC_INS_BCTR_CC, "bctr_cc" },
{ PPC_INS_BCTRL_CC, "bctrl_cc" },

// alias instructions
{ PPC_INS_BNE, "bne" },
};

// special alias insn
Expand Down
3 changes: 3 additions & 0 deletions include/ppc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1231,6 +1231,9 @@ typedef enum ppc_insn {
PPC_INS_BCTR_CC, // BccCTR
PPC_INS_BCTRL_CC, // BccCTRL

// alias instructions
PPC_INS_BNE,

PPC_INS_MAX, // <-- mark the end of the list of instructions
} ppc_insn;

Expand Down

0 comments on commit eaecfa4

Please sign in to comment.