add expected values to source
authorJacob Lifshay <programmerjake@gmail.com>
Thu, 1 Jun 2023 06:54:48 +0000 (23:54 -0700)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:19 +0000 (19:51 +0100)
src/openpower/test/alu/maddsubrs_cases.py

index 0bb58b439ad85236fc536a3f1be9c677b8950a50..7cb8f0175245d03c3ddd44d8fbb87afc817fc356 100644 (file)
@@ -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):