From 55e1900f558ba8df8a18d6175c7cdec8651194e4 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 5 Sep 2022 22:29:09 +0300 Subject: [PATCH] power_insn: clean extra disassembly --- src/openpower/decoder/power_insn.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index e9a51625..568542fb 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -610,7 +610,12 @@ class DynamicOperandGPR(DynamicOperandReg): yield f"{int(value):0{value.bits}b}" yield repr(span) if svp64: - yield repr(self.extra_idx(record)) + extra_idx = self.extra_idx(record) + if record.etype is _SVEtype.NONE: + yield f"extra[none]" + else: + etype = repr(record.etype).lower() + yield f"{etype}{extra_idx!r}" else: yield f"r{str(int(value))}" @@ -625,7 +630,12 @@ class DynamicOperandFPR(DynamicOperandReg): yield f"{int(value):0{value.bits}b}" yield repr(span) if svp64: - yield repr(self.extra_idx(record)) + extra_idx = self.extra_idx(record) + if record.etype is _SVEtype.NONE: + yield f"extra[none]" + else: + etype = repr(record.etype).lower() + yield f"{etype}{extra_idx!r}" else: yield f"f{str(int(value))}" -- 2.30.2