From: Luke Kenneth Casson Leighton Date: Sun, 18 Sep 2022 17:33:01 +0000 (+0100) Subject: sigh, check length of string returned, if non-zero add space X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=439dfd50906008cc32691cd0b4ade6d89fa58ef6;p=openpower-isa.git sigh, check length of string returned, if non-zero add space --- 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}"