demo that "setvl." is not reconstructed with Rc=1 mode
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 12 Sep 2022 14:29:42 +0000 (15:29 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 12 Sep 2022 14:29:42 +0000 (15:29 +0100)
src/openpower/sv/trans/test_pysvp64dis.py

index 506edbcae991ecdcf789c28694557b5bffb3026e..2096e458c3b2ebf4a540e36df731e32c7685279e 100644 (file)
@@ -20,7 +20,7 @@ class SVSTATETestCase(unittest.TestCase):
             print ("insns", insns)
             for i, line in enumerate(dump(insns, verbosity=Verbosity.SHORT)):
                 name = expected[i].split(" ")[0]
-                with self.subTest(name):
+                with self.subTest("%d:%s" % (i, name)):
                     print("instruction", repr(line), repr(expected[i]))
                     self.assertEqual(expected[i], line,
                                      "instruction does not match "
@@ -63,6 +63,13 @@ class SVSTATETestCase(unittest.TestCase):
                         ]
         self._do_tst(expected)
 
+    def test_5_sv_management(self):
+        expected = [
+                    "setvl 5,4,5,0,1,1",
+                    "setvl. 5,4,5,0,1,1",
+                        ]
+        self._do_tst(expected)
+
 if __name__ == "__main__":
     unittest.main()