From: Nicholas Nethercote Date: Fri, 16 Apr 2004 15:39:22 +0000 (+0000) Subject: Pretty-print WIDENs properly. X-Git-Tag: svn/VALGRIND_2_1_2~139 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=693766e7cb149a374271e89936ed670dfc21903a;p=thirdparty%2Fvalgrind.git Pretty-print WIDENs properly. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2368 --- diff --git a/coregrind/vg_translate.c b/coregrind/vg_translate.c index 55db62f9b3..47a0cd1807 100644 --- a/coregrind/vg_translate.c +++ b/coregrind/vg_translate.c @@ -980,8 +980,9 @@ void pp_UInstrWorker ( Int instrNo, UInstr* u, Bool ppRegsLiveness ) if (u->opcode == CC2VAL || u->opcode == CMOV) VG_(printf)("%s", VG_(name_UCondcode)(u->cond)); - // Append jmpkind - if (u->opcode == JMP) { + // Append extra bits + switch (u->opcode) { + case JMP: switch (u->jmpkind) { case JmpCall: VG_(printf)("-c"); break; case JmpRet: VG_(printf)("-r"); break; @@ -990,7 +991,12 @@ void pp_UInstrWorker ( Int instrNo, UInstr* u, Bool ppRegsLiveness ) case JmpYield: VG_(printf)("-yld"); break; default: break; } - } + break; + + case WIDEN: + VG_(printf)("_%c%c", VG_(toupper)(nameISize(u->extra4b)), + u->signed_widen?'s':'z'); + } VG_(printf)(" \t"); switch (u->opcode) { @@ -1201,8 +1207,6 @@ void pp_UInstrWorker ( Int instrNo, UInstr* u, Bool ppRegsLiveness ) break; case WIDEN: - VG_(printf)("_%c%c", VG_(toupper)(nameISize(u->extra4b)), - u->signed_widen?'s':'z'); VG_(pp_UOperand)(u, 1, u->size, False); break;