aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorSurya Kumari Jangala <jskumari@linux.ibm.com>2024-11-22 04:41:49 -0500
committerSurya Kumari Jangala <jskumari@linux.ibm.com>2024-12-03 08:17:44 -0500
commit2b6770659ea94f1f30303ecf541fad3c21051b72 (patch)
tree68dc619056879fe4b0bfa28a8c66f1956e48ecd3 /gas
parent37a850cafa11df6ab50bbf3b05ee478292bc3af3 (diff)
downloadgdb-2b6770659ea94f1f30303ecf541fad3c21051b72.zip
gdb-2b6770659ea94f1f30303ecf541fad3c21051b72.tar.gz
gdb-2b6770659ea94f1f30303ecf541fad3c21051b72.tar.bz2
PowerPC: Add support for RFC02680 - PQC Acceleration Instructions
opcodes/ * ppc-opc.c (powerpc_opcodes): Add xvadduwm, xvadduhm, xvsubuwm, xvsubuhm, xvmuluwm, xvmuluhm, xvmulhsw, xvmulhsh, xvmulhuw, xvmulhuh. gas/ * testsuite/gas/ppc/future.s: New test. * testsuite/gas/ppc/future.d: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/ppc/future.d10
-rw-r--r--gas/testsuite/gas/ppc/future.s10
2 files changed, 20 insertions, 0 deletions
diff --git a/gas/testsuite/gas/ppc/future.d b/gas/testsuite/gas/ppc/future.d
index c0d9080..d639e8c 100644
--- a/gas/testsuite/gas/ppc/future.d
+++ b/gas/testsuite/gas/ppc/future.d
@@ -25,4 +25,14 @@ Disassembly of section \.text:
.*: (9a 8d 2a 7d|7d 2a 8d 9a) stxvprl vs40,r10,r17
.*: (da 95 6a 7d|7d 6a 95 da) stxvprll vs42,r10,r18
.*: (c6 9d e9 f3|f3 e9 9d c6) xvrlw vs31,vs41,vs51
+.*: (1e a4 ca f3|f3 ca a4 1e) xvadduwm vs30,vs42,vs52
+.*: (5e ac ca f3|f3 ca ac 5e) xvadduhm vs30,vs42,vs53
+.*: (9e b4 ab f3|f3 ab b4 9e) xvsubuwm vs29,vs43,vs54
+.*: (d9 f4 e0 f3|f3 e0 f4 d9) xvsubuhm vs63,vs0,vs30
+.*: (1e e5 c8 f3|f3 c8 e5 1e) xvmuluwm vs30,vs40,vs60
+.*: (5f f5 9d f3|f3 9d f5 5f) xvmuluhm vs60,vs61,vs62
+.*: (9f 25 43 f0|f0 43 25 9f) xvmulhsw vs34,vs35,vs36
+.*: (d8 1d 22 f0|f0 22 1d d8) xvmulhsh vs1,vs2,vs3
+.*: (90 b3 95 f2|f2 95 b3 90) xvmulhuw vs20,vs21,vs22
+.*: (d6 a3 8a f2|f2 8a a3 d6) xvmulhuh vs20,vs42,vs52
#pass
diff --git a/gas/testsuite/gas/ppc/future.s b/gas/testsuite/gas/ppc/future.s
index 4e782e8..9abf6b3 100644
--- a/gas/testsuite/gas/ppc/future.s
+++ b/gas/testsuite/gas/ppc/future.s
@@ -17,3 +17,13 @@ _start:
stxvprl 40,10,17
stxvprll 42,10,18
xvrlw 31,41,51
+ xvadduwm 30,42,52
+ xvadduhm 30,42,53
+ xvsubuwm 29,43,54
+ xvsubuhm 63,0,30
+ xvmuluwm 30,40,60
+ xvmuluhm 60,61,62
+ xvmulhsw 34,35,36
+ xvmulhsh 1,2,3
+ xvmulhuw 20,21,22
+ xvmulhuh 20,42,52