From: Dmitry Selyutin Date: Wed, 31 May 2023 21:00:51 +0000 (+0300) Subject: power_enums: introduce Reg pair property X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae348108694c71c9d9b9cfe4040fd127e5bceeaa;p=openpower-isa.git power_enums: introduce Reg pair property --- diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index 5e4d242f..93ad05bc 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -327,6 +327,17 @@ class Reg(Enum): Reg.RT_OR_ZERO, )) + @property + def pair(self): + return (self in ( + Reg.RSp, + Reg.RTp, + Reg.FRAp, + Reg.FRBp, + Reg.FRSp, + Reg.FRTp, + )) + @unique class SVP64PredMode(Enum):