public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] powerpc: Add missing arch flags on rounding ifunc variants
Date: Wed,  3 Apr 2024 11:31:53 +0000 (GMT)	[thread overview]
Message-ID: <20240403113153.F01373847718@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4dcd674b66bb0529019908ea9a08748e005edeb7

commit 4dcd674b66bb0529019908ea9a08748e005edeb7
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Dec 28 14:20:16 2023 -0300

    powerpc: Add missing arch flags on rounding ifunc variants
    
    The ifunc variants now uses the powerpc implementation which in turn
    uses the compiler builtin.  Without the proper -mcpu switch the builtin
    does not generate the expected optimization.
    
    Checked on powerpc-linux-gnu.
    Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
    Reviewed-by: Peter Bergner <bergner@linux.ibm.com>

Diff:
---
 sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
index 64317506c6..2f5c0eded6 100644
--- a/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
+++ b/sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
@@ -34,6 +34,12 @@ CFLAGS-s_modff-power5+.c = -mcpu=power5+
 CFLAGS-s_logbl-power7.c = -mcpu=power7
 CFLAGS-s_logb-power7.c = -mcpu=power7
 CFLAGS-s_logbf-power7.c = -mcpu=power7
+CFLAGS-s_round-power5+.c += -mcpu=power5+
+CFLAGS-s_roundf-power5+.c += -mcpu=power5+
+CFLAGS-s_floor-power5+.c += -mcpu=power5+
+CFLAGS-s_floorf-power5+.c += -mcpu=power5+
+CFLAGS-s_trunc-power5+.c += -mcpu=power5+
+CFLAGS-s_truncf-power5+.c += -mcpu=power5+
 
 # These files quiet sNaNs in a way that is optimized away without
 # -fsignaling-nans.

                 reply	other threads:[~2024-04-03 11:31 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=20240403113153.F01373847718@sourceware.org \
    --to=azanella@sourceware.org \
    --cc=glibc-cvs@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).