summaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-05-11 09:43:15 +0930
committerAlan Modra <amodra@gmail.com>2020-05-11 21:08:37 +0930
commitd7e97a765ef0b9da6cdddd907ebe9f56a71716ba (patch)
tree909b607dc6bb8174e688613cbec796e4aeca924f /gas/testsuite
parentfdefed7c26be5016944e59ccb39d4d254bd817f3 (diff)
downloadbinutils-gdb-d7e97a765ef0b9da6cdddd907ebe9f56a71716ba.tar.gz
Power10 VSX PCV generate operations
opcodes/ * ppc-opc.c (powerpc_opcodes): Add xxgenpcvbm, xxgenpcvhm, xxgenpcvwm, xxgenpcvdm. gas/ * testsuite/gas/ppc/genpcv.d, * testsuite/gas/ppc/genpcv.s: New test. * testsuite/gas/ppc/ppc.exp: Run it.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/ppc/genpcv.d14
-rw-r--r--gas/testsuite/gas/ppc/genpcv.s6
-rw-r--r--gas/testsuite/gas/ppc/ppc.exp1
3 files changed, 21 insertions, 0 deletions
diff --git a/gas/testsuite/gas/ppc/genpcv.d b/gas/testsuite/gas/ppc/genpcv.d
new file mode 100644
index 00000000000..a1982e7f7fe
--- /dev/null
+++ b/gas/testsuite/gas/ppc/genpcv.d
@@ -0,0 +1,14 @@
+#as: -mpower10
+#objdump: -dr -Mpower10
+#name: PCV generate operations
+
+.*
+
+
+Disassembly of section \.text:
+
+0+0 <_start>:
+.*: (f2 03 7f 29|29 7f 03 f2) xxgenpcvbm vs48,v15,3
+.*: (f0 02 3f 2b|2b 3f 02 f0) xxgenpcvhm vs32,v7,2
+.*: (f2 01 1f 68|68 1f 01 f2) xxgenpcvwm vs16,v3,1
+.*: (f1 00 0f 6a|6a 0f 00 f1) xxgenpcvdm vs8,v1,0
diff --git a/gas/testsuite/gas/ppc/genpcv.s b/gas/testsuite/gas/ppc/genpcv.s
new file mode 100644
index 00000000000..caada18b606
--- /dev/null
+++ b/gas/testsuite/gas/ppc/genpcv.s
@@ -0,0 +1,6 @@
+ .text
+_start:
+ xxgenpcvbm 48,15,3
+ xxgenpcvhm 32,7,2
+ xxgenpcvwm 16,3,1
+ xxgenpcvdm 8,1,0
diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp
index c250acfd3e3..6b4e11a9421 100644
--- a/gas/testsuite/gas/ppc/ppc.exp
+++ b/gas/testsuite/gas/ppc/ppc.exp
@@ -139,3 +139,4 @@ run_dump_test "int128"
run_dump_test "simd_perm"
run_dump_test "outerprod"
run_dump_test "maskmanip"
+run_dump_test "genpcv"