From patchwork Fri Mar 29 13:35:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 161423 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2048535jan; Fri, 29 Mar 2019 06:35:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAG6kXLDv6GHl4d2KHJlEAHGHb5MwWVB9IwLHgcOXJMcIqF9q7aBCAx1VOolDwbZoFWrGB X-Received: by 2002:a63:e151:: with SMTP id h17mr45810333pgk.413.1553866553375; Fri, 29 Mar 2019 06:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553866553; cv=none; d=google.com; s=arc-20160816; b=OerXSJTDR5TJpNkXdMuYI+nTiBfEkbaEfELiBpM+siF5UUTaptCxNDeeW4OwvZ8VgM aa3s5vco1ascmHqc037galXsFXYZjhf/eMVxRGSDD3aZAVJ/IMmKDD5USYcTis9rTV9q ApUJNMS/QmoE113ZQ60odxCxMVn+DafOEG/yyOiOUbou2+iTSuQI3XJ6ge7S5tcxrQrq 2ZX3RKVqRAq0x4sYIrGKMv6G3tLCnHVUFTfS5kUmGWg+VhsdePZPWOyB/0RqZ6xoEx63 Ua5CERSfzFrjo86WsDEMoEnU0Brz886gvRRpc5caEc/IKfYiIMGM12NS+mWZZEhhHKiJ +f6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-subscribe:list-unsubscribe:list-id:precedence:mailing-list :dkim-signature:domainkey-signature; bh=TAo2DUAUJQd/vqo7PkXi8uccCXl0fbPQ2DNEDL1dVr8=; b=cuDlHohs6uzRDuZoEjUz2Qb754dhm7XeMOGzCrXsESb1qy0FgGjXvw2LfwzFHBBKu9 gl6NV7ir3eXjb3iyl3+7rC6GK0I7PhMbLbFJ1+J6gpIHKogiFeMS5rndJ8cwb0ULxIwA 13WWyP53DnbJi5RL5f28PwdS5Nwx5T1H0dm+CzdHxP7E6wnJhvZVB9HxKvNYLpsml7S+ U35b0Yk9l1qf6daWr2I9VSUvDL6ue/W4w90szK5j3cvP8wwWAU3PYvQjlkODRt5viDfM hmZ4gsdlUAA+UI8ocpzwx6hWn9gl+Ky1Og7M5wf1G11j+gvxaETyjkdi6PnDkyzYXeq0 WL8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=s3Bx7Z1q; dkim=pass header.i=@linaro.org header.s=google header.b=heMyRpn9; spf=pass (google.com: domain of libc-alpha-return-100992-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-100992-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id a64si1946086pfb.56.2019.03.29.06.35.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Mar 2019 06:35:53 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-100992-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=s3Bx7Z1q; dkim=pass header.i=@linaro.org header.s=google header.b=heMyRpn9; spf=pass (google.com: domain of libc-alpha-return-100992-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-100992-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=g20casecSOyGe/xuCDRZbdDxYLHMJn7 zBqHZ6Y2FR2bNFPP3RlP/JGTHr4o79gLzakXBs+7Ag+kBxwb4NDOsyjSOPXf8QQk DW+HwvDJUmViDLDMqNvlM6pPMTPGIMxXcMu6VvU0dfNluptkeTjX3kGn+dMLGTrZ Dzu/EpB+z+QE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=KeYOaPr3LO7XRwX2622i0MkjYEk=; b=s3Bx7 Z1qmnOGgSDUxm0qeXle08xUD/1Eh1xqZTk6U9K4XFbiubOjrgx0gki98pWKOBZ0X xK0k8hWHgKAUko1tJxDV/bj+LiepwTi/yrE/Ev4Kq9Ls9IOAppWvlkoiDfcCRKZ5 J9t4O7/JZiX9BhiIw9nIkeomjEzCwo4y4uIN4A= Received: (qmail 117829 invoked by alias); 29 Mar 2019 13:35:39 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 117814 invoked by uid 89); 29 Mar 2019 13:35:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=UD:S, HX-HELO:sk:mail-ua, distributed X-HELO: mail-ua1-f67.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=TAo2DUAUJQd/vqo7PkXi8uccCXl0fbPQ2DNEDL1dVr8=; b=heMyRpn9+usSDOoaqI6DDPXeZ8AZ0zTQ18B8RAGdxGJoHQeaXuact6o+zueWsrgoDF qP8RFuvgrUnkbdHrlNL/D1ADfAHtHzVV5fhVqXwZfbw74fA2tLuDYfh3CsZNVMYjIul1 nXfwmwjbupo/az5oN60A3zC4GUohQM5IsRvXDhbfOpN1Y5Jt5paqPBOJx3D6drdcRj8G TMEsLENqNvuyqFn/sohINZ6FHIczwwHAikEZWknVzQHvYN6U4RZbx2gKs2qZCfHtNTCO y7pNDEthC1Hv6yfF59k/LR0k/kKzxpPEx5ArTR0gqVJiw8WTw5MDSWR38nNV1AA3RpKF yGdQ== Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 01/28] powerpc: Use generic fabs{f} implementations Date: Fri, 29 Mar 2019 10:35:02 -0300 Message-Id: <20190329133529.22523-2-adhemerval.zanella@linaro.org> In-Reply-To: <20190329133529.22523-1-adhemerval.zanella@linaro.org> References: <20190329133529.22523-1-adhemerval.zanella@linaro.org> Since be2e25bbd78f9fdf the generic ieee754 implementation uses compiler builtin which generates fabs{f} for all supported targets. Checked on powerpc-linux-gnu (built without --with-cpu, with --with-cpu=power4 and with --with-cpu=power5+ and --disable-multi-arch), powerpc64-linux-gnu (built without --with-cp and with --with-cpu=power5+ and --disable-multi-arch). * sysdeps/powerpc/fpu/s_fabs.S: Remove file. * sysdeps/powerpc/fpu/s_fabsf.S: Likewise. --- sysdeps/powerpc/fpu/s_fabs.S | 33 --------------------------------- sysdeps/powerpc/fpu/s_fabsf.S | 1 - 2 files changed, 34 deletions(-) delete mode 100644 sysdeps/powerpc/fpu/s_fabs.S delete mode 100644 sysdeps/powerpc/fpu/s_fabsf.S -- 2.17.1 Reviewed-by: Gabriel F. T. Gomes diff --git a/sysdeps/powerpc/fpu/s_fabs.S b/sysdeps/powerpc/fpu/s_fabs.S deleted file mode 100644 index 7147f6b4a2..0000000000 --- a/sysdeps/powerpc/fpu/s_fabs.S +++ /dev/null @@ -1,33 +0,0 @@ -/* Floating-point absolute value. PowerPC version. - Copyright (C) 1997-2019 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include -#include -#include - -ENTRY(__fabs) -/* double [f1] fabs (double [f1] x); */ - fabs fp1,fp1 - blr -END(__fabs) - -libm_alias_double (__fabs, fabs) - -/* It turns out that it's safe to use this code even for single-precision. */ -strong_alias(__fabs,__fabsf) -libm_alias_float (__fabs, fabs) diff --git a/sysdeps/powerpc/fpu/s_fabsf.S b/sysdeps/powerpc/fpu/s_fabsf.S deleted file mode 100644 index 877c710ce8..0000000000 --- a/sysdeps/powerpc/fpu/s_fabsf.S +++ /dev/null @@ -1 +0,0 @@ -/* __fabsf is in s_fabs.S */