include original svp64 instruction in comment on prefix
authorJacob Lifshay <programmerjake@gmail.com>
Fri, 26 Aug 2022 05:36:09 +0000 (22:36 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Fri, 26 Aug 2022 05:36:09 +0000 (22:36 -0700)
makes it much nicer when reading instruction traces

src/openpower/sv/trans/svp64.py

index eca75860d9838441e914fd36daf1ad9cd0e5feba..bcfa0cc8aa58d96dd54f2a6e163e7b3d206244a0 100644 (file)
@@ -1254,7 +1254,7 @@ class SVP64Asm:
 
         # fiinally yield the svp64 prefix and the thingy.  v3.0b opcode
         rc = '.' if rc_mode else ''
-        yield ".long 0x%08x" % svp64_prefix.insn.value
+        yield ".long 0x%08x # %s" % (svp64_prefix.insn.value, insn)
         log(v30b_op, v30b_newfields)
         # argh, sv.fmadds etc. need to be done manually
         if v30b_op == 'ffmadds':