ppc/svp64: disassemble SVP64 name
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 28 May 2023 22:04:57 +0000 (01:04 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 15 Aug 2023 19:22:01 +0000 (22:22 +0300)
opcodes/ppc-dis.c

index 9cdc7e359f5f4c50db2fe6fd9f6f374fd95fb27d..a19b2a840614088375437ba86bbb3bb46ea66a5b 100644 (file)
@@ -974,9 +974,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;