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=20915d66aaa71b694346e4bd5ff875b28aad7e00;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):