From: R Veera Kumar Date: Mon, 22 Nov 2021 10:24:08 +0000 (+0530) Subject: Add expected state to case_cmpeqb in alu_cases unit test X-Git-Tag: sv_maxu_works-initial~715 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4773f8bbebf6b64092f7ee42da988ae0f2097c9e;p=openpower-isa.git Add expected state to case_cmpeqb in alu_cases unit test --- 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)