ppc/svp64: disassemble SVP64 name
authorDmitry Selyutin <ghostmansd@gmail.com>
Thu, 22 Sep 2022 12:51:49 +0000 (15:51 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Fri, 23 Sep 2022 18:13:33 +0000 (21:13 +0300)
opcodes/ppc-dis.c

index 16af4eb1ff7b304a0649f29b215019d01b60b674..aa8f9ea4c640cfcd0ebdb3100c59d4f6e4762ca1 100644 (file)
@@ -891,9 +891,11 @@ print_insn_powerpc_opcode (struct disassemble_info *info,
   int blanks;
 
   (*info->fprintf_styled_func) (info->stream, dis_style_mnemonic,
-                               "%s", opcode->name);
+                               "%s%s",
+                               (svp64 ? "sv." : ""),
+                               opcode->name);
   /* gdb fprintf_styled_func doesn't return count printed.  */
-  blanks = 8 - strlen (opcode->name);
+  blanks = (8 - (int)strlen (opcode->name) - (svp64 ? 3 : 2));
   if (blanks <= 0)
     blanks = 1;