From 6a05b84dc0aef5e82dc84b86472af0128eebdca7 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Thu, 1 Jun 2023 00:00:51 +0300 Subject: [PATCH] power_enums: introduce Reg pair property --- src/openpower/decoder/power_enums.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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): -- 2.30.2