projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c80a48d
)
power_enums: introduce Reg or_zero property
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Wed, 31 May 2023 21:00:37 +0000
(
00:00
+0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Thu, 1 Jun 2023 18:38:44 +0000
(21:38 +0300)
src/openpower/decoder/power_enums.py
patch
|
blob
|
history
diff --git
a/src/openpower/decoder/power_enums.py
b/src/openpower/decoder/power_enums.py
index e2c5b93bad3fc8a01122a2db9271294a4248a88b..5e4d242fb5040895e2778f4b6aa2817c55901843 100644
(file)
--- 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):