From 4773f8bbebf6b64092f7ee42da988ae0f2097c9e Mon Sep 17 00:00:00 2001 From: R Veera Kumar Date: Mon, 22 Nov 2021 15:54:08 +0530 Subject: [PATCH] Add expected state to case_cmpeqb in alu_cases unit test --- src/openpower/test/alu/alu_cases.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/openpower/test/alu/alu_cases.py b/src/openpower/test/alu/alu_cases.py index 3af7b046..4560c100 100644 --- a/src/openpower/test/alu/alu_cases.py +++ b/src/openpower/test/alu/alu_cases.py @@ -431,5 +431,14 @@ class ALUTestCase(TestAccumulatorBase): initial_regs = [0] * 32 initial_regs[1] = i initial_regs[2] = 0x0001030507090b0f - self.add_case(Program(lst, bigendian), initial_regs, {}) + + e = ExpectedState(pc=4) + e.intregs[1] = i + e.intregs[2] = 0x1030507090b0f + matlst = [ 0x00, 0x01, 0x03, 0x05, 0x07, 0x09, 0x0b, 0x0f ] + for j in matlst: + if j == i: + e.crregs[1] = 0x4 + + self.add_case(Program(lst, bigendian), initial_regs, expected=e) -- 2.30.2