aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-05-11 09:49:29 +0930
committerAlan Modra <amodra@gmail.com>2020-05-11 21:08:38 +0930
commit3b646889b0f71fda1e46bde8206d4d6aba7f5387 (patch)
tree5c5cdbe0424c525a71a6a4b26ce829b87f8b16ef /gas
parent9cc4ce88316e666fd5af0fbc1ea110a7dc42adb0 (diff)
downloadbinutils-3b646889b0f71fda1e46bde8206d4d6aba7f5387.zip
binutils-3b646889b0f71fda1e46bde8206d4d6aba7f5387.tar.gz
binutils-3b646889b0f71fda1e46bde8206d4d6aba7f5387.tar.bz2
Power10 VSX scalar min-max-compare quad precision operations
opcodes/ * ppc-opc (powerpc_opcodes): Add xscmpeqqp, xscmpgeqp, xscmpgtqp, xsmaxcqp, xsmincqp. gas/ * testsuite/gas/ppc/scalarquad.d, * testsuite/gas/ppc/scalarquad.s: New test. * testsuite/gas/ppc/ppc.exp: Run it.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/testsuite/gas/ppc/ppc.exp1
-rw-r--r--gas/testsuite/gas/ppc/scalarquad.d15
-rw-r--r--gas/testsuite/gas/ppc/scalarquad.s7
4 files changed, 29 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 3f8c753..57b704d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,11 @@
2020-05-11 Alan Modra <amodra@gmail.com>
+ * testsuite/gas/ppc/scalarquad.d,
+ * testsuite/gas/ppc/scalarquad.s: New test.
+ * testsuite/gas/ppc/ppc.exp: Run it.
+
+2020-05-11 Alan Modra <amodra@gmail.com>
+
* testsuite/gas/ppc/rightmost.d,
* testsuite/gas/ppc/rightmost.s: New test.
* testsuite/gas/ppc/ppc.exp: Run it.
diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp
index a895edb..48c4ce6 100644
--- a/gas/testsuite/gas/ppc/ppc.exp
+++ b/gas/testsuite/gas/ppc/ppc.exp
@@ -145,3 +145,4 @@ run_dump_test "set_bool"
run_dump_test "stringop"
run_dump_test "xvtlsbb"
run_dump_test "rightmost"
+run_dump_test "scalarquad"
diff --git a/gas/testsuite/gas/ppc/scalarquad.d b/gas/testsuite/gas/ppc/scalarquad.d
new file mode 100644
index 0000000..e33057a
--- /dev/null
+++ b/gas/testsuite/gas/ppc/scalarquad.d
@@ -0,0 +1,15 @@
+#as: -mpower10
+#objdump: -dr -Mpower10
+#name: scalar min/max/compare quad precision
+
+.*
+
+
+Disassembly of section \.text:
+
+0+0 <_start>:
+.*: (fc 01 10 88|88 10 01 fc) xscmpeqqp v0,v1,v2
+.*: (fc 64 29 88|88 29 64 fc) xscmpgeqp v3,v4,v5
+.*: (fc c7 41 c8|c8 41 c7 fc) xscmpgtqp v6,v7,v8
+.*: (fd 2a 5d 48|48 5d 2a fd) xsmaxcqp v9,v10,v11
+.*: (fd 8d 75 c8|c8 75 8d fd) xsmincqp v12,v13,v14
diff --git a/gas/testsuite/gas/ppc/scalarquad.s b/gas/testsuite/gas/ppc/scalarquad.s
new file mode 100644
index 0000000..dc42b82
--- /dev/null
+++ b/gas/testsuite/gas/ppc/scalarquad.s
@@ -0,0 +1,7 @@
+ .text
+_start:
+ xscmpeqqp 0,1,2
+ xscmpgeqp 3,4,5
+ xscmpgtqp 6,7,8
+ xsmaxcqp 9,10,11
+ xsmincqp 12,13,14