public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: WANG Xuerui <i.swmail@xen0n.name>
To: binutils@sourceware.org
Cc: Chenghua Xu <xuchenghua@loongson.cn>,
	Zhensong Liu <liuzhensong@loongson.cn>,
	Qinggang Meng <mengqinggang@loongson.cn>,
	Xi Ruoyao <xry111@xry111.site>, WANG Xuerui <git@xen0n.name>
Subject: [PATCH] opcodes/loongarch: Mark address offset operands of LVZ/LBT insns as such
Date: Fri, 30 Jun 2023 20:32:59 +0800	[thread overview]
Message-ID: <20230630123259.1900571-1-i.swmail@xen0n.name> (raw)

From: WANG Xuerui <git@xen0n.name>

opcodes/ChangeLog:

	* loongarch-opc.c: Mark the offset operands as "so" for
	{,x}v{ld,st}, {,x}v{ldrepl,stelm}.[bhwd], and {ld,st}[lr].[wd].

Signed-off-by: WANG Xuerui <git@xen0n.name>
---
 opcodes/loongarch-opc.c | 56 ++++++++++++++++++++---------------------
 1 file changed, 28 insertions(+), 28 deletions(-)

diff --git a/opcodes/loongarch-opc.c b/opcodes/loongarch-opc.c
index 336be3fb8f8..c83e4810db1 100644
--- a/opcodes/loongarch-opc.c
+++ b/opcodes/loongarch-opc.c
@@ -906,30 +906,30 @@ static struct loongarch_opcode loongarch_load_store_opcodes[] =
   { 0x387e8000, 0xffff8000,	"stle.h",	"r0:5,r5:5,r10:5",		0,			0,	0,	0 },
   { 0x387f0000, 0xffff8000,	"stle.w",	"r0:5,r5:5,r10:5",		0,			0,	0,	0 },
   { 0x387f8000, 0xffff8000,	"stle.d",	"r0:5,r5:5,r10:5",		0,			0,	0,	0 },
-  { 0x2c000000, 0xffc00000,	"vld",		"v0:5,r5:5,s10:12",		0,			0,	0,	0 },
-  { 0x2c400000, 0xffc00000,	"vst",		"v0:5,r5:5,s10:12",		0,			0,	0,	0 },
-  { 0x2c800000, 0xffc00000,	"xvld",		"x0:5,r5:5,s10:12",		0,			0,	0,	0 },
-  { 0x2cc00000, 0xffc00000,	"xvst",		"x0:5,r5:5,s10:12",		0,			0,	0,	0 },
+  { 0x2c000000, 0xffc00000,	"vld",		"v0:5,r5:5,so10:12",		0,			0,	0,	0 },
+  { 0x2c400000, 0xffc00000,	"vst",		"v0:5,r5:5,so10:12",		0,			0,	0,	0 },
+  { 0x2c800000, 0xffc00000,	"xvld",		"x0:5,r5:5,so10:12",		0,			0,	0,	0 },
+  { 0x2cc00000, 0xffc00000,	"xvst",		"x0:5,r5:5,so10:12",		0,			0,	0,	0 },
   { 0x38400000, 0xffff8000,	"vldx",		"v0:5,r5:5,r10:5",		0,			0,	0,	0 },
   { 0x38440000, 0xffff8000,	"vstx",		"v0:5,r5:5,r10:5",		0,			0,	0,	0 },
   { 0x38480000, 0xffff8000,	"xvldx",	"x0:5,r5:5,r10:5",		0,			0,	0,	0 },
   { 0x384c0000, 0xffff8000,	"xvstx",	"x0:5,r5:5,r10:5",		0,			0,	0,	0 },
-  { 0x30100000, 0xfff80000,	"vldrepl.d",	"v0:5,r5:5,s10:9<<3",		0,			0,	0,	0 },
-  { 0x30200000, 0xfff00000,	"vldrepl.w",	"v0:5,r5:5,s10:10<<2",		0,			0,	0,	0 },
-  { 0x30400000, 0xffe00000,	"vldrepl.h",	"v0:5,r5:5,s10:11<<1",		0,			0,	0,	0 },
-  { 0x30800000, 0xffc00000,	"vldrepl.b",	"v0:5,r5:5,s10:12",		0,			0,	0,	0 },
-  { 0x31100000, 0xfff80000,	"vstelm.d",	"v0:5,r5:5,s10:8<<3,u18:1",	0,			0,	0,	0 },
-  { 0x31200000, 0xfff00000,	"vstelm.w",	"v0:5,r5:5,s10:8<<2,u18:2",	0,			0,	0,	0 },
-  { 0x31400000, 0xffe00000,	"vstelm.h",	"v0:5,r5:5,s10:8<<1,u18:3",	0,			0,	0,	0 },
-  { 0x31800000, 0xffc00000,	"vstelm.b",	"v0:5,r5:5,s10:8,u18:4",	0,			0,	0,	0 },
-  { 0x32100000, 0xfff80000,	"xvldrepl.d",	"x0:5,r5:5,s10:9<<3",		0,			0,	0,	0 },
-  { 0x32200000, 0xfff00000,	"xvldrepl.w",	"x0:5,r5:5,s10:10<<2",		0,			0,	0,	0 },
-  { 0x32400000, 0xffe00000,	"xvldrepl.h",	"x0:5,r5:5,s10:11<<1",		0,			0,	0,	0 },
-  { 0x32800000, 0xffc00000,	"xvldrepl.b",	"x0:5,r5:5,s10:12",		0,			0,	0,	0 },
-  { 0x33100000, 0xfff00000,	"xvstelm.d",	"x0:5,r5:5,s10:8<<3,u18:2",	0,			0,	0,	0 },
-  { 0x33200000, 0xffe00000,	"xvstelm.w",	"x0:5,r5:5,s10:8<<2,u18:3",	0,			0,	0,	0 },
-  { 0x33400000, 0xffc00000,	"xvstelm.h",	"x0:5,r5:5,s10:8<<1,u18:4",	0,			0,	0,	0 },
-  { 0x33800000, 0xff800000,	"xvstelm.b",	"x0:5,r5:5,s10:8,u18:5",	0,			0,	0,	0 },
+  { 0x30100000, 0xfff80000,	"vldrepl.d",	"v0:5,r5:5,so10:9<<3",		0,			0,	0,	0 },
+  { 0x30200000, 0xfff00000,	"vldrepl.w",	"v0:5,r5:5,so10:10<<2",		0,			0,	0,	0 },
+  { 0x30400000, 0xffe00000,	"vldrepl.h",	"v0:5,r5:5,so10:11<<1",		0,			0,	0,	0 },
+  { 0x30800000, 0xffc00000,	"vldrepl.b",	"v0:5,r5:5,so10:12",		0,			0,	0,	0 },
+  { 0x31100000, 0xfff80000,	"vstelm.d",	"v0:5,r5:5,so10:8<<3,u18:1",	0,			0,	0,	0 },
+  { 0x31200000, 0xfff00000,	"vstelm.w",	"v0:5,r5:5,so10:8<<2,u18:2",	0,			0,	0,	0 },
+  { 0x31400000, 0xffe00000,	"vstelm.h",	"v0:5,r5:5,so10:8<<1,u18:3",	0,			0,	0,	0 },
+  { 0x31800000, 0xffc00000,	"vstelm.b",	"v0:5,r5:5,so10:8,u18:4",	0,			0,	0,	0 },
+  { 0x32100000, 0xfff80000,	"xvldrepl.d",	"x0:5,r5:5,so10:9<<3",		0,			0,	0,	0 },
+  { 0x32200000, 0xfff00000,	"xvldrepl.w",	"x0:5,r5:5,so10:10<<2",		0,			0,	0,	0 },
+  { 0x32400000, 0xffe00000,	"xvldrepl.h",	"x0:5,r5:5,so10:11<<1",		0,			0,	0,	0 },
+  { 0x32800000, 0xffc00000,	"xvldrepl.b",	"x0:5,r5:5,so10:12",		0,			0,	0,	0 },
+  { 0x33100000, 0xfff00000,	"xvstelm.d",	"x0:5,r5:5,so10:8<<3,u18:2",	0,			0,	0,	0 },
+  { 0x33200000, 0xffe00000,	"xvstelm.w",	"x0:5,r5:5,so10:8<<2,u18:3",	0,			0,	0,	0 },
+  { 0x33400000, 0xffc00000,	"xvstelm.h",	"x0:5,r5:5,so10:8<<1,u18:4",	0,			0,	0,	0 },
+  { 0x33800000, 0xff800000,	"xvstelm.b",	"x0:5,r5:5,so10:8,u18:5",	0,			0,	0,	0 },
   { 0, 0, 0, 0, 0, 0, 0, 0 } /* Terminate the list.  */
 };
 
@@ -2382,14 +2382,14 @@ static struct loongarch_opcode loongarch_lbt_opcodes[] =
   {0x0114e400, 0xfffffc00, "fcvt.ud.d",		"f0:5,f5:5",		0, 0, 0, 0},
   {0x0114e000, 0xfffffc00, "fcvt.ld.d",		"f0:5,f5:5",		0, 0, 0, 0},
   {0x01150000, 0xffff8000, "fcvt.d.ld",		"f0:5,f5:5,f10:5",	0, 0, 0, 0},
-  {0x2e800000, 0xffc00000, "ldl.d",		"r0:5,r5:5,s10:12",	0, 0, 0, 0},
-  {0x2e000000, 0xffc00000, "ldl.w",		"r0:5,r5:5,s10:12",	0, 0, 0, 0},
-  {0x2e400000, 0xffc00000, "ldr.w",		"r0:5,r5:5,s10:12",	0, 0, 0, 0},
-  {0x2ec00000, 0xffc00000, "ldr.d",		"r0:5,r5:5,s10:12",	0, 0, 0, 0},
-  {0x2f000000, 0xffc00000, "stl.w",		"r0:5,r5:5,s10:12",	0, 0, 0, 0},
-  {0x2f800000, 0xffc00000, "stl.d",		"r0:5,r5:5,s10:12",	0, 0, 0, 0},
-  {0x2f400000, 0xffc00000, "str.w",		"r0:5,r5:5,s10:12",	0, 0, 0, 0},
-  {0x2fc00000, 0xffc00000, "str.d",		"r0:5,r5:5,s10:12",	0, 0, 0, 0},
+  {0x2e800000, 0xffc00000, "ldl.d",		"r0:5,r5:5,so10:12",	0, 0, 0, 0},
+  {0x2e000000, 0xffc00000, "ldl.w",		"r0:5,r5:5,so10:12",	0, 0, 0, 0},
+  {0x2e400000, 0xffc00000, "ldr.w",		"r0:5,r5:5,so10:12",	0, 0, 0, 0},
+  {0x2ec00000, 0xffc00000, "ldr.d",		"r0:5,r5:5,so10:12",	0, 0, 0, 0},
+  {0x2f000000, 0xffc00000, "stl.w",		"r0:5,r5:5,so10:12",	0, 0, 0, 0},
+  {0x2f800000, 0xffc00000, "stl.d",		"r0:5,r5:5,so10:12",	0, 0, 0, 0},
+  {0x2f400000, 0xffc00000, "str.w",		"r0:5,r5:5,so10:12",	0, 0, 0, 0},
+  {0x2fc00000, 0xffc00000, "str.d",		"r0:5,r5:5,so10:12",	0, 0, 0, 0},
   {0x003f000c, 0xffff801f, "x86adc.b",		"r5:5,r10:5",		0, 0, 0, 0},
   {0x003f000d, 0xffff801f, "x86adc.h",		"r5:5,r10:5",		0, 0, 0, 0},
   {0x003f000e, 0xffff801f, "x86adc.w",		"r5:5,r10:5",		0, 0, 0, 0},
-- 
2.40.0


                 reply	other threads:[~2023-06-30 12:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230630123259.1900571-1-i.swmail@xen0n.name \
    --to=i.swmail@xen0n.name \
    --cc=binutils@sourceware.org \
    --cc=git@xen0n.name \
    --cc=liuzhensong@loongson.cn \
    --cc=mengqinggang@loongson.cn \
    --cc=xry111@xry111.site \
    --cc=xuchenghua@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).