From f3fe1effe787713add876d1a60a37c387bfafa5b Mon Sep 17 00:00:00 2001 From: R Veera Kumar Date: Thu, 11 Nov 2021 01:07:03 +0530 Subject: [PATCH] Add expected state to case_1_regression for subf 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 f166308e..6ca66451 100644 --- a/src/openpower/test/alu/alu_cases.py +++ b/src/openpower/test/alu/alu_cases.py @@ -23,7 +23,11 @@ class ALUTestCase(TestAccumulatorBase): initial_regs = [0] * 32 initial_regs[1] = 0x3d7f3f7ca24bac7b initial_regs[2] = 0xf6b2ac5e13ee15c2 - self.add_case(Program(lst, bigendian), initial_regs) + e = ExpectedState(pc=4) + e.intregs[1] = 0x3d7f3f7ca24bac7b + e.intregs[2] = 0xf6b2ac5e13ee15c2 + e.intregs[3] = 0xb9336ce171a26947 + self.add_case(Program(lst, bigendian), initial_regs, expected=e) lst = [f"subf 3, 1, 2"] initial_regs = [0] * 32 initial_regs[1] = 0x833652d96c7c0058 -- 2.30.2