From 712d98bc3fa782a1b0503866f3c8077d3f1455c6 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Thu, 22 Sep 2022 15:51:49 +0300 Subject: [PATCH] ppc/svp64: disassemble SVP64 name --- opcodes/ppc-dis.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index 16af4eb1ff7..aa8f9ea4c64 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -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; -- 2.30.2