sigh, check length of string returned, if non-zero add space
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 18 Sep 2022 17:33:01 +0000 (18:33 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 18 Sep 2022 17:33:01 +0000 (18:33 +0100)
src/openpower/decoder/power_insn.py

index 8a129fd089cefc95ec5d97fc2618e62dc3ab95da..ec70efce65dae6ebe16af3c4478b1976734a3e9c 100644 (file)
@@ -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}"