From patchwork Fri Oct 27 13:25:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 117343 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp771367qgn; Fri, 27 Oct 2017 06:26:19 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RLWRHHDdwNnz8qFIdHDeYvUWBVydpmfEbvN+nPgFBcf1bB0dyDuku02Y+RSJhgKHhyxwpi X-Received: by 10.159.245.142 with SMTP id a14mr393501pls.394.1509110779075; Fri, 27 Oct 2017 06:26:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509110779; cv=none; d=google.com; s=arc-20160816; b=HcE97L+IpTW5DbPpfGK8GMEvroaT5R9wh0CmDTzE3Pe6aYG2zOLwptmsWi9JkW/pMx ssam1nWkFvNawSQF5rQm2hz9m/cpLmF6ubXr9Kb7fqVNxxYThQ/QkKd6EXLAKeHrql2c +7bneS10SRXoaBJ7KmJ9e7w4bLvUUzRhQ0/4bze8x47v20X2xngYdUqA0r5FNIZdzDQH V797RPolPb7GlJYORd/4xxVVhkBug6qJSnbtZawiDM7PP/UJFS2Q2TnCnQGYGqZgeKCt t72OfUHP+D8kuZPIjtyqgNN96fpETVanVZcKw8yJHrtzbw5pb97hpqokST4RxPRESvYv GmVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:mail-followup-to:to:from:delivered-to:sender:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=pIgztfsleBi7wnER06VI95uHGPAVczj88mH4J7ENrzk=; b=vDxlGOKy3DSTgpP3LQC2JcTm86hUi164gzjt6pzOmwxv3HRqZUg8/gXcY9u2lGTqPn XWEK3r/mnadL35wu71DHgmDPcYV9fMWIil5mPvpNg4NKG1flsKwjpbjCPinaCAxed1KC gr/YqvcZAIXk9T63buBpgYFmdUb0LenwaYI0D/4HJzPjR8D8w50rRN8AHpfRoFf/jakB HmefKiMJiHKNvQs1EUbmM28dIyzNSPhEEO+LadfeKpdwValjWNpZebxPIBL4kMB8NXth gYweOzkxUAvH63+ElVQ1Lo2jvytTtHmUSsXARvK74N+g3TWHW54USHAfK5MZkTNWcskC Qegw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=FrUB8zfA; spf=pass (google.com: domain of gcc-patches-return-465343-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-465343-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id t2si5307623pfh.548.2017.10.27.06.26.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Oct 2017 06:26:19 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-465343-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=FrUB8zfA; spf=pass (google.com: domain of gcc-patches-return-465343-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-465343-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.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:references:date:in-reply-to:message-id :mime-version:content-type; q=dns; s=default; b=RJ+dvaDXyjE82XuE 8YrQouSGpZ6d0PiLfH/jiBsPLgaFZNridn5kPHsZQUMUl9V2u4XiFsN9E3zxjTU/ AEZfER+2Lue75K2OQZtBR24zJRSqMCeBLdp4/ccDhMFTi5EM2gJbmG+JPgKxbv2T RV5St4V8vIxmQ46/9FZPuoA3fBQ= 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:references:date:in-reply-to:message-id :mime-version:content-type; s=default; bh=PpgYeTq+v/AsCUQTKqtDfy Dg0ww=; b=FrUB8zfA7TYURHRU0yuZF43LR4j94muIbDAwj10hT8DxydbpyxHJ83 KJIMhsepQep/9JE0nlAVGR5UGU3DfNk2HSLIMGx9QV38QAi3AyIbSY1DlOEIzBcq PkehIanHo2HuJ4M6SjCWBT5PrkAKvV7J06Fri0wVMtMCqnhdrCFIM= Received: (qmail 33789 invoked by alias); 27 Oct 2017 13:26:07 -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 33762 invoked by uid 89); 27 Oct 2017 13:26:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wm0-f42.google.com Received: from mail-wm0-f42.google.com (HELO mail-wm0-f42.google.com) (74.125.82.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Oct 2017 13:26:05 +0000 Received: by mail-wm0-f42.google.com with SMTP id p75so3578005wmg.3 for ; Fri, 27 Oct 2017 06:26:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:mail-followup-to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version; bh=pIgztfsleBi7wnER06VI95uHGPAVczj88mH4J7ENrzk=; b=BNGDvSqJewIXPqczSJFC9OVCiWuo49Y8U/yeXl1DeQclBDi0oLhyNFgt+m9/FD3FMl Lyy+FaCvUs9AOh+3DsfNOuHx/RPofKYPnNjMveWFRUezykYb/kqMrRkZE7VeNmXKAlmM a6lNBSkfXZiXV4m1LaMEi0EyYrW8T9DOqbqOsIvkghc7YTdynJUTXGaCybwwZoBeY0/8 kQ8q9Bb1ml6ZxX5+Ngz6RoF2MRV6HouGK//RbPFodgOfvDTj0PMgTHBgiY9HBskc0cOu SoYyAGhjg4cTDFR1Do9apA5DD5kVLf44HVpmCbrcLkWzEE6UvXf98kJ24c1Ga0sdev6V 8e4w== X-Gm-Message-State: AMCzsaWQzr97V5Z0fMbCCqi2Cag/2QCOSzQwgyUcyWR9z48kpVuntbUM Uq5+WizB9QMQ+HBgEjd9OUdGnw== X-Received: by 10.28.175.132 with SMTP id y126mr413198wme.20.1509110763100; Fri, 27 Oct 2017 06:26:03 -0700 (PDT) Received: from localhost (188.29.164.51.threembb.co.uk. [188.29.164.51]) by smtp.gmail.com with ESMTPSA id e77sm1770477wmi.16.2017.10.27.06.26.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Oct 2017 06:26:02 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.earnshaw@arm.com, james.greenhalgh@arm.com, marcus.shawcroft@arm.com, richard.sandiford@linaro.org Cc: richard.earnshaw@arm.com, james.greenhalgh@arm.com, marcus.shawcroft@arm.com Subject: [04/nn] [AArch64] Rename the internal "Upl" constraint References: <873764d8y3.fsf@linaro.org> Date: Fri, 27 Oct 2017 14:25:56 +0100 In-Reply-To: <873764d8y3.fsf@linaro.org> (Richard Sandiford's message of "Fri, 27 Oct 2017 14:19:48 +0100") Message-ID: <87inf0bu3f.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 The SVE port uses the public constraints "Upl" and "Upa" to mean "low predicate register" and "any predicate register" respectively. "Upl" was already used as an internal-only constraint by the addition patterns, so this patch renames it to "Uaa" ("two adds needed"). 2017-10-27 Richard Sandiford Alan Hayward David Sherwood gcc/ * config/aarch64/constraints.md (Upl): Rename to... (Uaa): ...this. * config/aarch64/aarch64.md (*zero_extend2_aarch64, *addsi3_aarch64_uxtw): Update accordingly. Reviewed-By: James Greenhalgh Index: gcc/config/aarch64/constraints.md =================================================================== --- gcc/config/aarch64/constraints.md 2017-10-27 14:06:16.159815485 +0100 +++ gcc/config/aarch64/constraints.md 2017-10-27 14:11:54.071011147 +0100 @@ -35,7 +35,7 @@ (define_constraint "I" (and (match_code "const_int") (match_test "aarch64_uimm12_shift (ival)"))) -(define_constraint "Upl" +(define_constraint "Uaa" "@internal A constant that matches two uses of add instructions." (and (match_code "const_int") (match_test "aarch64_pluslong_strict_immedate (op, VOIDmode)"))) Index: gcc/config/aarch64/aarch64.md =================================================================== --- gcc/config/aarch64/aarch64.md 2017-10-27 14:07:01.875769946 +0100 +++ gcc/config/aarch64/aarch64.md 2017-10-27 14:11:54.071011147 +0100 @@ -1562,7 +1562,7 @@ (define_insn "*add3_aarch64" (match_operand:GPI 0 "register_operand" "=rk,rk,w,rk,r") (plus:GPI (match_operand:GPI 1 "register_operand" "%rk,rk,w,rk,rk") - (match_operand:GPI 2 "aarch64_pluslong_operand" "I,r,w,J,Upl")))] + (match_operand:GPI 2 "aarch64_pluslong_operand" "I,r,w,J,Uaa")))] "" "@ add\\t%0, %1, %2 @@ -1580,7 +1580,7 @@ (define_insn "*addsi3_aarch64_uxtw" (match_operand:DI 0 "register_operand" "=rk,rk,rk,r") (zero_extend:DI (plus:SI (match_operand:SI 1 "register_operand" "%rk,rk,rk,rk") - (match_operand:SI 2 "aarch64_pluslong_operand" "I,r,J,Upl"))))] + (match_operand:SI 2 "aarch64_pluslong_operand" "I,r,J,Uaa"))))] "" "@ add\\t%w0, %w1, %2