From e83d83457d9794da825b70ec8c53e02d6ea07fdf 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