Revert "make sv.instr use CUSTOM_INSNS by default for assembling instr"
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 30 Aug 2022 13:20:38 +0000 (14:20 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 30 Aug 2022 13:20:38 +0000 (14:20 +0100)
This reverts commit 9be3b61b6a3037fdcf087f692e9145678e571a35.

src/openpower/sv/trans/svp64.py

index 53bc77287d7023250bd18a7a850096472674535c..ad8a0f62b755dcd4c9bc13b34eb1f6c3f3bea1ce 100644 (file)
@@ -1290,26 +1290,8 @@ class SVP64Asm:
         rc = '.' if rc_mode else ''
         yield ".long 0x%08x" % int(svp64_prefix)
         log(v30b_op, v30b_newfields)
-
-        v30b_op_rc = v30b_op
-        if not v30b_op.endswith('.'):
-            v30b_op_rc += rc
-
-        # svstep is weird
-        # FIXME(lkcl): should sv.svstep be like svstep?
-        if v30b_op_rc in ("svstep", "svstep."):
-            # compensate for `SVi -= 1` in svstep()
-            v30b_newfields[1] = str(int(v30b_newfields[1]) + 1)
-
-        custom_insn_hook = CUSTOM_INSNS.get(v30b_op_rc)
-        if custom_insn_hook is not None:
-            fields = tuple(map(to_number, v30b_newfields))
-            insn_num = custom_insn_hook(fields)
-            log(opcode, bin(insn_num))
-            yield ".long 0x%X # %s" % (insn_num, insn)
-            return
         # argh, sv.fmadds etc. need to be done manually
-        elif v30b_op == 'ffmadds':
+        if v30b_op == 'ffmadds':
             opcode = 59 << (32-6)    # bits 0..6 (MSB0)
             opcode |= int(v30b_newfields[0]) << (32-11)  # FRT
             opcode |= int(v30b_newfields[1]) << (32-16)  # FRA