From patchwork Tue Jun 2 21:32:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 39424 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 162AB383F84C; Tue, 2 Jun 2020 21:32:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 162AB383F84C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1591133548; bh=Izl0T/m+PU/A/94p1cW5tmAdVpM7crmiCWAzYd0XSus=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=a+OcltnlUJO/mTx7MMO+pNMRAuSa6+EOH+lfBKIe3VHfH7tvhhE52s9zikQloOFhS nMd2PC5ftkeM/+0icDHaVQVcxl6hI501wvq40T3oWs1/xgsTm31mxauU6U6CRGLtZY 7RT4k17E2Y8NIhUxFffLTbC49/mX1/x+QUCE0dWo= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from smtprelay-out1.synopsys.com (smtprelay-out1.synopsys.com [149.117.73.133]) by sourceware.org (Postfix) with ESMTPS id E9B043851C21 for ; Tue, 2 Jun 2020 21:32:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E9B043851C21 Received: from mailhost.synopsys.com (sv2-mailhost2.synopsys.com [10.205.2.134]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id E41BC40648; Tue, 2 Jun 2020 21:32:22 +0000 (UTC) Received: from vineetg-Latitude-7400.internal.synopsys.com (unknown [10.13.183.89]) by mailhost.synopsys.com (Postfix) with ESMTP id 94860A009C; Tue, 2 Jun 2020 21:32:21 +0000 (UTC) X-SNPS-Relay: synopsys.com To: libc-alpha@sourceware.org Subject: [PATCH v3 0/4] Enable generic math code for more arches Date: Tue, 2 Jun 2020 14:32:16 -0700 Message-Id: <20200602213220.6201-1-vgupta@synopsys.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Vineet Gupta via Libc-alpha From: Vineet Gupta Reply-To: Vineet Gupta Cc: Vineet Gupta , linux-snps-arc@lists.infradead.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" 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