From patchwork Mon Oct 31 15:44:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Engel X-Patchwork-Id: 13295 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2386908wru; Mon, 31 Oct 2022 08:48:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM49cdEyp47tl2JXFIGFye8X5apGeGNlgnxIekqBAH4VuZV9wyqGAeqHkZcxJfQ9lW5id0Xq X-Received: by 2002:a17:906:79d8:b0:7ad:b675:f34d with SMTP id m24-20020a17090679d800b007adb675f34dmr11010611ejo.194.1667231337392; Mon, 31 Oct 2022 08:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667231337; cv=none; d=google.com; s=arc-20160816; b=tGu7RMBRsFKk8u9sB0ZJCskb1lnSKgJ3+RrI2QNT6Q83kWWPEVmHHNczGXhJVkdVyf Wipz1c8xmn4CcPqV1Mv4Zfl6ktnexl26LyZFh2f7FNswz0EWBWPYXZYLWaobagGAR2Cx 8PJYrynddLYlJ64polzr1edrlxn2Z8d09UEIf/lqdbggZxtNDTovlkOWoKGhnFc4S2eQ DgBeo7xJrMxTQd6LggY+B+jWIQ7esNiXIfIeKOm866G1MKJMxk5dYUwfXmqTCSeTwv+t eGqk0La7Ihkq7ZeVwWKnhuRl7fvLIVSVOj7ASTdawP8/60TaesnhssZCETb6U7rEDBNc 8wew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :feedback-id:dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=FI0GRIy3zXmYGot0W0fHA5+2eB/6jtr+Aavg4VvcTaM=; b=CBGg4heTi/GwEA324L59LcyFptimQItzguTKfquAcmQFbxX8KPN61QSvrOXN28eHqI l2ECzSYLDdYFmDSKezjtlM2ZoxCGFXXqbjNXon9HvvL9s7l8zrzN0LmzHcEnpYQRUMK1 0Eu1ttPKImEU/pYFW50pLJFtaqxLVmhEeFbX5V+3qtk+RTBZY1wkVbfh4oLO3kdUma52 rlERVkElaTjIinQDWpckjd33E0X2ee4dkCh0R6jBx6n6jFDhTi3wNTTXEgdfiwmsdrFU HQV0B33unKqOxi0t9CDO2mVWkyCIRBo8xsuSPrH3abkWCvZAMX30PjCM6nwXsZkDjOqn Xhng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@danielengel.com header.s=fm1 header.b=bnfkSPaK; dkim=fail header.i=@messagingengine.com header.s=fm3 header.b=VtLtHoFL; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id jr8-20020a170906a98800b007ad821844fcsi7170195ejb.528.2022.10.31.08.48.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 08:48:57 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=fail header.i=@danielengel.com header.s=fm1 header.b=bnfkSPaK; dkim=fail header.i=@messagingengine.com header.s=fm3 header.b=VtLtHoFL; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F3083388B697 for ; Mon, 31 Oct 2022 15:47:27 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by sourceware.org (Postfix) with ESMTPS id EFD493853561 for ; Mon, 31 Oct 2022 15:46:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EFD493853561 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=danielengel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=danielengel.com Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 8FE593200917; Mon, 31 Oct 2022 11:46:23 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 31 Oct 2022 11:46:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=danielengel.com; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1667231183; x= 1667317583; bh=FI0GRIy3zXmYGot0W0fHA5+2eB/6jtr+Aavg4VvcTaM=; b=b nfkSPaK+LEgHCrnHIwIIMOvM5hLRcuwyYPCgWQzpQIsfaKm3aCv5PZxtEsY3r9RY gYJyALICvlm33S/tc7/gg8HsOjZ2idPBQ3GhG032sRbj1LbdHgCz+CsS13pEQoog flwY62jLSTSGCbNU6jInTTFpH+W5xo2Q0xzTFpgfK5VVxgBkdnEZ2P4v+8fkSByJ jlg7Nur42loA7HbxjM15CIJ9pNdD3yIqy7HK0rTksEyg0ym/qaXhdcu2Bs0jLvvW hUyvheeoQ5xcX20fYvP0ggs/NutpW2euwLsZTmzVGWZ+viUGS733sRk5POiLcq/Z EHuk4BPN8m5RqiZ+5n5IA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1667231183; x=1667317583; bh=FI0GRIy3zXmYG ot0W0fHA5+2eB/6jtr+Aavg4VvcTaM=; b=VtLtHoFLVxG6Y0nbAwablPiHaSTZd +bN0BEJwx7DTyv/Py7D1OiKmEbsvKPPRCirCTEYBpW5D4fs53uzMB1VF29OyMDtL 0Pv8w/dBwg4XRvRqWtTpGZ9WBMUPdTvuw5cI9ToQPaMrJXKJcNInqrIlxCw8MI8T A/7DwsPktjrT1l72+Kt3CsfVIWiJoyubVARTYGDswT+bvy+w47foAsrbKwLJgge3 z9X3Xtxjj9jZCGps42pR7IKOUon3pUu0frRin1H7tHmy78uoflVK8AINC/aO8Dos NIIbbTKJuQlnpz2fo4OuvAxn5zmlPfpFmUZzf90GGQCJjeumpzvzPqU/g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrudefgdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpeffrghnihgv lhcugfhnghgvlhcuoehgnhhusegurghnihgvlhgvnhhgvghlrdgtohhmqeenucggtffrrg htthgvrhhnpefggeekleduieelueegvdehvdegjedvgefgtddvfeeuvedvveetffehhfdu jefggeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hgnhhusegurghnihgvlhgvnhhgvghlrdgtohhm X-ME-Proxy: Feedback-ID: i791144d6:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 31 Oct 2022 11:46:22 -0400 (EDT) Received: from ubuntu.lorien.danielengel.com (ubuntu.lorien.danielengel.com [10.0.0.96]) by sendmail.lorien.danielengel.com (8.15.2/8.15.2) with ESMTP id 29VFkEZh087241; Mon, 31 Oct 2022 08:46:14 -0700 (PDT) (envelope-from gnu@danielengel.com) From: Daniel Engel To: Richard Earnshaw , gcc-patches@gcc.gnu.org Subject: [PATCH v7 04/34] Reorganize LIB1ASMFUNCS object wrapper macros Date: Mon, 31 Oct 2022 08:44:59 -0700 Message-Id: <20221031154529.3627576-5-gnu@danielengel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221031154529.3627576-1-gnu@danielengel.com> References: <20221031154529.3627576-1-gnu@danielengel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Engel , Christophe Lyon Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748218766908759170?= X-GMAIL-MSGID: =?utf-8?q?1748218766908759170?= This will make it easier to isolate changes in subsequent patches. gcc/libgcc/ChangeLog: 2022-10-09 Daniel Engel * config/arm/t-elf (LIB1ASMFUNCS): Split macros into logical groups. --- libgcc/config/arm/t-elf | 66 +++++++++++++++++++++++++++++++++-------- 1 file changed, 53 insertions(+), 13 deletions(-) diff --git a/libgcc/config/arm/t-elf b/libgcc/config/arm/t-elf index 9da6cd37054..93ea1cd8f76 100644 --- a/libgcc/config/arm/t-elf +++ b/libgcc/config/arm/t-elf @@ -14,19 +14,59 @@ LIB1ASMFUNCS += _arm_muldf3 _arm_mulsf3 endif endif # !__symbian__ -# For most CPUs we have an assembly soft-float implementations. -# However this is not true for ARMv6M. Here we want to use the soft-fp C -# implementation. The soft-fp code is only build for ARMv6M. This pulls -# in the asm implementation for other CPUs. -LIB1ASMFUNCS += _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_tls _bb_init_func \ - _call_via_rX _interwork_call_via_rX \ - _lshrdi3 _ashrdi3 _ashldi3 \ - _arm_negdf2 _arm_addsubdf3 _arm_muldivdf3 _arm_cmpdf2 _arm_unorddf2 \ - _arm_fixdfsi _arm_fixunsdfsi \ - _arm_truncdfsf2 _arm_negsf2 _arm_addsubsf3 _arm_muldivsf3 \ - _arm_cmpsf2 _arm_unordsf2 _arm_fixsfsi _arm_fixunssfsi \ - _arm_floatdidf _arm_floatdisf _arm_floatundidf _arm_floatundisf \ - _clzsi2 _clzdi2 _ctzsi2 +# This pulls in the available assembly function implementations. +# The soft-fp code is only built for ARMv6M, since there is no +# assembly implementation here for double-precision values. + + +# Group 1: Integer function objects. +LIB1ASMFUNCS += \ + _ashldi3 \ + _ashrdi3 \ + _lshrdi3 \ + _clzdi2 \ + _clzsi2 \ + _ctzsi2 \ + _dvmd_tls \ + _divsi3 \ + _modsi3 \ + _udivsi3 \ + _umodsi3 \ + + +# Group 2: Single precision floating point function objects. +LIB1ASMFUNCS += \ + _arm_addsubsf3 \ + _arm_cmpsf2 \ + _arm_fixsfsi \ + _arm_fixunssfsi \ + _arm_floatdisf \ + _arm_floatundisf \ + _arm_muldivsf3 \ + _arm_negsf2 \ + _arm_unordsf2 \ + + +# Group 3: Double precision floating point function objects. +LIB1ASMFUNCS += \ + _arm_addsubdf3 \ + _arm_cmpdf2 \ + _arm_fixdfsi \ + _arm_fixunsdfsi \ + _arm_floatdidf \ + _arm_floatundidf \ + _arm_muldivdf3 \ + _arm_negdf2 \ + _arm_truncdfsf2 \ + _arm_unorddf2 \ + + +# Group 4: Miscellaneous function objects. +LIB1ASMFUNCS += \ + _bb_init_func \ + _call_via_rX \ + _interwork_call_via_rX \ + # Currently there is a bug somewhere in GCC's alias analysis # or scheduling code that is breaking _fpmul_parts in fp-bit.c.