sv_binutils: generate svp64_cr_in2 opindices
authorDmitry Selyutin <ghostmansd@gmail.com>
Wed, 21 Sep 2022 08:39:00 +0000 (11:39 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sat, 24 Sep 2022 09:07:36 +0000 (12:07 +0300)
src/openpower/sv/sv_binutils.py

index 7f677b2c4452ff33033065d6eaba6952917cfeff..77fe09a2004292ceebdccb8a08fc008c2ef30bed 100644 (file)
@@ -357,6 +357,7 @@ class Desc(Struct):
     extra_idx_out: Extra
     extra_idx_out2: Extra
     extra_idx_cr_in: Extra
+    extra_idx_cr_in2: Extra
     extra_idx_cr_out: Extra
 
     @classmethod
@@ -450,7 +451,7 @@ class Codegen(_enum.Enum):
 
             enums = (
                 In1Sel, In2Sel, In3Sel, OutSel,
-                CRInSel, CROutSel,
+                CRInSel, CRIn2Sel, CROutSel,
                 PType, EType, Extra,
                 Mode, Function,
             )
@@ -548,6 +549,9 @@ class Codegen(_enum.Enum):
                 CRInSel.BA: "BA",
                 CRInSel.WHOLE_REG: "FXM",
             })
+            yield from opindex(CRIn2Sel, "cr_in2", {
+                CRIn2Sel.BB: "BB",
+            })
             yield from opindex(CROutSel, "cr_out", {
                 CROutSel.BF: "BF",
                 CROutSel.BT: "BT",