From patchwork Thu Apr 7 15:21:02 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: 52707 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 1D04A386EC38 for ; Thu, 7 Apr 2022 15:21:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D04A386EC38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1649344889; bh=j9hl7oIUetixJv0bcbQg9nWale1W5Fp9hwx2E97DT6A=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=DIAXnpkAoJ+XSWzn8Yd8+auo1L33hPrheR6HdwkOV7SUg3wmr8z0S3afgi+nziiss oLrdCWszNHYDi8TITuSbTacI3bDwZHdbufj17AOxaAcZxVjOKjh6mhYte75rX6uDqb xvkHtRZsVWg+6SwqFyCtPV4+aG2lUImVL0Nt9cSA= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oa1-x31.google.com (mail-oa1-x31.google.com [IPv6:2001:4860:4864:20::31]) by sourceware.org (Postfix) with ESMTPS id 94AA73857C71 for ; Thu, 7 Apr 2022 15:21:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 94AA73857C71 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-deb9295679so6688408fac.6 for ; Thu, 07 Apr 2022 08:21:07 -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=j9hl7oIUetixJv0bcbQg9nWale1W5Fp9hwx2E97DT6A=; b=khMpoWAYc4OFgHE7b/Uk8rRjBvjCakfKSqs8+IHUq5brnBUMQo/diB3/YZkhZkggY/ Z7PRY9l5pWw6pHTleAo0elEgXAjmxE10LB5KOWRSdWzYp0laW/GQW1xh22Fw8Qf1ilFY 9djLUVm26Dl950s4E7jXHcYCL1bv5ms9E7iMwOgoBEBM1bSOMk0c7k0dyYJ4bdhOwNyC yEletFcgIW+AkNa/bTLuU3lZua+155UvG9R0i2YWAx/uFlAJeCKbxtnKXSHj4lZZtr9Q bLb6qgkUz8oZkKBbwdRxEKvhK2//gKR0WGpXcHApijTU3UYugcBHEUJLRwUzIWBIfK+o Z2DA== X-Gm-Message-State: AOAM530v2aAwAZ+K5Yfo6/VZdAQU8tjjubJ5hUmmiPFiLuJdCp1rbCi6 NvsJoC2Thpbq8TvLfm5pNQe97IyrEvJYdQ== X-Google-Smtp-Source: ABdhPJzfIq8aJ9HJgvaK89/da9QDZ0jiLvDfzDiRjCWFYNhzD+8fX/BPiK0PHDxdv/sYFwKjKnP0bA== X-Received: by 2002:a05:6870:709f:b0:e1:e7f0:456f with SMTP id v31-20020a056870709f00b000e1e7f0456fmr6988406oae.239.1649344866411; Thu, 07 Apr 2022 08:21:06 -0700 (PDT) Received: from birita.. ([2804:431:c7cb:321:9304:77a6:d900:ebb]) by smtp.gmail.com with ESMTPSA id x20-20020a4ac594000000b00329a02f2f34sm217753oop.16.2022.04.07.08.21.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 08:21:05 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [COMMITTED] x86: Remove fcopysign{f} implementation Date: Thu, 7 Apr 2022 12:21:02 -0300 Message-Id: <20220407152102.746831-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 Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" The builtin used by generic code generates similar code. Checked on x86_64-linux-gnu and i686-linux-gnu. --- sysdeps/i386/fpu/s_copysign.S | 20 ------------- sysdeps/i386/fpu/s_copysignf.S | 20 ------------- sysdeps/i386/fpu/s_copysignl.S | 20 ------------- sysdeps/x86_64/fpu/s_copysign.S | 50 -------------------------------- sysdeps/x86_64/fpu/s_copysignf.S | 45 ---------------------------- sysdeps/x86_64/fpu/s_copysignl.S | 20 ------------- 6 files changed, 175 deletions(-) delete mode 100644 sysdeps/i386/fpu/s_copysign.S delete mode 100644 sysdeps/i386/fpu/s_copysignf.S delete mode 100644 sysdeps/i386/fpu/s_copysignl.S delete mode 100644 sysdeps/x86_64/fpu/s_copysign.S delete mode 100644 sysdeps/x86_64/fpu/s_copysignf.S delete mode 100644 sysdeps/x86_64/fpu/s_copysignl.S diff --git a/sysdeps/i386/fpu/s_copysign.S b/sysdeps/i386/fpu/s_copysign.S deleted file mode 100644 index a49d34e4b7..0000000000 --- a/sysdeps/i386/fpu/s_copysign.S +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Public domain. - */ - -#include -#include - -RCSID("$NetBSD: s_copysign.S,v 1.4 1995/05/08 23:53:02 jtc Exp $") - -ENTRY(__copysign) - movl 16(%esp),%edx - movl 8(%esp),%eax - andl $0x80000000,%edx - andl $0x7fffffff,%eax - orl %edx,%eax - movl %eax,8(%esp) - fldl 4(%esp) - ret -END (__copysign) -libm_alias_double (__copysign, copysign) diff --git a/sysdeps/i386/fpu/s_copysignf.S b/sysdeps/i386/fpu/s_copysignf.S deleted file mode 100644 index edc540c4d6..0000000000 --- a/sysdeps/i386/fpu/s_copysignf.S +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Public domain. - */ - -#include -#include - -RCSID("$NetBSD: s_copysignf.S,v 1.3 1995/05/08 23:53:25 jtc Exp $") - -ENTRY(__copysignf) - movl 8(%esp),%edx - movl 4(%esp),%eax - andl $0x80000000,%edx - andl $0x7fffffff,%eax - orl %edx,%eax - movl %eax,4(%esp) - flds 4(%esp) - ret -END (__copysignf) -libm_alias_float (__copysign, copysign) diff --git a/sysdeps/i386/fpu/s_copysignl.S b/sysdeps/i386/fpu/s_copysignl.S deleted file mode 100644 index 9d9b273e94..0000000000 --- a/sysdeps/i386/fpu/s_copysignl.S +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Public domain. - */ - -#include -#include - -RCSID("$NetBSD: $") - -ENTRY(__copysignl) - movl 24(%esp),%edx - movl 12(%esp),%eax - andl $0x8000,%edx - andl $0x7fff,%eax - orl %edx,%eax - movl %eax,12(%esp) - fldt 4(%esp) - ret -END (__copysignl) -libm_alias_ldouble (__copysign, copysign) diff --git a/sysdeps/x86_64/fpu/s_copysign.S b/sysdeps/x86_64/fpu/s_copysign.S deleted file mode 100644 index 0787f68115..0000000000 --- a/sysdeps/x86_64/fpu/s_copysign.S +++ /dev/null @@ -1,50 +0,0 @@ -/* copy sign, double version. - Copyright (C) 2002-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 - - .section .rodata.cst16,"aM",@progbits,16 - - .align ALIGNARG(4) - .type signmask,@object -signmask: - .byte 0, 0, 0, 0, 0, 0, 0, 0x80 - .byte 0, 0, 0, 0, 0, 0, 0, 0 - ASM_SIZE_DIRECTIVE(signmask) - .type othermask,@object -othermask: - .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f - .byte 0, 0, 0, 0, 0, 0, 0, 0 - ASM_SIZE_DIRECTIVE(othermask) - -#ifdef PIC -#define MO(op) op##(%rip) -#else -#define MO(op) op -#endif - - .text -ENTRY(__copysign) - andpd MO(othermask),%xmm0 - andpd MO(signmask),%xmm1 - orpd %xmm1,%xmm0 - ret -END (__copysign) - -libm_alias_double (__copysign, copysign) diff --git a/sysdeps/x86_64/fpu/s_copysignf.S b/sysdeps/x86_64/fpu/s_copysignf.S deleted file mode 100644 index b48af3f5ad..0000000000 --- a/sysdeps/x86_64/fpu/s_copysignf.S +++ /dev/null @@ -1,45 +0,0 @@ -/* copy sign, double version. - Copyright (C) 2002-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 - - .section .rodata - - .align ALIGNARG(4) - .type mask,@object -mask: - .byte 0xff, 0xff, 0xff, 0x7f - ASM_SIZE_DIRECTIVE(mask) - -#ifdef PIC -#define MO(op) op##(%rip) -#else -#define MO(op) op -#endif - - .text -ENTRY(__copysignf) - movss MO(mask),%xmm3 - andps %xmm3,%xmm0 - andnps %xmm1,%xmm3 - orps %xmm3,%xmm0 - retq -END (__copysignf) - -libm_alias_float (__copysign, copysign) diff --git a/sysdeps/x86_64/fpu/s_copysignl.S b/sysdeps/x86_64/fpu/s_copysignl.S deleted file mode 100644 index 3ec388a6ef..0000000000 --- a/sysdeps/x86_64/fpu/s_copysignl.S +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Public domain. - */ - -#include -#include - -RCSID("$NetBSD: $") - -ENTRY(__copysignl) - movl 32(%rsp),%edx - movl 16(%rsp),%eax - andl $0x8000,%edx - andl $0x7fff,%eax - orl %edx,%eax - movl %eax,16(%rsp) - fldt 8(%rsp) - ret -END (__copysignl) -libm_alias_ldouble (__copysign, copysign)