commit | 2fa3f02f2aa731b32db0aa20e126a90229d5a46e | [log] [tgz] |
---|---|---|
author | Nguyen Anh Quynh <aquynh@gmail.com> | Sun Feb 19 21:27:17 2017 +0800 |
committer | Nguyen Anh Quynh <aquynh@gmail.com> | Sun Feb 19 21:28:05 2017 +0800 |
tree | cd5b840645a3fa861703bb50de83ef6489b40b65 | |
parent | b8fa0b0471da2bb18cba0b08e1933f6ed851de45 [diff] |
ppc: print 0 offset for memory operand. see issue #856
diff --git a/arch/PowerPC/PPCInstPrinter.c b/arch/PowerPC/PPCInstPrinter.c index 45680ec..473651e 100644 --- a/arch/PowerPC/PPCInstPrinter.c +++ b/arch/PowerPC/PPCInstPrinter.c
@@ -502,9 +502,6 @@ { if (MCOperand_isImm(MCInst_getOperand(MI, OpNo))) { short Imm = (short)MCOperand_getImm(MCInst_getOperand(MI, OpNo)); - // Do not print zero offset - if (Imm == 0) - return; if (Imm >= 0) { if (Imm > HEX_THRESHOLD)