From patchwork Fri Mar 3 13:54:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Green X-Patchwork-Id: 63933 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp419878wrd; Fri, 3 Mar 2023 05:55:27 -0800 (PST) X-Google-Smtp-Source: AK7set8qy/9vQtcPevWe0sxpEdCZZN3wU+aLi+jj1b0BxKxVfKGyTMKhmV3g+LA1tEWHBzVryTBm X-Received: by 2002:aa7:d044:0:b0:4af:6227:3866 with SMTP id n4-20020aa7d044000000b004af62273866mr1748357edo.19.1677851727069; Fri, 03 Mar 2023 05:55:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677851727; cv=none; d=google.com; s=arc-20160816; b=x29L82DrDvvOIKAwG18t+z3iLPizQS3by+UDWqzVm7VpMZy5iqYQNye19T/BeMWjOe Uz70AFhJuVIMyi01qLg07sYmfh9y2SIih82lnPYqkJkWh8hMVf7/mlZUShrR1w4pmAEn xzl5zbJj/+nLp9R49HtuYaCtFbWHccNwCisZvx4vpUFfThryBEOXbUlJxqMYflkH1BlT 90XW3bgsHuXtLyXT/Xhnt/r0W3ULwYqT3VAo13wQx17ja80rJ/CWfn6q5AvYJCC3CVKZ rAQQQ3jd5NURmBu7nnF9x4ynTGg8NwXf1CYl7gR2ouaxRkYeTBeewV8Wpx3R+Yvyxvaa YYxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:message-id:date :user-agent:subject:to:from:dkim-signature:dmarc-filter:delivered-to; bh=HXjmbHa8QReXQmCxCnGvsMvuNQfPC4fLN5cu9cDaJXg=; b=f7rMp7aFRCKVVtC1RQvq957GhVI+do7jovP7gQr6jxR+WsQaJslJ9rPwaG2RrmJj/Y tbBUIViJ8CXTz//BDFsb9pJRGQKikp9qFnqut6qjqVScyhFhWlxDE16DUFqLRChpdZFp Jes8VB5n+3r7+CVVvfMER1nxScHPG+IaNO/sgFMALkQWMvSPk617DO4Eku3pY/GVyKz6 g6M8diYIymO7cTFK2h+yFfvfrT5GRjdnzKbzAqfSLQWElpBdiyET1AWu7QTUm687hqxZ rFdAylwCX9ycmrkYG5h+bDM0+FpLcWfFLRNQZtDyGsakOGUNwK7eEwR6monixB7pLB7U k7DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@moxielogic-com.20210112.gappssmtp.com header.s=20210112 header.b=jTdNgAhL; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id j5-20020aa7c0c5000000b004c2f8f5bff2si2768144edp.428.2023.03.03.05.55.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 05:55:27 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@moxielogic-com.20210112.gappssmtp.com header.s=20210112 header.b=jTdNgAhL; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 43613385B528 for ; Fri, 3 Mar 2023 13:55:11 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by sourceware.org (Postfix) with ESMTPS id 2615138582AB for ; Fri, 3 Mar 2023 13:54:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2615138582AB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=moxielogic.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=moxielogic.com Received: by mail-qv1-xf36.google.com with SMTP id op8so1733384qvb.11 for ; Fri, 03 Mar 2023 05:54:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=moxielogic-com.20210112.gappssmtp.com; s=20210112; t=1677851685; h=mime-version:message-id:date:user-agent:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=HXjmbHa8QReXQmCxCnGvsMvuNQfPC4fLN5cu9cDaJXg=; b=jTdNgAhLXdnY1sOw540q/AwU/L+vL3lJFWF8h354SWfYPpy5VRl6zKySnlNDstxZbI 1rbyHo08D3tL6OifDhFFvrIsvoih42lSwGrlmPam1CMyya4XcCYDj02M5TcyQkugBQtA XGWLKwp8fkZEJ7JdeejuBkndXvAjsMvrE2td0VEQhDVhlAeoBt1sQbGJMfSWihhPVE/Q Dt6JEV6c3DxcHvYYa558DB0wVMqIBO8d3qbgKsgUk8Lexddy+qaFs7bv/h8cIRd9IRPp kk3ZA7cUR0GqFDPQ12VW8zHG9AWK/oOo4c0oaG4LAQQh8glNvn7fcUTmtkHS7KDJ4GMX 01XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677851685; h=mime-version:message-id:date:user-agent:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HXjmbHa8QReXQmCxCnGvsMvuNQfPC4fLN5cu9cDaJXg=; b=jxbznEvzkEAQuDrwCfu0wzgpUr1LLSlODBD74zB817ah6/8iR0S9HtiHJrOsuRCsiE rOnk9cxyorLrtMUebp0/Hv484hUyG+iR5usyY8FyMKD3xaLterD7o7IINY8dtEwJyQxS aYPyZAPorkAF+hLalet8q/ZZQHPUkeoqhZFJHwW6FSVGfo91WIbNNyz9Hx9Z6xtZmJAZ FnKUYPwmX/Q93b4Yg3/CfvhL1SgVJzDs52Q5iTr6Zbcnkuxo/PoLr9dJnMxf3Jf7zEQT ajoHBBluj/sxkOTvNtw6DCcgrxeoi4wVCVQ71vNXPMmyHYUAhiq2quwcW3HkdykL+NXu gFcQ== X-Gm-Message-State: AO0yUKUzzPGduotXMpZu6gQssY8OdHGp2rBuQ9MozzacPAqPr0lrLyAP M+zJl5SM5HImcKk/miwrox9DDOGGXBXOM+6PvlA+eA== X-Received: by 2002:ad4:4eae:0:b0:56e:a96b:a3a1 with SMTP id ed14-20020ad44eae000000b0056ea96ba3a1mr2760394qvb.7.1677851685212; Fri, 03 Mar 2023 05:54:45 -0800 (PST) Received: from localhost ([104.156.64.74]) by smtp.gmail.com with ESMTPSA id u2-20020a37ab02000000b007423caef02fsm1700492qke.122.2023.03.03.05.54.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 05:54:44 -0800 (PST) From: Anthony Green To: gcc-patches@gcc.gnu.org Subject: [PATCH] moxie: use define_memory_constraint User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Date: Fri, 03 Mar 2023 08:54:44 -0500 Message-ID: <87r0u6szx7.fsf@moxielogic.com> MIME-Version: 1.0 X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, 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: , 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?1759355052657355335?= X-GMAIL-MSGID: =?utf-8?q?1759355052657355335?= Committed as obviously correct. Required to make LRA for moxie work. gcc/ChangeLog: * config/moxie/constraints.md (A, B, W): Change define_constraint to define_memory_constraint. diff --git a/gcc/config/moxie/constraints.md b/gcc/config/moxie/constraints.md index 16c64b28b59..78e8e9813fd 100644 --- a/gcc/config/moxie/constraints.md +++ b/gcc/config/moxie/constraints.md @@ -22,19 +22,19 @@ ;; Constraints ;; ------------------------------------------------------------------------- -(define_constraint "A" +(define_memory_constraint "A" "An absolute address." (and (match_code "mem") (ior (match_test "GET_CODE (XEXP (op, 0)) == SYMBOL_REF") (match_test "GET_CODE (XEXP (op, 0)) == LABEL_REF") (match_test "GET_CODE (XEXP (op, 0)) == CONST")))) -(define_constraint "B" +(define_memory_constraint "B" "An offset address." (and (match_code "mem") (match_test "moxie_offset_address_p (op)"))) -(define_constraint "W" +(define_memory_constraint "W" "A register indirect memory operand." (and (match_code "mem") (match_test "REG_P (XEXP (op, 0))