From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH/committed] sim: sh: refine pwsb & pwad nops
Date: Sun, 24 Dec 2023 04:00:32 -0500 [thread overview]
Message-ID: <20231224090032.29372-1-vapier@gentoo.org> (raw)
Since these insns don't do anything and are effectively ignored,
return early to avoid doing any common processing at the end as
that requires initializing variables like "res" with something.
---
sim/sh/gencode.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sim/sh/gencode.c b/sim/sh/gencode.c
index 8ef3f3e33761..c121d53bb40b 100644
--- a/sim/sh/gencode.c
+++ b/sim/sh/gencode.c
@@ -2012,8 +2012,10 @@ static op ppi_tab[] =
"ADD_SUB_GE;",
},
{ "","", "pwsb Sx,Sy,Dz", "10100100....zzzz",
+ "return;",
},
{ "","", "pwad Sx,Sy,Dz", "10110100....zzzz",
+ "return;",
},
{ "","", "(if cc) pabs Sx,Dz", "100010ccxx01zzzz",
"/* FIXME: duplicate code pabs. */",
--
2.43.0
reply other threads:[~2023-12-24 9:00 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=20231224090032.29372-1-vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
/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).