[PATCH] ppc/svp64: support svshape2 instruction

Jan Beulich jbeulich@suse.com
Mon Sep 12 06:24:07 GMT 2022


On 08.09.2022 20:25, Dmitry Selyutin via Binutils wrote:
> https://libre-soc.org/openpower/sv/
> https://libre-soc.org/openpower/sv/remap/#svshape
> https://libre-soc.org/openpower/sv/remap/#svshape2
> https://libre-soc.org/openpower/isa/simplev/
> ---
>  gas/testsuite/gas/ppc/svshape.s |  6 +++
>  opcodes/ppc-opc.c               | 75 ++++++++++++++++++++++++++++++++-
>  2 files changed, 80 insertions(+), 1 deletion(-)

Just to state the obvious - svshape.d also wants updating.

> @@ -6843,6 +6915,7 @@ const struct powerpc_opcode powerpc_opcodes[] = {
>  {"svstep",	SVL(22,19,0),	SVL_MASK,	SVP64,	PPCVLE,	{RT, SVi, vf}},
>  {"svstep.",	SVL(22,19,1),	SVL_MASK,	SVP64,	PPCVLE,	{RT, SVi, vf}},
>  
> +{"svshape2",	SVM2(22,281),	SVM2_MASK,	SVP64,	PPCVLE,	{SVo, yx10, rmm, SVd, sk, mm}},
>  {"svshape",	SVM(22,25),	SVM_MASK,	SVP64,	PPCVLE,	{SVxd, SVyd, SVzd, SVrm, vf}},
>  
>  {"setvl",	SVL(22,27,0),	SVL_MASK,	SVP64,	PPCVLE,	{RT, RA, SVi, vf, vs, ms}},

The doc talks of 7 arguments, the first one being merely a 3-bit
one (offs) with the fourth bit there instead being a separate
"inv". Is the doc stale or the patch?

Jan


More information about the Binutils mailing list