From 73aefd1909ee17e09404fbce9cb8ad5e4e9fef28 Mon Sep 17 00:00:00 2001 From: R Veera Kumar Date: Thu, 11 Nov 2021 09:52:13 +0530 Subject: [PATCH] Add expected state to case_1_regression for 'add' in alu_cases unit test --- src/openpower/test/alu/alu_cases.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"] -- 2.30.2