Add expected state to case_cmplw_microwatt_1 in alu_cases unit test
authorR Veera Kumar <vklr@vkten.in>
Mon, 22 Nov 2021 06:26:17 +0000 (11:56 +0530)
committerR Veera Kumar <vklr@vkten.in>
Mon, 22 Nov 2021 06:26:17 +0000 (11:56 +0530)
src/openpower/test/alu/alu_cases.py

index b9bf128d3e373a93ac5780424e48469366bb7b95..3af7b046be38f65a6071a336e352c3946ae85cf7 100644 (file)
@@ -365,9 +365,23 @@ class ALUTestCase(TestAccumulatorBase):
         XER = 0xe00c0000
         CR = 0x50759999
 
+        e = ExpectedState(pc=4)
+        e.intregs[4] = 0xffff6dc1
+        e.crregs[0] = 0x5
+        e.crregs[1] = 0x9
+        e.crregs[2] = 0x7
+        e.crregs[3] = 0x5
+        e.crregs[4] = 0x9
+        e.crregs[5] = 0x9
+        e.crregs[6] = 0x9
+        e.crregs[7] = 0x9
+        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_cmpli_microwatt(self):
         """microwatt 1.bin: cmpli