From patchwork Fri Oct 18 19:48:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard Earnshaw \(lists\)" X-Patchwork-Id: 176963 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp1295460ocf; Fri, 18 Oct 2019 12:58:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGqumJaJkDXT2wJYE4ahKhWhwCEewWoWZh/CNUvvzR4+m2zPo1vSI1nDEXXvng0ds8Y5kW X-Received: by 2002:aa7:d898:: with SMTP id u24mr11556819edq.74.1571428736141; Fri, 18 Oct 2019 12:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571428736; cv=none; d=google.com; s=arc-20160816; b=zndKFea7fyXxqlJFAo3Y7oeZDLKX4P6ms2FWvuQbm81dJsdvRAW424A1nMHJ0yLJLL +3DpCpACMLehdTzsinnqjE87qBiejEaDydZF7jPk2IIEx+llA3+H3+P2xMVRgF0mfzff 7JP0pulRU88Y70LHhCw8jG0g+aVZ4ivWQWZoFNEd3Sp/NHQt3c+Ti44wtGkq8E4x8NSs wc+LdHS6YCAMnASmmyi3ioDhlWU39qgYnz2+257IAV+0msizQnsuOMJkA+Q+4I0WcZzy W3KoCJ6UPjJLC/xPChSsmJzW4CnDMrGTB5yT3t3EMJtXJ+2IH3YXWaJQ8cqKOdbpMdjH 9nJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=zIiKqKXLbBbNGN688NmLFVONtZgEm5NRHm1PRjsu7sE=; b=t8tMDyPWci7d2WWVmytJ8j9WiKgc8+khiexT5w3g5S8+rFTXwVwQjdiL48+A5Xt0JQ HMPfGEzw8zIIalAvCrqdEa3h+N7ViPgzawI6tBfP9ISkruDBbyFhemNqklgHupabo0Xo 8YngOA+oWaeroG4TwaWuzftqf+pyaF9Gb44HgLlcaISz1tDOv1xZdq9+L7fubqexjabC PBqOn+6RgAYY+UGfrET3vEa7FtxPu7XZp4lVyQ2Om8h4/javqyrEz9YTHUP9y78jnxAE pn8HrulrUvpFClfXT3CRjXFxpbiNbklZMNz2lcoaVH94977neSvRrCyWW/9brMfbiaqT A3MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=ArErIx+h; spf=pass (google.com: domain of gcc-patches-return-511329-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-511329-patch=linaro.org@gcc.gnu.org" Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id b19si4008941ejj.83.2019.10.18.12.58.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2019 12:58:56 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-511329-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=ArErIx+h; spf=pass (google.com: domain of gcc-patches-return-511329-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-511329-patch=linaro.org@gcc.gnu.org" DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; q=dns; s=default; b=V7n80mOLypJ+K6iI RDJbBSDmSvoWemC4xDIiehXqdPhlmhh2tOoUXR50ggGglYgfjcNyOF1vbPlDhWq4 YuT18kMH9c15/vDDcNSOPLjVXRz9UEEhP9ldqjSlfIrw1t98+S6FnlSoWjVU27AX Ybrp25bqqYqScGQHXNOPPt4vGqM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type; s=default; bh=8AD6NgOMhqhQKXLEODcTTG 4qQn0=; b=ArErIx+hIdmjn3srfgy3lscwt6pN3Bqix2d7uqcF8kOTSkw+Wjz20F Al68/MT1uCTqruO55GsfSWl+Eg3tKNbyb3aCt0Fvn3oCiBvt/c8F8UGrzznIqq2+ GcsoLOBsltzT1mr12wEDhOTds9H6xWIof/WYmWau8o93m8ObqprT8= Received: (qmail 115257 invoked by alias); 18 Oct 2019 19:55:47 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 114936 invoked by uid 89); 18 Oct 2019 19:55:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, SPF_FAIL autolearn=ham version=3.3.1 spammy=circumstances X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Oct 2019 19:55:43 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLYLc-00059s-Pq for gcc-patches@gcc.gnu.org; Fri, 18 Oct 2019 15:55:41 -0400 Received: from [217.140.110.172] (port=42754 helo=foss.arm.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iLYLc-00054Y-Il for gcc-patches@gcc.gnu.org; Fri, 18 Oct 2019 15:55:40 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D78FE15EC; Fri, 18 Oct 2019 12:49:15 -0700 (PDT) Received: from eagle.buzzard.freeserve.co.uk (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 64BB73F6C4; Fri, 18 Oct 2019 12:49:15 -0700 (PDT) From: Richard Earnshaw To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [PATCH 05/29] [arm] fix constraints on addsi3_carryin_alt2 Date: Fri, 18 Oct 2019 20:48:36 +0100 Message-Id: <20191018194900.34795-6-Richard.Earnshaw@arm.com> In-Reply-To: <20191018194900.34795-1-Richard.Earnshaw@arm.com> References: <20191018194900.34795-1-Richard.Earnshaw@arm.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.140.110.172 addsi3_carryin_alt2 has a more strict constraint than the predicate when adding a constant. This leads to sub-optimal code in some circumstances. * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for operand 2. --- gcc/config/arm/arm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index 9754a761faf..fbe154a9873 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -893,7 +893,7 @@ (define_insn "*addsi3_carryin_alt2_" [(set (match_operand:SI 0 "s_register_operand" "=l,r,r") (plus:SI (plus:SI (LTUGEU:SI (reg: CC_REGNUM) (const_int 0)) (match_operand:SI 1 "s_register_operand" "%l,r,r")) - (match_operand:SI 2 "arm_rhs_operand" "l,rI,K")))] + (match_operand:SI 2 "arm_not_operand" "l,rI,K")))] "TARGET_32BIT" "@ adc%?\\t%0, %1, %2