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 Database, Style
+from openpower.insndb.dis import load, dump
+from openpower.insndb.asm import SVP64Asm
+from openpower.insndb.core import Database, Style
from openpower.decoder.power_enums import find_wiki_dir
from openpower.sv import sv_binutils_fptrans
import unittest
]
self._do_tst(expected)
- def test_31_shadd_shaddw_shadduw(self):
- expected = [
- "shadd 31,0,0,0",
- "shadd 0,31,0,0",
- "shadd 0,0,31,0",
- "shadd 0,0,0,3",
- "shadd. 31,0,0,0",
- "shadd. 0,31,0,0",
- "shadd. 0,0,31,0",
- "shadd. 0,0,0,3",
- "shaddw 31,0,0,0",
- "shaddw 0,31,0,0",
- "shaddw 0,0,31,0",
- "shaddw 0,0,0,3",
- "shaddw. 31,0,0,0",
- "shaddw. 0,31,0,0",
- "shaddw. 0,0,31,0",
- "shaddw. 0,0,0,3",
- "shadduw 31,0,0,0",
- "shadduw 0,31,0,0",
- "shadduw 0,0,31,0",
- "shadduw 0,0,0,3",
- "shadduw. 31,0,0,0",
- "shadduw. 0,31,0,0",
- "shadduw. 0,0,31,0",
- "shadduw. 0,0,0,3",
+ def test_31_sadd_saddw_sadduw(self):
+ expected = [
+ "sadd 31,0,0,0",
+ "sadd 0,31,0,0",
+ "sadd 0,0,31,0",
+ "sadd 0,0,0,3",
+ "sadd. 31,0,0,0",
+ "sadd. 0,31,0,0",
+ "sadd. 0,0,31,0",
+ "sadd. 0,0,0,3",
+ "saddw 31,0,0,0",
+ "saddw 0,31,0,0",
+ "saddw 0,0,31,0",
+ "saddw 0,0,0,3",
+ "saddw. 31,0,0,0",
+ "saddw. 0,31,0,0",
+ "saddw. 0,0,31,0",
+ "saddw. 0,0,0,3",
+ "sadduw 31,0,0,0",
+ "sadduw 0,31,0,0",
+ "sadduw 0,0,31,0",
+ "sadduw 0,0,0,3",
+ "sadduw. 31,0,0,0",
+ "sadduw. 0,31,0,0",
+ "sadduw. 0,0,31,0",
+ "sadduw. 0,0,0,3",
]
self._do_tst(expected)
]
self._do_tst(expected)
+ def test_36_extras_rlwimi(self):
+ self._do_tst(["sv.rlwimi 3, 1, 5, 20, 6"])
+
+ def test_36_extras_rlwimi_(self):
+ self._do_tst(["sv.rlwimi. 3, 1, 5, 20, 6"])
+
+ def test_36_extras_rldimi(self):
+ self._do_tst(["sv.rldimi 3, 4, 56, 4"])
+
+ def test_36_extras_rldimi_(self):
+ self._do_tst(["sv.rldimi. 3, 4, 56, 4"])
+
+ def test_36_extras_fishmv(self):
+ self._do_tst(["sv.fishmv 3, 0x0FD0"])
+
if __name__ == "__main__":
unittest.main()