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