From: Dmitry Selyutin Date: Fri, 16 Sep 2022 16:54:04 +0000 (+0300) Subject: test_pysvp64dis: test fptrans X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae8765adb84cf613cef721bc70521ef3d4eae439;p=openpower-isa.git test_pysvp64dis: test fptrans --- 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()