From patchwork Fri Nov 8 10:54:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 1191811 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-512803-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="gdycJfrb"; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="PqlROorF"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 478cc72Lntz9s7T for ; Fri, 8 Nov 2019 21:55:03 +1100 (AEDT) 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; q=dns; s= default; b=INcuX5CfS2a6QYi2TnFm0BNpGYHO5YUbrY0ojMUXNcsw2eor+58gM jFrfijx/rV0LPko40/AsunTxyAY/BssZce/1gnKA8eZug0jf46ykchSu7jn3ZKev U7cTUNeI9ZHX0tGIDDA9AflIuw0CPOXC0XdzTvo+ct0WmyF7idaeXQ= 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; s= default; bh=FMGzwvLLe1OshKMnoXIuBcXR6z0=; b=gdycJfrbM3DdLZht6O1+ ehf/rCzxzh+WUzdgXYb3Vv+BDrBN5PcAJIFZJdyoiaOES0p5BLcT/G+LQrz3miHC kSS7HUkKvt6bjW9ioiddpEJGl1MSkCzagzWbXV6HpXxoZB+Peb6uyuemixwLXUSK PB7GyfYB3Kdpr6PrSXsl02I= Received: (qmail 105869 invoked by alias); 8 Nov 2019 10:54:29 -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 105683 invoked by uid 89); 8 Nov 2019 10:54:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-wm1-f67.google.com Received: from mail-wm1-f67.google.com (HELO mail-wm1-f67.google.com) (209.85.128.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Nov 2019 10:54:27 +0000 Received: by mail-wm1-f67.google.com with SMTP id v3so7055756wmh.1 for ; Fri, 08 Nov 2019 02:54:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=089Bc4beoJzRBjhSd5mq9EoVlTd3JUiH87uldhE5CrI=; b=PqlROorFbiH4SmUEVW+hx79FsY5b6terYClEtIvgV9jEPcl3yZS0A3/f4b96sVVLhA 7nLJVm0mJCI1UN/NeR02fJL7z6fZ9d07PQ87NoR+TS6rcAztn8M5Gw7aRkaHOeqdfMVo KRYjcomKL8G40RVbp9RS5ucNfxorfG3PFHlS5Y+mRcDrC1yrfftgvNXbfHKjoOZJdQW+ YPiiNMFIPwPKNc6Jz98TkrOdZIrXjKodu/iJI1tnAs7QJ1j8BMzGbocQyDP0PkxuxtFN nBl88ygWy/pLfBxGwNNUXr4z5tJGCYUy/s9idMtW00+GRC/hHPNXKwBBfBvGZA3TLus+ bAOw== Received: from localhost.localdomain (212.red-213-99-162.dynamicip.rima-tde.net. [213.99.162.212]) by smtp.gmail.com with ESMTPSA id 19sm8046565wrc.47.2019.11.08.02.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 02:54:24 -0800 (PST) From: Richard Henderson To: gcc-patches@gcc.gnu.org Cc: richard.earnshaw@arm.com, james.greenhalgh@arm.com, richard.sandiford@arm.com, marcus.shawcroft@arm.com, kyrylo.tkachov@arm.com Subject: [PATCH 2/6] arm: Fix the "c" constraint Date: Fri, 8 Nov 2019 11:54:04 +0100 Message-Id: <20191108105408.27584-3-richard.henderson@linaro.org> In-Reply-To: <20191108105408.27584-1-richard.henderson@linaro.org> References: <20191108105408.27584-1-richard.henderson@linaro.org> The existing definition using register class CC_REG does not work because CC_REGNUM does not support normal modes, and so fails to match register_operand. Use a non-register constraint and the cc_register predicate instead. * config/arm/constraints.md (c): Use cc_register predicate. --- gcc/config/arm/constraints.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/config/arm/constraints.md b/gcc/config/arm/constraints.md index b76de81b85c..e02b678d26d 100644 --- a/gcc/config/arm/constraints.md +++ b/gcc/config/arm/constraints.md @@ -94,8 +94,9 @@ "@internal Thumb only. The union of the low registers and the stack register.") -(define_register_constraint "c" "CC_REG" - "@internal The condition code register.") +(define_constraint "c" + "@internal The condition code register." + (match_operand 0 "cc_register")) (define_register_constraint "Cs" "CALLER_SAVE_REGS" "@internal The caller save registers. Useful for sibcalls.")