power_insn: support svm specifier
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 18 Sep 2022 09:07:17 +0000 (12:07 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 18 Sep 2022 13:34:22 +0000 (14:34 +0100)
src/openpower/decoder/power_insn.py

index ca68f9fc03be12d3e9c20e5755ddaab724f78c20..e258bb1f2406478b46eedef7238ea2b68160fca0 100644 (file)
@@ -1349,6 +1349,13 @@ class NormalSubvectorReduceRM(NormalBaseRM):
     """normal: subvector reduce mode, SUBVL>1"""
     SVM: BaseRM.mode[3]
 
+    @property
+    def specifiers(self):
+        if self.SVM:
+            yield "svm"
+
+        yield from super().specifiers
+
 
 class NormalReservedRM(NormalBaseRM):
     """normal: reserved"""
@@ -1645,6 +1652,9 @@ class CROpSubvectorReduceRM(CROpBaseRM):
     def specifiers(self):
         if self.zz:
             yield f"zz"
+        if self.SVM:
+            yield "svm"
+
         yield from super().specifiers