From d7d528ab65aa6a7240670515637dfca5837b4b00 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 25 Oct 2022 21:16:25 +0300 Subject: [PATCH] test_pysvp64dis: test shadd/shadduw instructions --- src/openpower/sv/trans/test_pysvp64dis.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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() -- 2.30.2