ppc/svp64: support cprop instructions
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 11 Apr 2023 18:27:23 +0000 (21:27 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Wed, 26 Apr 2023 12:14:41 +0000 (15:14 +0300)
gas/testsuite/gas/ppc/cprop.d [new file with mode: 0644]
gas/testsuite/gas/ppc/cprop.s [new file with mode: 0644]
gas/testsuite/gas/ppc/ppc.exp
opcodes/ppc-opc.c

diff --git a/gas/testsuite/gas/ppc/cprop.d b/gas/testsuite/gas/ppc/cprop.d
new file mode 100644 (file)
index 0000000..de84b94
--- /dev/null
@@ -0,0 +1,14 @@
+#as: -mlibresoc
+#objdump: -dr -Mlibresoc
+
+.*:     file format .*
+
+
+Disassembly of section \.text:
+0+ <\.text>:
+.*:\s+(5b e0 03 1c|1c 03 e0 5b)\s+cprop\s+r31,r0,r0
+.*:\s+(58 1f 03 1c|1c 03 1f 58)\s+cprop\s+r0,r31,r0
+.*:\s+(58 00 fb 1c|1c fb 00 58)\s+cprop\s+r0,r0,r31
+.*:\s+(5b e0 03 1d|1d 03 e0 5b)\s+cprop.\s+r31,r0,r0
+.*:\s+(58 1f 03 1d|1d 03 1f 58)\s+cprop.\s+r0,r31,r0
+.*:\s+(58 00 fb 1d|1d fb 00 58)\s+cprop.\s+r0,r0,r31
diff --git a/gas/testsuite/gas/ppc/cprop.s b/gas/testsuite/gas/ppc/cprop.s
new file mode 100644 (file)
index 0000000..223697f
--- /dev/null
@@ -0,0 +1,6 @@
+cprop 31,0,0
+cprop 0,31,0
+cprop 0,0,31
+cprop. 31,0,0
+cprop. 0,31,0
+cprop. 0,0,31
index ab2cb234967e260a11a48646f739086f319e5534..77a860fd046cf0f69d6173d04627f9e110efbdaf 100644 (file)
@@ -165,3 +165,4 @@ run_dump_test "fmvis"
 run_dump_test "fishmv"
 run_dump_test "minmax"
 run_dump_test "avgadd"
+run_dump_test "cprop"
index 62aafe9e74378440079a851158b0ce51a3e41d83..734e025c5f519a7716ab7b9d5f5bc7ca0ae6e49e 100644 (file)
@@ -7041,6 +7041,9 @@ const struct powerpc_opcode powerpc_opcodes[] = {
 {"maxs",       XRC(22,462,0),  X_MASK, SVP64,  PPCVLE, {RT, RA, RB}},
 {"maxs.",      XRC(22,462,1),  X_MASK, SVP64,  PPCVLE, {RT, RA, RB}},
 
+{"cprop",      XRC(22,398,0),  X_MASK, SVP64,  PPCVLE, {RT, RA, RB}},
+{"cprop.",     XRC(22,398,1),  X_MASK, SVP64,  PPCVLE, {RT, RA, RB}},
+
 {"avgadd",     XRC(22,846,0),  X_MASK, SVP64,  PPCVLE, {RT, RA, RB}},
 {"avgadd.",    XRC(22,846,1),  X_MASK, SVP64,  PPCVLE, {RT, RA, RB}},