From: Dmitry Selyutin Date: Wed, 31 May 2023 21:00:37 +0000 (+0300) Subject: power_enums: introduce Reg or_zero property X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67d5ea669ad31260856b15fba0b6b131429696ec;p=openpower-isa.git power_enums: introduce Reg or_zero property --- diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index e2c5b93b..5e4d242f 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -320,6 +320,13 @@ class Reg(Enum): return self + @property + def or_zero(self): + return (self in ( + Reg.RA_OR_ZERO, + Reg.RT_OR_ZERO, + )) + @unique class SVP64PredMode(Enum):