From 14bd38a486f8dfc025a5c438c1ead54a657f0e10 Mon Sep 17 00:00:00 2001 From: R Veera Kumar Date: Sun, 21 Nov 2021 19:46:02 +0530 Subject: [PATCH] Add expected state to case_cmp in alu_cases unit test --- src/openpower/test/alu/alu_cases.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/openpower/test/alu/alu_cases.py b/src/openpower/test/alu/alu_cases.py index e743f749..f3695e0b 100644 --- a/src/openpower/test/alu/alu_cases.py +++ b/src/openpower/test/alu/alu_cases.py @@ -214,7 +214,13 @@ class ALUTestCase(TestAccumulatorBase): initial_regs = [0] * 32 initial_regs[6] = 0x10 initial_regs[7] = 0x05 - self.add_case(Program(lst, bigendian), initial_regs, {}) + e = ExpectedState(pc=8) + e.intregs[6] = 0x10 + e.intregs[7] = 0x5 + e.intregs[1] = 0xfffffffffffffff5 + e.crregs[0] = 0x8 + e.crregs[2] = 0x4 + self.add_case(Program(lst, bigendian), initial_regs, expected=e) def case_cmp2(self): lst = ["cmp cr2, 0, 2, 3"] -- 2.30.2