From b35ed2c742520bf08066a96bc9f929ff00fd08b2 Mon Sep 17 00:00:00 2001 From: R Veera Kumar Date: Thu, 11 Nov 2021 08:25:54 +0530 Subject: [PATCH] Add expected state to case_1_regression for extsb in 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 c023ee06..bd43ecc3 100644 --- a/src/openpower/test/alu/alu_cases.py +++ b/src/openpower/test/alu/alu_cases.py @@ -40,7 +40,10 @@ class ALUTestCase(TestAccumulatorBase): lst = [f"extsb 3, 1"] initial_regs = [0] * 32 initial_regs[1] = 0x7f9497aaff900ea0 - self.add_case(Program(lst, bigendian), initial_regs) + e = ExpectedState(pc=4) + e.intregs[1] = 0x7f9497aaff900ea0 + e.intregs[3] = 0xffffffffffffffa0 + self.add_case(Program(lst, bigendian), initial_regs, expected=e) lst = [f"add. 3, 1, 2"] initial_regs = [0] * 32 initial_regs[1] = 0xc523e996a8ff6215 -- 2.30.2