more generic allow fft mode 2nd output detection. REALLY need a CSV Out2 column
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 10 Jul 2021 11:36:43 +0000 (12:36 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 10 Jul 2021 11:36:43 +0000 (12:36 +0100)
src/openpower/decoder/isa/caller.py

index 62bfb6cebc2b50dda94a0ca47459cbadf8005d00..2cd1c30ed9c41b574ad66d44385c61c3fd865488 100644 (file)
@@ -529,7 +529,8 @@ def get_pdecode_idx_out2(dec2, name):
     if name == 'FRS':
         int_op = yield dec2.dec.op.internal_op
         fft_en = yield dec2.use_svp64_fft
-        if int_op == MicrOp.OP_FP_MADD.value and fft_en:
+        #if int_op == MicrOp.OP_FP_MADD.value and fft_en:
+        if fft_en:
             log ("get_pdecode_idx_out2", out_sel, OutSel.FRS.value,
                                            out, o_isvec)
             return out, o_isvec
@@ -1096,6 +1097,11 @@ class ISACaller:
             illegal = False
             name = 'ffmadds'
 
+        # and ffadds not being supported by binutils (.long)
+        if asmop == 'ffadds':
+            illegal = False
+            name = 'ffadds'
+
         if illegal:
             print("illegal", name, asmop)
             self.call_trap(0x700, PIb.ILLEG)