From 7b08f915a0b03666b87fc7a426afd6b0405d0e0f Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 10 Sep 2022 01:04:35 +0300 Subject: [PATCH] power_insn: do not print blob suffix unless needed --- src/openpower/decoder/power_insn.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index add1f85b..565ec85c 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -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) -- 2.30.2