public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] powerpc: Add missing arch flags on rounding ifunc variants
@ 2024-04-03 11:31 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2024-04-03 11:31 UTC (permalink / raw)
  To: glibc-cvs

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-03 11:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-03 11:31 [glibc] powerpc: Add missing arch flags on rounding ifunc variants Adhemerval Zanella

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).