Add expected state to case_1_regression for subf in alu_cases unit test
authorR Veera Kumar <vklr@vkten.in>
Wed, 10 Nov 2021 19:37:03 +0000 (01:07 +0530)
committerR Veera Kumar <vklr@vkten.in>
Wed, 10 Nov 2021 19:37:03 +0000 (01:07 +0530)
src/openpower/test/alu/alu_cases.py

index f166308e25d91e49d89a524355002acfaeb63455..6ca66451a06d82dc847b741ed316f1c3f6ac853b 100644 (file)
@@ -23,7 +23,11 @@ class ALUTestCase(TestAccumulatorBase):
         initial_regs = [0] * 32
         initial_regs[1] = 0x3d7f3f7ca24bac7b
         initial_regs[2] = 0xf6b2ac5e13ee15c2
-        self.add_case(Program(lst, bigendian), initial_regs)
+        e = ExpectedState(pc=4)
+        e.intregs[1] = 0x3d7f3f7ca24bac7b
+        e.intregs[2] = 0xf6b2ac5e13ee15c2
+        e.intregs[3] = 0xb9336ce171a26947
+        self.add_case(Program(lst, bigendian), initial_regs, expected=e)
         lst = [f"subf 3, 1, 2"]
         initial_regs = [0] * 32
         initial_regs[1] = 0x833652d96c7c0058