add minor_4.csv for maddld/maddhdu/maddhd and to insn_db.csv
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 15 Sep 2022 20:48:28 +0000 (21:48 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 15 Sep 2022 20:48:28 +0000 (21:48 +0100)
also add test_pysvp64dis.py to check it asm/disasms

openpower/isatables/insndb.csv
openpower/isatables/minor_4.csv [new file with mode: 0644]
src/openpower/sv/trans/test_pysvp64dis.py

index 4b71a0741a213797de827bf4c07c75a1bfcd3a75..80b483de35f488f271d13064e0b39d5ed79d9b5f 100644 (file)
@@ -6,6 +6,7 @@ minor_58.csv,58,30:31,NONE,integer
 minor_62.csv,62,30:31,NONE,integer
 minor_22.csv,22,21:31,NONE,pattern
 minor_5.csv,5,21:31,NONE,pattern
+minor_4.csv,4,26:31,NONE,integer
 minor_63.csv,63,21:30,NONE,pattern
 minor_59.csv,59,21:30,NONE,pattern
 major.csv,NONE,0:5,NONE,integer
diff --git a/openpower/isatables/minor_4.csv b/openpower/isatables/minor_4.csv
new file mode 100644 (file)
index 0000000..b41cb20
--- /dev/null
@@ -0,0 +1,6 @@
+# SPDX-License-Header: CC-BY-4
+# derived from microwatt decode1.vhdl, with thanks and gratitude (IBM, OPF)
+opcode,unit,internal op,in1,in2,in3,out,CR in,CR out,inv A,inv out,cry in,cry out,ldst len,BR,sgn ext,upd,rsrv,32b,sgn,rc,lk,sgl pipe,comment,form,CONDITIONS,unofficial,comment2
+48,ALU,OP_MADDHD,RA,RB,RC,RT,NONE,NONE,0,0,ZERO,0,NONE,0,0,0,0,1,0,NONE,0,0,maddhd,VA,,1,
+49,ALU,OP_MADDHDU,RA,RB,RC,RT,NONE,NONE,0,0,ZERO,0,NONE,0,0,0,0,1,0,NONE,0,0,maddhdu,VA,,1,
+51,ALU,OP_MADDLD,RA,RB,RC,RT,NONE,NONE,0,0,ZERO,0,NONE,0,0,0,0,1,0,NONE,0,0,maddld,VA,,1,
index 977ec7d60bc148adea9ad577c085b7fd6e48026e..6694fae06d9083c63fb8dd5685a48c0ab7a5441b 100644 (file)
@@ -155,6 +155,14 @@ class SVSTATETestCase(unittest.TestCase):
                         ]
         self._do_tst(expected)
 
+    def test_8_madd(self):
+        expected = [
+                    "maddhd 5,4,5,3",
+                    "maddhdu 5,4,5,3",
+                    "maddld 5,4,5,3",
+                        ]
+        self._do_tst(expected)
+
 if __name__ == "__main__":
     unittest.main()