ppc: mnemonic with dot postfix should update CR0. issue #1478
This commit is contained in:
parent
afc8550d2a
commit
d169f3fff5
|
@ -85,6 +85,10 @@ void PPC_post_printer(csh ud, cs_insn *insn, char *insn_asm, MCInst *mci)
|
|||
} else if (strrchr(insn_asm, '-') != NULL) {
|
||||
insn->detail->ppc.bh = PPC_BH_MINUS;
|
||||
}
|
||||
|
||||
if (strrchr(insn_asm, '.') != NULL) {
|
||||
insn->detail->ppc.update_cr0 = true;
|
||||
}
|
||||
}
|
||||
|
||||
#define GET_INSTRINFO_ENUM
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
!# issue 1478 tbegin.
|
||||
!# CS_ARCH_PPC, CS_MODE_64 | CS_MODE_BIG_ENDIAN, CS_OPT_DETAIL
|
||||
0x7c,0x20,0x05,0x1d == tbegin. 1 ; Update-CR0: True
|
||||
|
||||
!# issue 970 PPC bdnzt lt
|
||||
!# CS_ARCH_PPC, CS_MODE_64 | CS_MODE_BIG_ENDIAN, CS_OPT_DETAIL
|
||||
0x41,0x00,0xff,0xac == bdnzt lt, 0xffffffffffffffac ; operands[0].type: REG = cr0lt
|
||||
|
|
Loading…
Reference in New Issue