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=0607f210192ed7ac6097a00843e9c15ef4ffc1f8;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):