public inbox for binutils-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] ppc/svp64: support svstep instructions
@ 2022-08-11  9:09 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-08-11  9:09 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4c388a8e2c65fc997e7b84f9c5f1f5608e807455

commit 4c388a8e2c65fc997e7b84f9c5f1f5608e807455
Author: Dmitry Selyutin <ghostmansd@gmail.com>
Date:   Mon Jul 25 16:10:17 2022 +0300

    ppc/svp64: support svstep instructions
    
    https://libre-soc.org/openpower/sv/
    https://libre-soc.org/openpower/sv/svstep/
    https://libre-soc.org/openpower/isa/simplev/

Diff:
---
 gas/testsuite/gas/ppc/ppc.exp  |  1 +
 gas/testsuite/gas/ppc/svstep.d | 13 +++++++++++++
 gas/testsuite/gas/ppc/svstep.s |  5 +++++
 opcodes/ppc-opc.c              |  3 +++
 4 files changed, 22 insertions(+)

diff --git a/gas/testsuite/gas/ppc/ppc.exp b/gas/testsuite/gas/ppc/ppc.exp
index 70d6960d428..d126d031093 100644
--- a/gas/testsuite/gas/ppc/ppc.exp
+++ b/gas/testsuite/gas/ppc/ppc.exp
@@ -156,3 +156,4 @@ run_dump_test "pr27676"
 run_dump_test "raw"
 
 run_dump_test "setvl"
+run_dump_test "svstep"
diff --git a/gas/testsuite/gas/ppc/svstep.d b/gas/testsuite/gas/ppc/svstep.d
new file mode 100644
index 00000000000..5ce2c2570c0
--- /dev/null
+++ b/gas/testsuite/gas/ppc/svstep.d
@@ -0,0 +1,13 @@
+#as: -mlibresoc
+#objdump: -dr -Mlibresoc
+
+.*:     file format .*
+
+
+Disassembly of section \.text:
+0+ <\.text>:
+.*:	(27 00 00 58|58 00 00 27) 	svstep. r0,1,0
+.*:	(26 00 00 58|58 00 00 26) 	svstep  r0,1,0
+.*:	(26 00 e0 5b|5b e0 00 26) 	svstep  r31,1,0
+.*:	(26 7e 00 58|58 00 7e 26) 	svstep  r0,64,0
+.*:	(66 00 00 58|58 00 00 66) 	svstep  r0,1,1
diff --git a/gas/testsuite/gas/ppc/svstep.s b/gas/testsuite/gas/ppc/svstep.s
new file mode 100644
index 00000000000..b073b2e4677
--- /dev/null
+++ b/gas/testsuite/gas/ppc/svstep.s
@@ -0,0 +1,5 @@
+svstep. 0,1,0
+svstep 0,1,0
+svstep 31,1,0
+svstep 0,64,0
+svstep 0,1,1
diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c
index 8032b9f4892..d027976c803 100644
--- a/opcodes/ppc-opc.c
+++ b/opcodes/ppc-opc.c
@@ -6788,6 +6788,9 @@ const struct powerpc_opcode powerpc_opcodes[] = {
 {"rlmi",	M(22,0),	M_MASK,	     M601,	PPCVLE,		{RA, RS, RB, MBE, ME}},
 {"rlmi.",	M(22,1),	M_MASK,	     M601,	PPCVLE,		{RA, RS, RB, MBE, ME}},
 
+{"svstep",	SVL(22,19,0),	SVL_MASK,	SVP64,	PPCVLE,	{RT, SVi, vf}},
+{"svstep.",	SVL(22,19,1),	SVL_MASK,	SVP64,	PPCVLE,	{RT, SVi, vf}},
+
 {"setvl",	SVL(22,27,0),	SVL_MASK,	SVP64,	PPCVLE,	{RT, RA, SVi, vf, vs, ms}},
 {"setvl.",	SVL(22,27,1),	SVL_MASK,	SVP64,	PPCVLE,	{RT, RA, SVi, vf, vs, ms}},


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-11  9:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-11  9:09 [binutils-gdb] ppc/svp64: support svstep instructions Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).