From f01e9a0b4b5037cfe94e8b1b0b94343844ef910a Mon Sep 17 00:00:00 2001 From: R Veera Kumar Date: Mon, 22 Nov 2021 07:48:06 +0530 Subject: [PATCH] Add expected state to case_addme_ca_so_3 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 e9353622..71e45c2f 100644 --- a/src/openpower/test/alu/alu_cases.py +++ b/src/openpower/test/alu/alu_cases.py @@ -159,8 +159,14 @@ class ALUTestCase(TestAccumulatorBase): xer[XER_bits['CA']] = 1 xer[XER_bits['SO']] = 1 initial_sprs[special_sprs['XER']] = xer + e = ExpectedState(pc=4) + e.intregs[16] = 0x7ffffffff + e.intregs[6] = 0x7ffffffff + e.crregs[0] = 0x5 + e.so = 0x1 + e.ca = 0x3 self.add_case(Program(lst, bigendian), - initial_regs, initial_sprs) + initial_regs, initial_sprs, expected=e) def case_addze(self): insns = ["addze", "addze.", "addzeo", "addzeo."] -- 2.30.2