From: R Veera Kumar Date: Wed, 10 Nov 2021 19:37:03 +0000 (+0530) Subject: Add expected state to case_1_regression for subf in alu_cases unit test X-Git-Tag: sv_maxu_works-initial~756 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3fe1effe787713add876d1a60a37c387bfafa5b;p=openpower-isa.git Add expected state to case_1_regression for subf in alu_cases unit test --- 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