From: Jacob Lifshay Date: Thu, 1 Jun 2023 06:54:48 +0000 (-0700) Subject: add expected values to source X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=refs%2Fheads%2Fextra322_ldst_idx;p=openpower-isa.git add expected values to source --- diff --git a/src/openpower/test/alu/maddsubrs_cases.py b/src/openpower/test/alu/maddsubrs_cases.py index 0bb58b43..7cb8f017 100644 --- a/src/openpower/test/alu/maddsubrs_cases.py +++ b/src/openpower/test/alu/maddsubrs_cases.py @@ -133,6 +133,10 @@ class MADDSUBRSTestCase(TestAccumulatorBase): e.intregs[10] |= (rt & 0xFFFF) << (16 * i) # insert element e.intregs[11] |= (rs & 0xFFFF) << (16 * i) + # asserts so you can read the expected values + assert e.intregs[10] == 0x182f_15d2_46f2_2061 + assert e.intregs[11] == 0xfe71_176f_fcef_3a21 + self.add_case(p, initial_regs, expected=e, initial_svstate=svstate) def case_0_maddrs(self):