From: Luke Kenneth Casson Leighton Date: Thu, 29 Sep 2022 14:06:52 +0000 (+0100) Subject: destination for maddedu and divmod2du for RS defaults to RC for scalar X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8740dd6bab0f89f2be895de504e5ce9c0459bc24;p=openpower-isa.git destination for maddedu and divmod2du for RS defaults to RC for scalar --- 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