Add expected state to case_cmpli_microwatt in alu_cases unit test
authorR Veera Kumar <vklr@vkten.in>
Mon, 22 Nov 2021 05:32:57 +0000 (11:02 +0530)
committerR Veera Kumar <vklr@vkten.in>
Mon, 22 Nov 2021 05:32:57 +0000 (11:02 +0530)
src/openpower/test/alu/alu_cases.py

index db22567463f352a980ac0b98b5c5ebfd41d4d498..b9bf128d3e373a93ac5780424e48469366bb7b95 100644 (file)
@@ -384,9 +384,22 @@ class ALUTestCase(TestAccumulatorBase):
         XER = 0xe00c0000
         CR = 0x90215393
 
+        e = ExpectedState(pc=4)
+        e.intregs[13] = 0x301fc7a7
+        e.crregs[0] = 0x9
+        e.crregs[2] = 0x2
+        e.crregs[3] = 0x1
+        e.crregs[4] = 0x5
+        e.crregs[5] = 0x5
+        e.crregs[6] = 0x9
+        e.crregs[7] = 0x3
+        e.so = 0x1
+        e.ov = 0x3
+        e.ca = 0x3
+
         self.add_case(Program(lst, bigendian), initial_regs,
                                 initial_sprs = {'XER': XER},
-                                initial_cr = CR)
+                                initial_cr = CR, expected=e)
 
     def case_extsb(self):
         insns = ["extsb", "extsh", "extsw"]