From patchwork Thu Apr 7 18:15:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 1614605 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=ZngsMxly; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KZ8h94vfHz9sFt for ; Fri, 8 Apr 2022 04:15:53 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BF1BE3858036 for ; Thu, 7 Apr 2022 18:15:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF1BE3858036 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1649355351; bh=ph9dqKDB1GMFvWBWhyH6VZ5JKh8WKGYaqZmrzmWALdU=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=ZngsMxlyteKWZs1m3dYnDKIuA6hC3JK9kYhoM4Ca/DRjB0uZ8lhWNQufrBmQkbBLA 6z5bMqL3eOdHoNzD23+62Xzd/Zw0t5mazs/x0A+5goFxJa/Fsp5lvPc6gCvekOZxUA JGdKEj58i8j5i3QqzZAl9YTm+No/yzDl5gMfPgsw= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by sourceware.org (Postfix) with ESMTPS id ADE963857C42 for ; Thu, 7 Apr 2022 18:15:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ADE963857C42 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-de3ca1efbaso7241901fac.9 for ; Thu, 07 Apr 2022 11:15:15 -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=ph9dqKDB1GMFvWBWhyH6VZ5JKh8WKGYaqZmrzmWALdU=; b=Ffb3ijVsdBAQszew1FUMuGHBqntFuZ/4Bg2lQha5dVob/lbZUXhTtEwVWNrWE26hKO nQIuL+nY9QuvOHnGzsER/GrN3X8RohKhNjFXBSbbSRnW9h1bi/Uy7NDW+C1nenLi5kyR /BjUvJmwnK0XV+sd80lQ3plxn4FwvPEO8xYP0qHf8x4JuADk8ORhR2UPsi9h3m0iZhOJ v57zi66IS69TYgGN/nod5JnGEoB5CIGj09tgYCQhXobuAFrewX2CbuW2336FCVdTgMp7 FYJmLoiM+CRcQFLFsN0sVovMN6U580eJZ/8+yo8qYcWr+Mh4CCwAtnGNT2N7Pw6cB6vK jItg== X-Gm-Message-State: AOAM533wayrUhiGS5+p+e5BJAM6FTXSplKZeitLSCbTiIGz80iMZwKYU cGAvdUiWo+Y1IH1m+TM/PZNxtK2TeRjWBA== X-Google-Smtp-Source: ABdhPJyf//Z3uPF9qStbgxCfwqu/wZtsgxLvAb/s5IREC3bgDEc2XHvpX16wwWlCdWYwNxyiX/ZwEw== X-Received: by 2002:a05:6870:582:b0:d7:5fed:b7b1 with SMTP id m2-20020a056870058200b000d75fedb7b1mr7202524oap.78.1649355314380; Thu, 07 Apr 2022 11:15:14 -0700 (PDT) Received: from birita.. ([2804:431:c7cb:321:9304:77a6:d900:ebb]) by smtp.gmail.com with ESMTPSA id a14-20020a544e0e000000b002f9c00dc626sm442934oiy.28.2022.04.07.11.15.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 11:15:13 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [COMMITTED] sparc64: Remove fcopysign{f} implementation Date: Thu, 7 Apr 2022 15:15:10 -0300 Message-Id: <20220407181510.3386638-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.9 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 Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" The builtin from generic code generates similar compliant sequence. Checked on sparc64-linux-gnu. --- sysdeps/sparc/sparc32/fpu/s_copysign.S | 35 ------------------- sysdeps/sparc/sparc32/fpu/s_copysignf.S | 31 ---------------- .../fpu/multiarch/s_copysign-generic.S | 8 ----- .../fpu/multiarch/s_copysign-generic.c | 5 +++ ...ysignf-generic.S => s_copysignf-generic.c} | 2 +- sysdeps/sparc/sparc64/fpu/s_copysign.S | 30 ---------------- sysdeps/sparc/sparc64/fpu/s_copysignf.S | 30 ---------------- 7 files changed, 6 insertions(+), 135 deletions(-) delete mode 100644 sysdeps/sparc/sparc32/fpu/s_copysign.S delete mode 100644 sysdeps/sparc/sparc32/fpu/s_copysignf.S delete mode 100644 sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S create mode 100644 sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.c rename sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/{s_copysignf-generic.S => s_copysignf-generic.c} (71%) delete mode 100644 sysdeps/sparc/sparc64/fpu/s_copysign.S delete mode 100644 sysdeps/sparc/sparc64/fpu/s_copysignf.S diff --git a/sysdeps/sparc/sparc32/fpu/s_copysign.S b/sysdeps/sparc/sparc32/fpu/s_copysign.S deleted file mode 100644 index 54191b5391..0000000000 --- a/sysdeps/sparc/sparc32/fpu/s_copysign.S +++ /dev/null @@ -1,35 +0,0 @@ -/* copysign function, sparc32 version. - Copyright (C) 2012-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 (__copysign) - sethi %hi(0x80000000), %g1 - and %o2, %g1, %o4 - andn %o0, %g1, %o0 - or %o0, %o4, %o0 - std %o0, [%sp + 72] - retl - ldd [%sp + 72], %f0 -END (__copysign) -libm_alias_double (__copysign, copysign) -#if LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) -compat_symbol (libc, __copysign, copysignl, GLIBC_2_0); -#endif diff --git a/sysdeps/sparc/sparc32/fpu/s_copysignf.S b/sysdeps/sparc/sparc32/fpu/s_copysignf.S deleted file mode 100644 index ce1acfdb1b..0000000000 --- a/sysdeps/sparc/sparc32/fpu/s_copysignf.S +++ /dev/null @@ -1,31 +0,0 @@ -/* float copysign function, sparc32 version. - Copyright (C) 2012-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 (__copysignf) - sethi %hi(0x80000000), %g1 - and %o1, %g1, %o4 - andn %o0, %g1, %o0 - or %o0, %o4, %o0 - st %o0, [%sp + 68] - retl - ld [%sp + 68], %f0 -END (__copysignf) -libm_alias_float (__copysign, copysign) diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S deleted file mode 100644 index 9aa3486277..0000000000 --- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S +++ /dev/null @@ -1,8 +0,0 @@ -#include -#include -#define __copysign __copysign_generic -#undef libm_alias_double -#define libm_alias_double(a, b) -#undef compat_symbol -#define compat_symbol(a, b, c, d) -#include diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.c b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.c new file mode 100644 index 0000000000..3f8cb8d920 --- /dev/null +++ b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.c @@ -0,0 +1,5 @@ +#include +#define __copysign __copysign_generic +#undef libm_alias_double +#define libm_alias_double(a, b) +#include diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.c similarity index 71% rename from sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S rename to sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.c index 685027500a..117dbaf088 100644 --- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S +++ b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.c @@ -2,4 +2,4 @@ #define __copysignf __copysignf_generic #undef libm_alias_float #define libm_alias_float(a, b) -#include +#include diff --git a/sysdeps/sparc/sparc64/fpu/s_copysign.S b/sysdeps/sparc/sparc64/fpu/s_copysign.S deleted file mode 100644 index 221dbd9286..0000000000 --- a/sysdeps/sparc/sparc64/fpu/s_copysign.S +++ /dev/null @@ -1,30 +0,0 @@ -/* copysign function, sparc64 version. - Copyright (C) 2012-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 (__copysign) - fzeros %f7 - fnegs %f7, %f7 - fands %f2, %f7, %f9 - fandnot2s %f0, %f7, %f0 - retl - fors %f0, %f9, %f0 -END (__copysign) -libm_alias_double (__copysign, copysign) diff --git a/sysdeps/sparc/sparc64/fpu/s_copysignf.S b/sysdeps/sparc/sparc64/fpu/s_copysignf.S deleted file mode 100644 index 6ca6ccf8af..0000000000 --- a/sysdeps/sparc/sparc64/fpu/s_copysignf.S +++ /dev/null @@ -1,30 +0,0 @@ -/* float copysign function, sparc64 version. - Copyright (C) 2012-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 (__copysignf) - fzeros %f7 - fnegs %f7, %f7 - fands %f3, %f7, %f9 - fandnot2s %f1, %f7, %f1 - retl - fors %f1, %f9, %f0 -END (__copysignf) -libm_alias_float (__copysign, copysign)