add quick test_pysvp64dis.py of LD/ST data-dependent fail-first
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 4 Apr 2023 15:10:02 +0000 (16:10 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:17 +0000 (19:51 +0100)
src/openpower/sv/trans/test_pysvp64dis.py

index 03c9e571091821abda38a625d2e67e9b99b6c343..ed1743242523856b5d459aefaaa3a1499e97772f 100644 (file)
@@ -445,5 +445,23 @@ class SVSTATETestCase(unittest.TestCase):
                         ]
         self._do_tst(expected)
 
+    def test_32_ldst_idx_ffirst(self):
+        expected = [
+                    "sv.stdx/ff=RC1 *4,16,2",
+                    "sv.stdx/ff=~RC1 *4,16,2",
+                    "sv.ldx/ff=RC1 *4,16,2",
+                    "sv.ldx/ff=~RC1 *4,16,2",
+                        ]
+        self._do_tst(expected)
+
+    def test_33_ldst_imm_ffirst(self):
+        expected = [
+                    "sv.std/ff=RC1 *4,16(2)",
+                    "sv.std/ff=~RC1 *4,16(2)",
+                    "sv.ld/ff=RC1 *4,16(2)",
+                    "sv.ld/ff=~RC1 *4,16(2)",
+                        ]
+        self._do_tst(expected)
+
 if __name__ == "__main__":
     unittest.main()