|
|
@ -8089,9 +8089,7 @@ static struct ppc_alias alias_insn_name_maps[] = { |
|
|
|
// given alias mnemonic, return instruction ID & CC
|
|
|
|
// given alias mnemonic, return instruction ID & CC
|
|
|
|
bool PPC_alias_insn(const char *name, struct ppc_alias *alias) |
|
|
|
bool PPC_alias_insn(const char *name, struct ppc_alias *alias) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int i; |
|
|
|
for(size_t i = 0; i < ARR_SIZE(alias_insn_name_maps); i++) { |
|
|
|
|
|
|
|
|
|
|
|
for(i = 0; i < ARR_SIZE(alias_insn_name_maps); i++) { |
|
|
|
|
|
|
|
if (!strcmp(name, alias_insn_name_maps[i].mnem)) { |
|
|
|
if (!strcmp(name, alias_insn_name_maps[i].mnem)) { |
|
|
|
alias->id = alias_insn_name_maps[i].id; |
|
|
|
alias->id = alias_insn_name_maps[i].id; |
|
|
|
alias->cc = alias_insn_name_maps[i].cc; |
|
|
|
alias->cc = alias_insn_name_maps[i].cc; |
|
|
@ -8100,7 +8098,7 @@ bool PPC_alias_insn(const char *name, struct ppc_alias *alias) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// not really an alias insn
|
|
|
|
// not really an alias insn
|
|
|
|
i = name2id(&insn_name_maps[1], ARR_SIZE(insn_name_maps) - 1, name); |
|
|
|
int i = name2id(&insn_name_maps[1], ARR_SIZE(insn_name_maps) - 1, name); |
|
|
|
if (i != -1) { |
|
|
|
if (i != -1) { |
|
|
|
alias->id = insn_name_maps[i].id; |
|
|
|
alias->id = insn_name_maps[i].id; |
|
|
|
alias->cc = PPC_BC_INVALID; |
|
|
|
alias->cc = PPC_BC_INVALID; |
|
|
|