]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Pretty-print WIDENs properly.
authorNicholas Nethercote <n.nethercote@gmail.com>
Fri, 16 Apr 2004 15:39:22 +0000 (15:39 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Fri, 16 Apr 2004 15:39:22 +0000 (15:39 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2368

coregrind/vg_translate.c

index 55db62f9b36fffa181a24d228ec2569c7c9fb9d7..47a0cd1807e43a28150bb8bb6e12a8a172661545 100644 (file)
@@ -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;