From: Jiufu Guo <guojiufu@linux.ibm.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: "Kewen.Lin" <linkw@linux.ibm.com>,
dje.gcc@gmail.com, linkw@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH V2] rs6000: Support to build constants by li/lis+oris/xoris
Date: Thu, 01 Dec 2022 09:51:37 +0800 [thread overview]
Message-ID: <7ev8mvx55i.fsf@pike.rch.stglabs.ibm.com> (raw)
In-Reply-To: <20221125144309.GG25951@gate.crashing.org>
Date: Thu, 01 Dec 2022 09:51:32 +0800
In-Reply-To: <20221125144309.GG25951@gate.crashing.org> (Segher Boessenkool's
message of "Fri, 25 Nov 2022 08:43:09 -0600")
Message-ID: <7ewn7bx55n.fsf@pike.rch.stglabs.ibm.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)
Segher Boessenkool <segher@kernel.crashing.org> writes:
> Hi guys,
>
> On Fri, Nov 25, 2022 at 04:11:49PM +0800, Kewen.Lin wrote:
>> on 2022/10/26 19:40, Jiufu Guo wrote:
cut...
>> > +
>> > + HOST_WIDE_INT imm = (ud1 & 0x8000) ? ((ud1 ^ 0x8000) - 0x8000)
>> > + : ((ud2 << 16) - 0x80000000);
>
> We really should have some "hwi::sign_extend (ud1, 16)" helper function,
> heh. Maybe there already is? Ah, "sext_hwi". Fixing that up
> everywhere in this function is preapproved.
I just submit a patch to use sext_hwi for existing code:
https://gcc.gnu.org/pipermail/gcc-patches/2022-December/607588.html
Thanks for your help and spend time on this!
BR,
Jeff (Jiufu)
>
>> > + else
cut...
>
> Could you comment what exact instructions are expected?
> li;xoris and li;xoris and lis;xoris I guess? It helps if you just tell
> the reader here.
>
> The li;oris and li;xoris parts look good.
>
>
> Segher
prev parent reply other threads:[~2022-12-01 2:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 11:40 Jiufu Guo
2022-10-27 5:19 ` Jiufu Guo
2022-11-09 3:29 ` Ping: " Jiufu Guo
2022-11-25 8:11 ` Kewen.Lin
2022-11-25 12:41 ` Jiufu Guo
2022-11-25 14:43 ` Segher Boessenkool
2022-11-28 3:37 ` Jiufu Guo
2022-11-28 7:51 ` Jiufu Guo
2022-11-28 17:19 ` Segher Boessenkool
2022-11-29 13:14 ` Jiufu Guo
2022-12-01 1:48 ` Jiufu Guo
2022-11-28 14:18 ` Segher Boessenkool
2022-11-29 9:08 ` Jiufu Guo
2022-12-01 8:56 ` Jiufu Guo
2022-11-30 4:30 ` Jiufu Guo
2022-12-01 1:51 ` Jiufu Guo [this message]
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=7ev8mvx55i.fsf@pike.rch.stglabs.ibm.com \
--to=guojiufu@linux.ibm.com \
--cc=dje.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=linkw@gcc.gnu.org \
--cc=linkw@linux.ibm.com \
--cc=segher@kernel.crashing.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).