power_insn: dump operand type (scalar/vector)
authorDmitry Selyutin <ghostmansd@gmail.com>
Wed, 7 Sep 2022 20:22:46 +0000 (23:22 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Wed, 7 Sep 2022 20:23:20 +0000 (23:23 +0300)
src/openpower/decoder/power_insn.py

index 04e38e96a15b0fc4c36252556da5e79ffe5ec739..9cf9a2fd42aa3c9634383bd4f940f9b53419a526 100644 (file)
@@ -611,6 +611,8 @@ class DynamicOperandReg(DynamicOperand):
                 else:
                     etype = repr(record.etype).lower()
                     yield f"{indent}{indent}{etype}{extra_idx!r}"
+                yield f"{indent}type"
+                yield f"{indent}{indent}{'vector' if vector else 'scalar'}"
         else:
             vector = "*" if vector else ""
             yield f"{vector}{prefix}{int(value)}"