add vec2/3/4 test_pysvp64dis test
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 17 Sep 2022 15:53:28 +0000 (16:53 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 17 Sep 2022 15:53:48 +0000 (16:53 +0100)
src/openpower/sv/trans/test_pysvp64dis.py

index 44ebf136a1664f5ba2b8a76a29c73f900068d1fe..9f89edfb5cf124a95b8acc04f00301d5b2e90006 100644 (file)
@@ -172,6 +172,14 @@ class SVSTATETestCase(unittest.TestCase):
         dis = lambda entry: sv_binutils_fptrans.dis(entry, binutils=False)
         self._do_tst(list(map(dis, entries)))
 
+    def test_10_vec(self):
+        expected = [
+                    "sv.add./vec2 *3,*7,*11",
+                    "sv.add./vec3 *3,*7,*11",
+                    "sv.add./vec4 *3,*7,*11",
+                        ]
+        self._do_tst(expected)
+
 if __name__ == "__main__":
     unittest.main()