From: Dmitry Selyutin Date: Sun, 4 Sep 2022 16:17:48 +0000 (+0300) Subject: power_insn: refactor operation order X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=198724fc11da25a18153661bb1c6386180a32515;p=openpower-isa.git power_insn: refactor operation order --- diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 5eee8406..7c3f61d6 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -1145,6 +1145,9 @@ class SVP64Instruction(PrefixedInstruction): yield f"{blob_suffix} .long 0x{int(self.suffix):08x}" return + yield f"{blob_prefix} sv.{record.name}" + yield f"{blob_suffix}" + Rc = False if record.operands["Rc"] is not None: Rc = bool(self[record.fields["Rc"]]) @@ -1223,9 +1226,6 @@ class SVP64Instruction(PrefixedInstruction): if type(mode) is Mode: raise NotImplementedError - yield f"{blob_prefix} sv.{record.name}" - yield f"{blob_suffix}" - if verbose: indent = (" " * 4) binary = self.binary