fix annoying typo, comment-out asm_process()
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 24 Aug 2022 12:29:01 +0000 (13:29 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 24 Aug 2022 12:29:01 +0000 (13:29 +0100)
src/openpower/sv/trans/svp64.py

index fa830c7cdbba9477b573808622a70e4a38462d9b..42b18afa4fc78ce7c5727890fb4eb0670fcb06d2 100644 (file)
@@ -667,6 +667,7 @@ class SVP64Asm:
 
         if v30b_op_orig not in isa.instr:
             raise Exception("opcode %s of '%s' not supported" %
+                            (v30b_op, insn))
 
         if ldst_shift:
             # okaay we need to process the fields and make this:
@@ -1543,4 +1544,8 @@ if __name__ == '__main__':
     ]
     isa = SVP64Asm(lst, macros=macros)
     log("list", list(isa))
-    asm_process()
+    # running svp64.py is designed to test hard-coded lists
+    # (above) - which strictly speaking should all be unit tests.
+    # if you need to actually do assembler translation at the
+    # commandline use "pysvp64asm" - see setup.py
+    # XXX NO. asm_process()