From d845a4b7b0e888d7ecd3670e7e0cdda55e58f37f Mon Sep 17 00:00:00 2001 From: Andrey Miroshnikov Date: Wed, 22 Jun 2022 15:38:10 +0100 Subject: [PATCH] Added cprop test case, fails atm (not enabled by default) --- src/openpower/test/bitmanip/av_cases.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/openpower/test/bitmanip/av_cases.py b/src/openpower/test/bitmanip/av_cases.py index 292797a3..7e026ea4 100644 --- a/src/openpower/test/bitmanip/av_cases.py +++ b/src/openpower/test/bitmanip/av_cases.py @@ -398,3 +398,23 @@ class AVTestCase(TestAccumulatorBase): e.intregs[5] = 0x3 self.add_case(Program(lst, bigendian), initial_regs, expected=e) + def cse_0_cprop(self): + lst = ["cprop 3, 1, 2" ] + lst = list(SVP64Asm(lst, bigendian)) + reg_a = 0b000001 + reg_b = 0b000111 + reg_t = 0b001111 + + initial_regs = [0] * 32 + initial_regs[1] = reg_a + initial_regs[2] = reg_b + #initial_regs[4] = 0x9 + #initial_regs[5] = 0x3 + e = ExpectedState(pc=8) + e.intregs[1] = reg_a + e.intregs[2] = reg_b + e.intregs[3] = reg_t + #e.intregs[4] = 0x9 + #e.intregs[5] = 0x3 + self.add_case(Program(lst, bigendian), initial_regs, expected=e) + -- 2.30.2