From patchwork Thu Nov 14 10:07:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 179387 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp10837032ilf; Thu, 14 Nov 2019 02:08:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwF81+Gk/5FsRktGrawXfmPUqVXdsIqYE/DX2YXuMmBCgcG+PdpubVU3xXA2+kKqZRP1zFv X-Received: by 2002:a05:6402:2042:: with SMTP id bc2mr173657edb.167.1573726097592; Thu, 14 Nov 2019 02:08:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573726097; cv=none; d=google.com; s=arc-20160816; b=C2DkILEfZRIlS7dwYbR+rHR+fv/mvpYPd5uT0uj8pIwdV01I/KK8YuiC2y7q0D2Ffd XPg6Zqz80O7QZGhKR02ab2yFW3peMEpgZF+2fdt7Ge5WrVlsoWNK3h7kM6d82QG7N44I CHDB1MwR/0SLivVOOdm8a3mEL40R97USK1qpmA+YoZhE/QzWUEA3ozNiYmiqRj5GdfRs cHXu/oo7heJbqmIl6i6AXc6cVt1yP702j37zTuEz3ZPHRznBmkhyBHi0r+ovHuSGETaQ MlQTrkGxV3A3ZvyECH4Kzxek7TZeZFhtcR4fvdV+AXMT31fz06kHTHamElSqnXEt534G /zqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=089Bc4beoJzRBjhSd5mq9EoVlTd3JUiH87uldhE5CrI=; b=W7Gmkhv1FqUrsY0qLv7InQzANW5R8FN/0CSYilnrZ++myZ99dxkZ4L7PtikYyj5ES6 E3/K1yGB73NMtpZnBJk0xz84TL3Jfa7Zp5pB0idcdVCDX4Z41CAO2LNLDfp7fWC9qQzs l2Y8kCoYjVSzK4yXrrwDJyfN0ZtawXEhpfRru6gH/8f1fHRlOEW2FHlEMr71GSniV7uK /1zWcnFdeOPM/wWdmju1eo2Afg5Fb/SXxqldM5+XiviXKnfQ07zdgDVGUrRvQRNMcoiF B6jzZHtPB9c9r38wZyWY/L/nqo0H/kACGbRzWBdvcNdRxtwvssauf0ymQMgBTE3wlMRA qWJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=BrHPhW9X; dkim=pass header.i=@linaro.org header.s=google header.b=tsudVjRd; spf=pass (google.com: domain of gcc-patches-return-513345-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-513345-patch=linaro.org@gcc.gnu.org"; dmarc=pass (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 j22si3272015edq.415.2019.11.14.02.08.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Nov 2019 02:08:17 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-513345-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=BrHPhW9X; dkim=pass header.i=@linaro.org header.s=google header.b=tsudVjRd; spf=pass (google.com: domain of gcc-patches-return-513345-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-513345-patch=linaro.org@gcc.gnu.org"; dmarc=pass (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:date:message-id:in-reply-to:references; q=dns; s= default; b=xRVXTSEbPiWzRPiiNRm10nnDb7Oxj/w8VezXtYpvVY5cujjBPegM7 3dUsO06IcvOq15GyjUg4RRDXGhZXdpUydxfTzmNB/brg3RMFOfQRp/VXItM4Y2y9 C7a1ZUd16MyVPjOq6/a3BWCJ1eUCL7vZkkuPFvsZer/EHj6Kbw6v58= 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=BrHPhW9X7g67xUVDLka3 oA8XmeWhZTRzSE1tGYSznaJCQEgZkHdANBeCCaBAOPeO/i+UB/eOMy2NNQJGK4c/ Ef1hEzxnvvTSyvpaL2MX1bYzq7qtsny17ruh9Il8rkubxqpDKkM3uSiA7h4jzaor xVqARfW3o6rT2EC2BONELZU= Received: (qmail 75162 invoked by alias); 14 Nov 2019 10:07:41 -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 75104 invoked by uid 89); 14 Nov 2019 10:07:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.1 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-f68.google.com Received: from mail-wm1-f68.google.com (HELO mail-wm1-f68.google.com) (209.85.128.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Nov 2019 10:07:35 +0000 Received: by mail-wm1-f68.google.com with SMTP id u18so5012634wmc.3 for ; Thu, 14 Nov 2019 02:07:35 -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=tsudVjRdGUKsEoJHl7vhCZ/FJveHSHQ3P8h0a4pGKB4dYZl1RtTR14D+kDRVLk2hom P5PZi1GIuFcUom9q0oTtoWl4fdaEV7eINjUktcb4Kpkj5SjOgj9rsuvpH0YoOEMpp5Y+ yDVx5h1KePHR6hMjYFb3jmJRPLbjQJ72TgRfF3WXW17wcXqYtNxWQp7tLAvRKapo8O1n ZKcK78v7wnRSuQevahfRZmxCPxbW1aKgkN2Y7X0kTXn/zuCSFcyWUn8wmitnYLa1gvnJ 6ucJL4dl1urO67CL7rlJoz31Sin5Q8CUGrqfHOS74MaTYYPMOc7wMCTzsMEutz7CRqH5 ug6Q== Return-Path: Received: from localhost.localdomain (184.red-37-158-56.dynamicip.rima-tde.net. [37.158.56.184]) by smtp.gmail.com with ESMTPSA id x26sm5359539wmc.14.2019.11.14.02.07.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 02:07:32 -0800 (PST) From: Richard Henderson To: gcc-patches@gcc.gnu.org Cc: richard.earnshaw@arm.com, kyrylo.tkachov@arm.com, richard.sandiford@arm.com Subject: [PATCH v2 2/6] arm: Fix the "c" constraint Date: Thu, 14 Nov 2019 11:07:12 +0100 Message-Id: <20191114100716.28827-3-richard.henderson@linaro.org> In-Reply-To: <20191114100716.28827-1-richard.henderson@linaro.org> References: <20191114100716.28827-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(-) -- 2.17.1 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.")