From patchwork Tue Jun 2 00:35:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 39416 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 43550383F85B; Tue, 2 Jun 2020 00:35:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43550383F85B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1591058155; bh=HYo/RuAVvm/6leDvxvur2U8mXbNg/gfrSlTgkeEPlYY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=Rh/Y1Pl6zvpQeoIct02yEoeJp1/zX6iGNqdTG9W24KD6kZXLU6FVNqWLFlUqTGoVs rPwqSV9uJBm2Z1dB+pbkWT/iWSVT4sneWS0BJSwiwQIMobYACeb2IyVqRr3tBBHESn nrfw3Ukmc1cXFB94KYLDOWJV8O1ILJHJH3gWYHVQ= 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 E5A6D383F84B for ; Tue, 2 Jun 2020 00:35:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E5A6D383F84B 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 AA8CF40184; Tue, 2 Jun 2020 00:35:48 +0000 (UTC) Received: from vineetg-Latitude-7400.internal.synopsys.com (unknown [10.13.183.89]) by mailhost.synopsys.com (Postfix) with ESMTP id DCFFAA009C; Tue, 2 Jun 2020 00:35:43 +0000 (UTC) X-SNPS-Relay: synopsys.com To: libc-alpha@sourceware.org Subject: [PATCH v2 0/4] Enable generic math code for more arches Date: Mon, 1 Jun 2020 17:35:37 -0700 Message-Id: <20200602003541.21005-1-vgupta@synopsys.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam-Status: No, score=-10.9 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. There was testing snafu last time around (wrong branch on build server). Although only relevant configs are aarch64 and PPC, the series passes build-many-glibcs for following: ARCH="aarch64-linux-gnu arm-linux-gnueabi arm-linux-gnueabihf hppa-linux-gnu x86_64-linux-gnu arm-linux-gnueabihf riscv64-linux-gnu-rv64imac-lp64 riscv64-linux-gnu-rv64imafdc-lp64 powerpc-linux-gnu microblaze-linux-gnu nios2-linux-gnu hppa-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 sqrt{,f}, fma{,f}, nearbyint{,f} 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_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 -------- 25 files changed, 183 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