From: Vineet Gupta <Vineet.Gupta1@synopsys.com>
To: libc-alpha@sourceware.org
Cc: linux-snps-arc@lists.infradead.org,
Adhemerval Zanella <adhemerval.zanella@linaro.org>,
Vineet Gupta <Vineet.Gupta1@synopsys.com>
Subject: [PATCH v3 0/4] Enable generic math code for more arches
Date: Tue, 2 Jun 2020 14:32:16 -0700 [thread overview]
Message-ID: <20200602213220.6201-1-vgupta@synopsys.com> (raw)
Hi,
This was suggested by Adhemerval Zanella as part of ARC hard float
review.
changes since v2:
- Add new defines (0) to s390 too as suggested by Stephan
- Handle USE_FMA_BUILTIN in both sysdeps/ieee754/{dbl-64,ldbl-128}/s_fma.c
- Add diff output for all arches build tested
build-glibc-many tested for following
aarch64-linux-gnu
arm-linux-gnueabi
arm-linux-gnueabihf
hppa-linux-gnu
x86_64-linux-gnu
riscv64-linux-gnu-rv64imac-lp64
riscv64-linux-gnu-rv64imafdc-lp64
powerpc-linux-gnu
microblaze-linux-gnu
nios2-linux-gnu
hppa-linux-gnu
s390x-linux-gnu"
Thx,
-Vineet
Vineet Gupta (4):
iee754: provide gcc builtins based generic sqrt functions
iee754: provide gcc builtins based generic fma functions
aarch/fpu: use generic builtins based math functions
powerpc/fpu: use generic fma functions
sysdeps/aarch64/fpu/e_sqrt.c | 27 --------
sysdeps/aarch64/fpu/e_sqrtf.c | 27 --------
sysdeps/aarch64/fpu/math-use-builtins.h | 71 +++++++++++++++++++++
sysdeps/aarch64/fpu/s_floor.c | 29 ---------
sysdeps/aarch64/fpu/s_floorf.c | 29 ---------
sysdeps/aarch64/fpu/s_fma.c | 28 --------
sysdeps/aarch64/fpu/s_fmaf.c | 28 --------
sysdeps/aarch64/fpu/s_nearbyint.c | 28 --------
sysdeps/aarch64/fpu/s_nearbyintf.c | 28 --------
sysdeps/aarch64/fpu/s_rint.c | 29 ---------
sysdeps/aarch64/fpu/s_rintf.c | 29 ---------
sysdeps/aarch64/fpu/s_round.c | 29 ---------
sysdeps/aarch64/fpu/s_roundf.c | 29 ---------
sysdeps/aarch64/fpu/s_trunc.c | 29 ---------
sysdeps/aarch64/fpu/s_truncf.c | 29 ---------
sysdeps/generic/math-use-builtins.h | 8 +++
sysdeps/ieee754/dbl-64/e_sqrt.c | 6 ++
sysdeps/ieee754/dbl-64/s_fma.c | 6 ++
sysdeps/ieee754/dbl-64/s_fmaf.c | 6 ++
sysdeps/ieee754/float128/float128_private.h | 2 +
sysdeps/ieee754/flt-32/e_sqrtf.c | 16 +++--
sysdeps/ieee754/ldbl-128/s_fma.c | 5 ++
sysdeps/ieee754/ldbl-128/s_fmal.c | 5 ++
sysdeps/powerpc/fpu/math-use-builtins.h | 69 ++++++++++++++++++++
sysdeps/powerpc/fpu/s_fma.c | 27 --------
sysdeps/powerpc/fpu/s_fmaf.c | 27 --------
sysdeps/s390/fpu/math-use-builtins.h | 8 +++
27 files changed, 196 insertions(+), 458 deletions(-)
delete mode 100644 sysdeps/aarch64/fpu/e_sqrt.c
delete mode 100644 sysdeps/aarch64/fpu/e_sqrtf.c
create mode 100644 sysdeps/aarch64/fpu/math-use-builtins.h
delete mode 100644 sysdeps/aarch64/fpu/s_floor.c
delete mode 100644 sysdeps/aarch64/fpu/s_floorf.c
delete mode 100644 sysdeps/aarch64/fpu/s_fma.c
delete mode 100644 sysdeps/aarch64/fpu/s_fmaf.c
delete mode 100644 sysdeps/aarch64/fpu/s_nearbyint.c
delete mode 100644 sysdeps/aarch64/fpu/s_nearbyintf.c
delete mode 100644 sysdeps/aarch64/fpu/s_rint.c
delete mode 100644 sysdeps/aarch64/fpu/s_rintf.c
delete mode 100644 sysdeps/aarch64/fpu/s_round.c
delete mode 100644 sysdeps/aarch64/fpu/s_roundf.c
delete mode 100644 sysdeps/aarch64/fpu/s_trunc.c
delete mode 100644 sysdeps/aarch64/fpu/s_truncf.c
create mode 100644 sysdeps/powerpc/fpu/math-use-builtins.h
delete mode 100644 sysdeps/powerpc/fpu/s_fma.c
delete mode 100644 sysdeps/powerpc/fpu/s_fmaf.c
--
2.20.1
next reply other threads:[~2020-06-02 21:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-02 21:32 Vineet Gupta [this message]
2020-06-02 21:32 ` [PATCH v3 1/4] iee754: provide gcc builtins based generic sqrt functions Vineet Gupta
2020-06-03 8:46 ` Andreas Schwab
2020-06-03 17:06 ` Vineet Gupta
2020-06-03 17:09 ` Adhemerval Zanella
2020-06-03 17:22 ` Vineet Gupta
2020-06-02 21:32 ` [PATCH v3 2/4] iee754: provide gcc builtins based generic fma functions Vineet Gupta
2020-06-02 21:32 ` [PATCH v3 3/4] aarch/fpu: use generic builtins based math functions Vineet Gupta
2020-06-02 21:32 ` [PATCH v3 4/4] powerpc/fpu: use generic fma functions Vineet Gupta
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=20200602213220.6201-1-vgupta@synopsys.com \
--to=vineet.gupta1@synopsys.com \
--cc=adhemerval.zanella@linaro.org \
--cc=libc-alpha@sourceware.org \
--cc=linux-snps-arc@lists.infradead.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).