From daf5f230eafecffc231b4e69856722ac3096a1ba Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 17 Sep 2022 22:46:37 +0300 Subject: [PATCH] power_insn: fix zz specifiers --- src/openpower/decoder/power_insn.py | 48 ++++++++++------------------- 1 file changed, 16 insertions(+), 32 deletions(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index c9cba3f6..7d126bb8 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -1371,10 +1371,8 @@ class NormalSaturationExtRM(NormalBaseRM): @property def specifiers(self): - if self.dz: - yield f"dz" - if self.sz: - yield f"sz" + if self.zz: + yield f"zz" if self.sat: yield "sats" else: @@ -1398,10 +1396,8 @@ class NormalPredResultRc0RM(NormalBaseRM): @property def specifiers(self): - if self.dz: - yield f"dz" - if self.sz: - yield f"sz" + if self.zz: + yield f"zz" yield from super().specifiers @@ -1431,10 +1427,8 @@ class LDSTImmSimpleRM(LDSTImmBaseRM): @property def specifiers(self): - if self.dz: - yield f"dz" - if self.sz: - yield f"sz" + if self.zz: + yield f"zz" yield from super().specifiers @@ -1461,10 +1455,8 @@ class LDSTImmSaturationRM(LDSTImmBaseRM): @property def specifiers(self): - if self.dz: - yield f"dz" - if self.sz: - yield f"sz" + if self.zz: + yield f"zz" if self.sat: yield "sats" else: @@ -1563,10 +1555,8 @@ class LDSTIdxPredResultRc0RM(LDSTIdxBaseRM): @property def specifiers(self): - if self.dz: - yield f"dz" - if self.sz: - yield f"sz" + if self.zz: + yield f"zz" yield from super().specifiers @@ -1617,10 +1607,8 @@ class CROpRM(BaseRM): @property def specifiers(self): - if self.dz: - yield f"dz" - if self.sz: - yield f"sz" + if self.zz: + yield f"zz" yield from super().specifiers class reserved(BaseRM): @@ -1633,10 +1621,8 @@ class CROpRM(BaseRM): @property def specifiers(self): - if self.dz: - yield f"dz" - if self.sz: - yield f"sz" + if self.zz: + yield f"zz" yield from super().specifiers class ff3(BaseRM): @@ -1651,10 +1637,8 @@ class CROpRM(BaseRM): @property def specifiers(self): - if self.dz: - yield f"dz" - if self.sz: - yield f"sz" + if self.zz: + yield f"zz" yield from super().specifiers class ff5(BaseRM): -- 2.30.2