svp64.py: always put leading zeroes for prefix
authorDmitry Selyutin <ghostmansd@gmail.com>
Thu, 26 May 2022 14:23:07 +0000 (14:23 +0000)
committerDmitry Selyutin <ghostmansd@gmail.com>
Thu, 26 May 2022 14:25:29 +0000 (14:25 +0000)
src/openpower/sv/trans/svp64.py

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