const struct powerpc_opcode *opcode,
const struct svp64_ctx *svp64)
{
+ size_t len = 0;
const ppc_opindex_t *opindex;
const struct powerpc_operand *operand;
enum {
"%s%s",
(svp64 ? "sv." : ""),
opcode->name);
+ len = strlen (opcode->name);
+ if (svp64)
+ {
+ len += (sizeof ("sv.") - 1);
+ len += svp64_print_spec (svp64, info);
+ }
+
/* gdb fprintf_styled_func doesn't return count printed. */
- blanks = (8 - (int)strlen (opcode->name) - (svp64 ? 3 : 2));
+ blanks = (8 - len);
if (blanks <= 0)
blanks = 1;