Add expected state to case_1_regression for 'add' in alu_cases unit test
authorR Veera Kumar <vklr@vkten.in>
Thu, 11 Nov 2021 04:22:13 +0000 (09:52 +0530)
committerR Veera Kumar <vklr@vkten.in>
Thu, 11 Nov 2021 04:22:13 +0000 (09:52 +0530)
src/openpower/test/alu/alu_cases.py

index bd43ecc39135f99a40a6b544431fa837faf33aef..f7041d38bc5adbf57a9cdc312a36a3ad3081fc74 100644 (file)
@@ -53,7 +53,11 @@ class ALUTestCase(TestAccumulatorBase):
         initial_regs = [0] * 32
         initial_regs[1] = 0x2e08ae202742baf8
         initial_regs[2] = 0x86c43ece9efe5baa
-        self.add_case(Program(lst, bigendian), initial_regs)
+        e = ExpectedState(pc=4)
+        e.intregs[1] = 0x2e08ae202742baf8
+        e.intregs[2] = 0x86c43ece9efe5baa
+        e.intregs[3] = 0xb4cceceec64116a2
+        self.add_case(Program(lst, bigendian), initial_regs, expected=e)
 
     def case_rand(self):
         insns = ["add", "add.", "subf"]