Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Commit

Permalink
Don't add cr0 to the operand list as it's not displayed by the disass…
Browse files Browse the repository at this point in the history
…embly
  • Loading branch information
kratolp committed Oct 2, 2014
1 parent 4d3ccf4 commit f2b699a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/PowerPC/PPCInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,9 @@ static char *printAliasInstrEx(MCInst *MI, SStream *OS, void *info)
(MCOperand_getImm(MCInst_getOperand(MI, 0)) < 16)) {
int cr = getBICR(MCOperand_getReg(MCInst_getOperand(MI, 1)));

op_addReg(MI, PPC_REG_CR0 + cr - PPC_CR0);
if (cr != PPC_CR0) {
op_addReg(MI, PPC_REG_CR0 + cr - PPC_CR0);
}

if (decCtr) {
needComma = true;
Expand Down

0 comments on commit f2b699a

Please sign in to comment.