From: Dmitry Selyutin Date: Tue, 25 Oct 2022 18:16:25 +0000 (+0300) Subject: test_pysvp64dis: test shadd/shadduw instructions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7d528ab65aa6a7240670515637dfca5837b4b00;p=openpower-isa.git test_pysvp64dis: test shadd/shadduw instructions --- diff --git a/src/openpower/sv/trans/test_pysvp64dis.py b/src/openpower/sv/trans/test_pysvp64dis.py index 2a46375d..173acce0 100644 --- a/src/openpower/sv/trans/test_pysvp64dis.py +++ b/src/openpower/sv/trans/test_pysvp64dis.py @@ -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()