test_pysvp64dis: test shadd/shadduw instructions
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 25 Oct 2022 18:16:25 +0000 (21:16 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 25 Oct 2022 18:16:25 +0000 (21:16 +0300)
src/openpower/sv/trans/test_pysvp64dis.py

index 2a46375d9d6317e7699717d07c75509a9b67a4ef..173acce01b3fa688582d9645b0300b276ccf00df 100644 (file)
@@ -421,6 +421,26 @@ class SVSTATETestCase(unittest.TestCase):
                         ]
         self._do_tst(expected)
 
+    def test_31_shadd_shadduw(self):
+        expected = [
+                    "shadd 31,0,0,0",
+                    "shadd 0,31,0,0",
+                    "shadd 0,0,31,0",
+                    "shadd 0,0,0,3",
+                    "shadd. 31,0,0,0",
+                    "shadd. 0,31,0,0",
+                    "shadd. 0,0,31,0",
+                    "shadd. 0,0,0,3",
+                    "shadduw 31,0,0,0",
+                    "shadduw 0,31,0,0",
+                    "shadduw 0,0,31,0",
+                    "shadduw 0,0,0,3",
+                    "shadduw. 31,0,0,0",
+                    "shadduw. 0,31,0,0",
+                    "shadduw. 0,0,31,0",
+                    "shadduw. 0,0,0,3",
+                        ]
+        self._do_tst(expected)
 
 if __name__ == "__main__":
     unittest.main()