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:
02cc3bd
)
support ignoring integer registers for ExpectedState
author
Jacob Lifshay
<programmerjake@gmail.com>
Wed, 11 Oct 2023 05:05:49 +0000
(22:05 -0700)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:21 +0000
(19:26 +0000)
src/openpower/test/state.py
patch
|
blob
|
history
diff --git
a/src/openpower/test/state.py
b/src/openpower/test/state.py
index d32f4b3efdd00338b1b224698346422310aa3a36..50a015208c587d167a0cb6ab3a92c614a0a90cb2 100644
(file)
--- a/
src/openpower/test/state.py
+++ b/
src/openpower/test/state.py
@@
-170,6
+170,8
@@
class State:
# Compare int registers
for i, (intreg, intreg2) in enumerate(
zip(self.intregs, s2.intregs)):
+ if intreg is None or intreg2 is None:
+ continue
log("asserting...reg", i, intreg, intreg2)
log("code, frepr(code)", self.code, repr(self.code))
self.dut.assertEqual(intreg, intreg2,