power_insn: refactor operation order
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 4 Sep 2022 16:17:48 +0000 (19:17 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 4 Sep 2022 16:17:48 +0000 (19:17 +0300)
src/openpower/decoder/power_insn.py

index 5eee84061dbace0953e88c86bcbbe48afa098601..7c3f61d6aa0983f53947e551c7f831b54bca6ff2 100644 (file)
@@ -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