From ae8765adb84cf613cef721bc70521ef3d4eae439 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Fri, 16 Sep 2022 19:54:04 +0300 Subject: [PATCH] test_pysvp64dis: test fptrans --- src/openpower/sv/trans/test_pysvp64dis.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/openpower/sv/trans/test_pysvp64dis.py b/src/openpower/sv/trans/test_pysvp64dis.py index 6694fae0..bf0c98d7 100644 --- a/src/openpower/sv/trans/test_pysvp64dis.py +++ b/src/openpower/sv/trans/test_pysvp64dis.py @@ -1,7 +1,14 @@ from openpower.simulator.program import Program from openpower.sv.trans.pysvp64dis import load, dump from openpower.sv.trans.svp64 import SVP64Asm -from openpower.decoder.power_insn import Verbosity +from openpower.decoder.power_insn import ( + Database, + Verbosity, +) +from openpower.decoder.power_enums import ( + find_wiki_dir, +) +from openpower.sv import sv_binutils_fptrans import unittest import sys @@ -163,6 +170,12 @@ class SVSTATETestCase(unittest.TestCase): ] self._do_tst(expected) + def test_9_fptrans(self): + db = Database(find_wiki_dir()) + entries = sorted(sv_binutils_fptrans.collect(db)) + dis = lambda entry: sv_binutils_fptrans.dis(entry, binutils=False) + self._do_tst(list(map(dis, entries))) + if __name__ == "__main__": unittest.main() -- 2.30.2