From: R Veera Kumar Date: Thu, 11 Nov 2021 04:22:13 +0000 (+0530) Subject: Add expected state to case_1_regression for 'add' in alu_cases unit test X-Git-Tag: sv_maxu_works-initial~752 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73aefd1909ee17e09404fbce9cb8ad5e4e9fef28;p=openpower-isa.git Add expected state to case_1_regression for 'add' in alu_cases unit test --- diff --git a/src/openpower/test/alu/alu_cases.py b/src/openpower/test/alu/alu_cases.py index bd43ecc3..f7041d38 100644 --- a/src/openpower/test/alu/alu_cases.py +++ b/src/openpower/test/alu/alu_cases.py @@ -53,7 +53,11 @@ class ALUTestCase(TestAccumulatorBase): initial_regs = [0] * 32 initial_regs[1] = 0x2e08ae202742baf8 initial_regs[2] = 0x86c43ece9efe5baa - self.add_case(Program(lst, bigendian), initial_regs) + e = ExpectedState(pc=4) + e.intregs[1] = 0x2e08ae202742baf8 + e.intregs[2] = 0x86c43ece9efe5baa + e.intregs[3] = 0xb4cceceec64116a2 + self.add_case(Program(lst, bigendian), initial_regs, expected=e) def case_rand(self): insns = ["add", "add.", "subf"]