ppc/svp64: support maddedu instruction
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 28 May 2023 22:04:55 +0000 (01:04 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 14 Nov 2023 19:10:32 +0000 (22:10 +0300)
gas/testsuite/gas/ppc/maddedu.d [new file with mode: 0644]
gas/testsuite/gas/ppc/maddedu.s [new file with mode: 0644]
gas/testsuite/gas/ppc/ppc.exp
opcodes/ppc-opc.c

diff --git a/gas/testsuite/gas/ppc/maddedu.d b/gas/testsuite/gas/ppc/maddedu.d
new file mode 100644 (file)
index 0000000..2cdc221
--- /dev/null
@@ -0,0 +1,12 @@
+#as: -mlibresoc
+#objdump: -dr -Mlibresoc
+
+.*:     file format .*
+
+
+Disassembly of section \.text:
+0+ <\.text>:
+.*:\s+(13 e0 00 32|32 00 e0 13)\s+maddedu\sr31,r0,r0,r0
+.*:\s+(10 1f 00 32|32 00 1f 10)\s+maddedu\sr0,r31,r0,r0
+.*:\s+(10 00 f8 32|32 f8 00 10)\s+maddedu\sr0,r0,r31,r0
+.*:\s+(10 00 07 f2|f2 07 00 10)\s+maddedu\sr0,r0,r0,r31
diff --git a/gas/testsuite/gas/ppc/maddedu.s b/gas/testsuite/gas/ppc/maddedu.s
new file mode 100644 (file)
index 0000000..59f89f0
--- /dev/null
@@ -0,0 +1,4 @@
+maddedu 31,0,0,0
+maddedu 0,31,0,0
+maddedu 0,0,31,0
+maddedu 0,0,0,31
index b2526fc48cb2012ed3510a56704aab5f3716a984..4f3ab6a5949447f421e688ed8111a174d54ec838 100644 (file)
@@ -168,3 +168,4 @@ run_dump_test "cprop"
 run_dump_test "absd"
 run_dump_test "bmask"
 run_dump_test "fptrans"
+run_dump_test "maddedu"
index 46d1be73fe4b422a12174c68a6debac05493f485..a26b9dd96c3cb8dbf2ae66d2a9d5b3dca023216a 100644 (file)
@@ -5246,6 +5246,7 @@ const struct powerpc_opcode powerpc_opcodes[] = {
 {"maddhdu",    VXA(4,  49),    VXA_MASK,    POWER9,    0,              {RT, RA, RB, RC}},
 {"ps_mul",     A  (4,  25,0),  AFRB_MASK,   PPCPS,     0,              {FRT, FRA, FRC}},
 {"ps_mul.",    A  (4,  25,1),  AFRB_MASK,   PPCPS,     0,              {FRT, FRA, FRC}},
+{"maddedu",    VXA(4,  50),    VXA_MASK,    SVP64,     PPCVLE,         {RT, RA, RB, RC}},
 {"maddld",     VXA(4,  51),    VXA_MASK,    POWER9,    0,              {RT, RA, RB, RC}},
 {"ps_rsqrte",  A  (4,  26,0), AFRAFRC_MASK, PPCPS,     0,              {FRT, FRB}},
 {"ps_rsqrte.", A  (4,  26,1), AFRAFRC_MASK, PPCPS,     0,              {FRT, FRB}},