From: Andrey Miroshnikov Date: Wed, 22 Jun 2022 16:37:01 +0000 (+0000) Subject: Added pc based on len(lst) X-Git-Tag: sv_maxu_works-initial~362 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d1e13117cc677247b93542cec6adcf6fc7fd841;p=openpower-isa.git Added pc based on len(lst) --- diff --git a/src/openpower/test/bitmanip/av_cases.py b/src/openpower/test/bitmanip/av_cases.py index 2509613c..926a7527 100644 --- a/src/openpower/test/bitmanip/av_cases.py +++ b/src/openpower/test/bitmanip/av_cases.py @@ -401,6 +401,7 @@ class AVTestCase(TestAccumulatorBase): def case_0_cprop(self): lst = ["cprop 3, 1, 2" ] lst = list(SVP64Asm(lst, bigendian)) + last_pc = len(lst)*4 reg_a = 0b000001 reg_b = 0b000111 reg_t = 0b001111 @@ -408,7 +409,7 @@ class AVTestCase(TestAccumulatorBase): initial_regs = [0] * 32 initial_regs[1] = reg_a initial_regs[2] = reg_b - e = ExpectedState(pc=4) + e = ExpectedState(pc=last_pc) e.intregs[1] = reg_a e.intregs[2] = reg_b e.intregs[3] = reg_t @@ -417,6 +418,7 @@ class AVTestCase(TestAccumulatorBase): def case_1_cprop(self): lst = ["cprop 3, 1, 2" ] lst = list(SVP64Asm(lst, bigendian)) + last_pc = len(lst)*4 reg_a = 0b000010 reg_b = 0b001111 reg_t = 0b011100 @@ -424,7 +426,7 @@ class AVTestCase(TestAccumulatorBase): initial_regs = [0] * 32 initial_regs[1] = reg_a initial_regs[2] = reg_b - e = ExpectedState(pc=4) + e = ExpectedState(pc=last_pc) e.intregs[1] = reg_a e.intregs[2] = reg_b e.intregs[3] = reg_t @@ -433,6 +435,7 @@ class AVTestCase(TestAccumulatorBase): def case_2_cprop(self): lst = ["cprop 3, 1, 2" ] lst = list(SVP64Asm(lst, bigendian)) + last_pc = len(lst)*4 reg_a = 0b000010 reg_b = 0b001110 reg_t = 0b011110 @@ -440,7 +443,7 @@ class AVTestCase(TestAccumulatorBase): initial_regs = [0] * 32 initial_regs[1] = reg_a initial_regs[2] = reg_b - e = ExpectedState(pc=4) + e = ExpectedState(pc=last_pc) e.intregs[1] = reg_a e.intregs[2] = reg_b e.intregs[3] = reg_t