From 8740dd6bab0f89f2be895de504e5ce9c0459bc24 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 29 Sep 2022 15:06:52 +0100 Subject: [PATCH] destination for maddedu and divmod2du for RS defaults to RC for scalar --- src/openpower/test/bigint/bigint_cases.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openpower/test/bigint/bigint_cases.py b/src/openpower/test/bigint/bigint_cases.py index fdafea59..a783551c 100644 --- a/src/openpower/test/bigint/bigint_cases.py +++ b/src/openpower/test/bigint/bigint_cases.py @@ -15,7 +15,7 @@ class BigIntCases(TestAccumulatorBase): gprs[7] = 0x02468ACE13579BDF e = ExpectedState(pc=4, int_regs=gprs) e.intregs[3] = (gprs[5] * gprs[6] + gprs[7]) % 2 ** 64 - e.intregs[4] = (gprs[5] * gprs[6] + gprs[7]) >> 64 + e.intregs[7] = (gprs[5] * gprs[6] + gprs[7]) >> 64 self.add_case(Program(lst, False), gprs, expected=e) def case_divmod2du(self): @@ -27,7 +27,7 @@ class BigIntCases(TestAccumulatorBase): e = ExpectedState(pc=4, int_regs=gprs) v = gprs[5] | (gprs[7] << 64) e.intregs[3] = v // gprs[6] - e.intregs[4] = v % gprs[6] + e.intregs[7] = v % gprs[6] self.add_case(Program(lst, False), gprs, expected=e) # FIXME: test more divmod2du special cases -- 2.30.2