From 8e189defdde58210ddca999ff8c0ceacde75d212 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 31 May 2023 23:54:48 -0700 Subject: [PATCH] add expected values to source --- src/openpower/test/alu/maddsubrs_cases.py | 4 ++++ 1 file changed, 4 insertions(+) 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): -- 2.30.2