From 5e8f8402f6d6ec8a251803d619e10106cb8359b3 Mon Sep 17 00:00:00 2001 From: R Veera Kumar Date: Tue, 9 Nov 2021 19:23:46 +0530 Subject: [PATCH] Add expected state to case_1_regression for extsw for alu_cases unit test --- src/openpower/test/alu/alu_cases.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openpower/test/alu/alu_cases.py b/src/openpower/test/alu/alu_cases.py index 13efdd53..f166308e 100644 --- a/src/openpower/test/alu/alu_cases.py +++ b/src/openpower/test/alu/alu_cases.py @@ -15,7 +15,10 @@ class ALUTestCase(TestAccumulatorBase): lst = [f"extsw 3, 1"] initial_regs = [0] * 32 initial_regs[1] = 0xb6a1fc6c8576af91 - self.add_case(Program(lst, bigendian), initial_regs) + e = ExpectedState(pc=4) + e.intregs[1] = 0xb6a1fc6c8576af91 + e.intregs[3] = 0xffffffff8576af91 + self.add_case(Program(lst, bigendian), initial_regs, expected=e) lst = [f"subf 3, 1, 2"] initial_regs = [0] * 32 initial_regs[1] = 0x3d7f3f7ca24bac7b -- 2.30.2