From: David Edelsohn <dje.gcc@gmail.com>
To: Xionghu Luo <luoxhu@linux.ibm.com>
Cc: will schmidt <will_schmidt@vnet.ibm.com>,
GCC Patches <gcc-patches@gcc.gnu.org>,
Bill Schmidt <wschmidt@linux.ibm.com>,
Segher Boessenkool <segher@kernel.crashing.org>,
linkw@gcc.gnu.org
Subject: Re: Ping ^ 2: [PATCH] rs6000: Expand fmod and remainder when built with fast-math [PR97142]
Date: Fri, 3 Sep 2021 10:53:14 -0400 [thread overview]
Message-ID: <CAGWvny=Z-MT9qhQx4tv6od5uCuu3q_i9USMz5SMMBvQEYeDUDA@mail.gmail.com> (raw)
In-Reply-To: <bb0d643d-9562-c53c-37da-9a110af421d1@linux.ibm.com>
On Thu, Sep 2, 2021 at 10:31 PM Xionghu Luo <luoxhu@linux.ibm.com> wrote:
>
> Resend the patch that addressed Will's comments.
>
>
> fmod/fmodf and remainder/remainderf could be expanded instead of library
> call when fast-math build, which is much faster.
>
> fmodf:
> fdivs f0,f1,f2
> friz f0,f0
> fnmsubs f1,f2,f0,f1
>
> remainderf:
> fdivs f0,f1,f2
> frin f0,f0
> fnmsubs f1,f2,f0,f1
>
> SPEC2017 Ofast P8LE: 511.povray_r +1.14%, 526.blender_r +1.72%
>
> gcc/ChangeLog:
>
> 2021-09-03 Xionghu Luo <luoxhu@linux.ibm.com>
>
> PR target/97142
> * config/rs6000/rs6000.md (fmod<mode>3): New define_expand.
> (remainder<mode>3): Likewise.
>
> gcc/testsuite/ChangeLog:
>
> 2021-09-03 Xionghu Luo <luoxhu@linux.ibm.com>
>
> PR target/97142
> * gcc.target/powerpc/pr97142.c: New test.
Okay.
Thanks, David
next prev parent reply other threads:[~2021-09-03 14:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-16 7:10 Xiong Hu Luo
2021-05-06 2:36 ` Ping: " Xionghu Luo
2021-05-14 7:13 ` Xionghu Luo
2021-06-07 5:08 ` Ping^2: " Xionghu Luo
2021-06-30 1:44 ` Ping ^ 2: " Xionghu Luo
2021-07-09 18:40 ` will schmidt
2021-07-12 1:25 ` Xionghu Luo
2021-09-03 2:31 ` Xionghu Luo
2021-09-03 14:51 ` Bill Schmidt
2021-09-03 14:53 ` David Edelsohn [this message]
2021-09-03 21:44 ` Segher Boessenkool
2021-09-06 8:59 ` Xionghu Luo
2021-09-06 21:57 ` Segher Boessenkool
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='CAGWvny=Z-MT9qhQx4tv6od5uCuu3q_i9USMz5SMMBvQEYeDUDA@mail.gmail.com' \
--to=dje.gcc@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=linkw@gcc.gnu.org \
--cc=luoxhu@linux.ibm.com \
--cc=segher@kernel.crashing.org \
--cc=will_schmidt@vnet.ibm.com \
--cc=wschmidt@linux.ibm.com \
/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).