From da01f438a010b3f3bafe30d19c7c9dcf3ac01723 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 4 Apr 2023 16:10:02 +0100 Subject: [PATCH] add quick test_pysvp64dis.py of LD/ST data-dependent fail-first --- src/openpower/sv/trans/test_pysvp64dis.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/openpower/sv/trans/test_pysvp64dis.py b/src/openpower/sv/trans/test_pysvp64dis.py index 03c9e571..ed174324 100644 --- a/src/openpower/sv/trans/test_pysvp64dis.py +++ b/src/openpower/sv/trans/test_pysvp64dis.py @@ -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() -- 2.30.2