From ab4d52580c8d8b6b3b0ab057fd3929ac5e428dae Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Fri, 11 Nov 2022 00:51:07 -0800 Subject: [PATCH] fix case_sv_bigint_shift_left_then_back --- src/openpower/test/bigint/bigint_cases.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openpower/test/bigint/bigint_cases.py b/src/openpower/test/bigint/bigint_cases.py index bf3c325e..24050fbb 100644 --- a/src/openpower/test/bigint/bigint_cases.py +++ b/src/openpower/test/bigint/bigint_cases.py @@ -234,7 +234,7 @@ class SVP64BigIntCases(TestAccumulatorBase): prog = Program(list(SVP64Asm(["sv.dsrd/mrr *16,*16,3,5", "sv.dsld *16,*16,3,5"])), False) gprs = [0] * 32 - gprs[5] = 0x0000_0000_0000_0009 + gprs[5] = 0x9000_0000_0000_0000 gprs[16] = 0xffff_ffff_ffff_ffff gprs[17] = 0x8000_8000_8000_8001 gprs[18] = 0x0000_0000_5000_0002 @@ -242,7 +242,9 @@ class SVP64BigIntCases(TestAccumulatorBase): svstate = SVP64State() svstate.vl = 3 svstate.maxvl = 3 - e = ExpectedState(pc=8, int_regs=gprs) + e = ExpectedState(pc=16, int_regs=gprs) + e.intregs[5] = 0x0000_0000_0000_0009 + e.intregs[16] = 0xffff_ffff_ffff_fff0 self.add_case(prog, gprs, expected=e, initial_svstate=svstate) def case_sv_bigint_mul_by_scalar(self): -- 2.30.2