power_insn: do not print blob suffix unless needed
authorDmitry Selyutin <ghostmansd@gmail.com>
Fri, 9 Sep 2022 22:04:35 +0000 (01:04 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sat, 10 Sep 2022 05:35:38 +0000 (08:35 +0300)
src/openpower/decoder/power_insn.py

index add1f85b750e00f93392c27f3d270d6120ecfd5b..565ec85cc47904ccb7bc38c085185848253d212a 100644 (file)
@@ -1510,7 +1510,8 @@ class SVP64Instruction(PrefixedInstruction):
             yield f"{blob_prefix}sv.{record.name} {','.join(operands)}"
         else:
             yield f"{blob_prefix}{record.name}"
-        yield f"{blob_suffix}"
+        if blob_suffix:
+            yield f"{blob_suffix}"
 
         (mode, mode_desc) = self.mode(db=db)