From patchwork Mon Apr 4 19:54:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 52627 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 643D93858413 for ; Mon, 4 Apr 2022 20:02:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 643D93858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1649102531; bh=7I8kqf4Iam4iIrG1exk/kdOxYD3Eiwcct82WpnNpI34=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=EYOdc4BUqrWk0xyNFelOeXmR8p5N2CTP0hKa/rQECU0xfqvktMRt47gsQDb1QQtxs O6TvDgeiN+f/nUhG5GYa42CQjvfTySuMRWPgjCqzee1Vmqd8WuJK2gBJcGr4vnmPmd KFpByrYulRgsMwGIcELwuQVTUPiBMM/I7l7LJ48E= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 8808B3857C46 for ; Mon, 4 Apr 2022 19:54:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8808B3857C46 Received: by mail-ot1-x32d.google.com with SMTP id z9-20020a05683020c900b005b22bf41872so7934394otq.13 for ; Mon, 04 Apr 2022 12:54:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=7I8kqf4Iam4iIrG1exk/kdOxYD3Eiwcct82WpnNpI34=; b=Q9p/OXshmyMNMoXcq2bFTYm03wa6Bx1igzBjZjbob6x7/8MzkMUOschWGZBuB3dsh5 ryld4LJKfmbmCVKWmA1n0uHYn1h75rlaUa5u80qIk8PH7L5YSFYQUPZgbEGG5y1faxc8 d86QXfcpuqyU5ErRKPpeSV3qka8LQW4vTZXjp2YgJtM8bZ4x5zPYezQ4oL3yHNMKUgWq Ps9PXLFImZpR+LcvV5SIb2VQRNaib1z18F12fo8UcC5Lt62v2mNaHm0QqjYLxYofRKF7 MuSVxxx2G5/lFPeek7ljoXhOrN3E9C5zvoDDsTtf3R7QtBVP2x1kG3+Pz2g5k2t0RqV8 AsDw== X-Gm-Message-State: AOAM531OQAPKIb3J/e09vb5M2Q48Phx8rajsZZB4Q4awquU7M+NM70MK XLzLuGRYS3ZcSJ2fRgXKUhkkRPXYNBMXdw== X-Google-Smtp-Source: ABdhPJxOVDPSj2TVeEFsQ6fV/shi745CEPwXnIqUBU+WYUcS97o/JM0+aROCU2EfPqceBQkz3WVAkA== X-Received: by 2002:a05:6830:40a1:b0:5b2:2ab2:4211 with SMTP id x33-20020a05683040a100b005b22ab24211mr439413ott.171.1649102049431; Mon, 04 Apr 2022 12:54:09 -0700 (PDT) Received: from birita.. ([2804:431:c7cb:a6c0:94cf:60bc:16d1:2727]) by smtp.gmail.com with ESMTPSA id 1-20020a05687011c100b000de98359b43sm4707932oav.1.2022.04.04.12.54.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 12:54:08 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH] sparc: Remove s_abs implementations Date: Mon, 4 Apr 2022 16:54:04 -0300 Message-Id: <20220404195404.3621416-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" For sparc64 is the same as the generic implementation, while for sparc32 the builtin generates the same code. Checked on sparc64-linux-gnu and sparcv9-linux-gnu. --- sysdeps/sparc/sparc32/fpu/s_fabs.S | 30 ------------------- sysdeps/sparc/sparc32/fpu/s_fabsf.S | 28 ----------------- .../{s_fabs-generic.S => s_fabs-generic.c} | 2 +- .../{s_fabsf-generic.S => s_fabsf-generic.c} | 2 +- sysdeps/sparc/sparc64/fpu/s_fabs.c | 7 ----- sysdeps/sparc/sparc64/fpu/s_fabsf.c | 7 ----- 6 files changed, 2 insertions(+), 74 deletions(-) delete mode 100644 sysdeps/sparc/sparc32/fpu/s_fabs.S delete mode 100644 sysdeps/sparc/sparc32/fpu/s_fabsf.S rename sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/{s_fabs-generic.S => s_fabs-generic.c} (71%) rename sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/{s_fabsf-generic.S => s_fabsf-generic.c} (71%) delete mode 100644 sysdeps/sparc/sparc64/fpu/s_fabs.c delete mode 100644 sysdeps/sparc/sparc64/fpu/s_fabsf.c diff --git a/sysdeps/sparc/sparc32/fpu/s_fabs.S b/sysdeps/sparc/sparc32/fpu/s_fabs.S deleted file mode 100644 index a03c9822d9..0000000000 --- a/sysdeps/sparc/sparc32/fpu/s_fabs.S +++ /dev/null @@ -1,30 +0,0 @@ -/* Float absolute value, sparc32 version. - Copyright (C) 2011-2022 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) - st %o0, [%sp+72] - st %o1, [%sp+76] - ldd [%sp+72], %f0 - retl - fabss %f0, %f0 -END (__fabs) -libm_alias_double (__fabs, fabs) diff --git a/sysdeps/sparc/sparc32/fpu/s_fabsf.S b/sysdeps/sparc/sparc32/fpu/s_fabsf.S deleted file mode 100644 index 45bc46112c..0000000000 --- a/sysdeps/sparc/sparc32/fpu/s_fabsf.S +++ /dev/null @@ -1,28 +0,0 @@ -/* Float absolute value, sparc32 version. - Copyright (C) 2006-2022 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 - -ENTRY (__fabsf) - st %o0, [%sp+68] - ld [%sp+68], %f0 - retl - fabss %f0, %f0 -END (__fabsf) -libm_alias_float (__fabs, fabs) diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.c similarity index 71% rename from sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S rename to sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.c index 267dbd2352..b928e3db33 100644 --- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S +++ b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.c @@ -2,4 +2,4 @@ #define __fabs __fabs_generic #undef libm_alias_double #define libm_alias_double(a, b) -#include +#include diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.c similarity index 71% rename from sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S rename to sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.c index b6fb38f34c..14883adcef 100644 --- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S +++ b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.c @@ -2,4 +2,4 @@ #define __fabsf __fabsf_generic #undef libm_alias_float #define libm_alias_float(a, b) -#include +#include diff --git a/sysdeps/sparc/sparc64/fpu/s_fabs.c b/sysdeps/sparc/sparc64/fpu/s_fabs.c deleted file mode 100644 index 7862290da3..0000000000 --- a/sysdeps/sparc/sparc64/fpu/s_fabs.c +++ /dev/null @@ -1,7 +0,0 @@ -#include - -double __fabs (double x) -{ - return __builtin_fabs (x); -} -libm_alias_double (__fabs, fabs) diff --git a/sysdeps/sparc/sparc64/fpu/s_fabsf.c b/sysdeps/sparc/sparc64/fpu/s_fabsf.c deleted file mode 100644 index 5f54f80bf5..0000000000 --- a/sysdeps/sparc/sparc64/fpu/s_fabsf.c +++ /dev/null @@ -1,7 +0,0 @@ -#include - -float __fabsf (float x) -{ - return __builtin_fabsf (x); -} -libm_alias_float (__fabs, fabs)