From 439dfd50906008cc32691cd0b4ade6d89fa58ef6 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 18 Sep 2022 18:33:01 +0100 Subject: [PATCH] sigh, check length of string returned, if non-zero add space --- src/openpower/decoder/power_insn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 8a129fd0..ec70efce 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -1959,7 +1959,7 @@ class SVP64Instruction(PrefixedInstruction): operands = tuple(map(_operator.itemgetter(1), self.dynamic_operands(db=db, verbosity=verbosity))) operands = ','.join(operands) - if operands: # if any separate with a space + if len(operands) > 0: # if any separate with a space operands = " " + operands yield f"{blob_prefix}{name}{specifiers}{operands}" -- 2.30.2