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>
This commit is contained in:
Adhemerval Zanella 2023-12-28 14:20:16 -03:00
parent c0d59e3e0d
commit 4dcd674b66

View File

@ -34,6 +34,12 @@ CFLAGS-s_modff-power5+.c = -mcpu=power5+
CFLAGS-s_logbl-power7.c = -mcpu=power7 CFLAGS-s_logbl-power7.c = -mcpu=power7
CFLAGS-s_logb-power7.c = -mcpu=power7 CFLAGS-s_logb-power7.c = -mcpu=power7
CFLAGS-s_logbf-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 # These files quiet sNaNs in a way that is optimized away without
# -fsignaling-nans. # -fsignaling-nans.