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:
f4bdb97
)
Add expected state to case_1_regression for subf (2) in alu_cases unit test
author
R Veera Kumar
<vklr@vkten.in>
Thu, 11 Nov 2021 02:35:51 +0000
(08:05 +0530)
committer
R Veera Kumar
<vklr@vkten.in>
Thu, 11 Nov 2021 02:37:42 +0000
(08:07 +0530)
src/openpower/test/alu/alu_cases.py
patch
|
blob
|
history
diff --git
a/src/openpower/test/alu/alu_cases.py
b/src/openpower/test/alu/alu_cases.py
index 6ca66451a06d82dc847b741ed316f1c3f6ac853b..c023ee062a489a986a2c3d2a1fb422067e433da1 100644
(file)
--- a/
src/openpower/test/alu/alu_cases.py
+++ b/
src/openpower/test/alu/alu_cases.py
@@
-32,7
+32,11
@@
class ALUTestCase(TestAccumulatorBase):
initial_regs = [0] * 32
initial_regs[1] = 0x833652d96c7c0058
initial_regs[2] = 0x1c27ecff8a086c1a
- self.add_case(Program(lst, bigendian), initial_regs)
+ e = ExpectedState(pc=4)
+ e.intregs[1] = 0x833652d96c7c0058
+ e.intregs[2] = 0x1c27ecff8a086c1a
+ e.intregs[3] = 0x98f19a261d8c6bc2
+ self.add_case(Program(lst, bigendian), initial_regs, expected=e)
lst = [f"extsb 3, 1"]
initial_regs = [0] * 32
initial_regs[1] = 0x7f9497aaff900ea0