From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by sourceware.org (Postfix) with ESMTPS id 92F17385742B for ; Wed, 7 Jul 2021 23:26:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 92F17385742B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=maskray.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f178.google.com with SMTP id u14so3942710pga.11 for ; Wed, 07 Jul 2021 16:26:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZFlt4gKgFyXxf+WKO8cjtcchTuIL7F3pC7MujBvfclI=; b=ZgTk1zrY1IDJTpfM1Rcr34VZJPQN3sVoOTM+m3as7NyrMhWeVbBksLZqMtciCcfz2q oPZBmFSbaBa2IuQCUiYj2K9q/PwLF+JmZMJ63DCNR5ztGi7HktudWgs7hiohH21R7EHz 8WVW4q5B1HDho6+nnlU3EVLQtqzFpV0mxR6Evnor0zf50ia5z6j3dG3eyvu0DAFgZgyA n7cRe/ToZCYai15I32VaOlFxUZqdDxgRWRwF0+RHc8LN7UrpLuHpxrqUclbv4OUNelfL 6/qtuFXYEDIyEIP2f9Rf6dHEztaJoWA9UnPHFHTfYyWwF6D6q45/9jjmA1gakt8SOGPq zuog== X-Gm-Message-State: AOAM533KoUPImkzOVrUcWyC+vrILplKOiaOva03aExcxF4Dgaj8vuUW7 oHgjJ7zLY/EE5GhvaSCYM2E= X-Google-Smtp-Source: ABdhPJxXp9QB+TSj7GOZzesmtIMYYSLrJinLAAsTFW6zyXRqhmUrJM7frmEVFCIKPPlHLahKomQjBw== X-Received: by 2002:a65:6a45:: with SMTP id o5mr28836510pgu.409.1625700387420; Wed, 07 Jul 2021 16:26:27 -0700 (PDT) Received: from localhost ([2601:647:4b01:ae80:2f1c:f51a:b1e6:c1b0]) by smtp.gmail.com with ESMTPSA id h20sm289630pfn.173.2021.07.07.16.26.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jul 2021 16:26:26 -0700 (PDT) Date: Wed, 7 Jul 2021 16:26:25 -0700 From: Fangrui Song To: Kito Cheng Cc: gcc-patches@gcc.gnu.org, kito.cheng@gmail.com, jimw@sifive.com Subject: Re: [PATCH] docs: Add 'S' to Machine Constraints for RISC-V Message-ID: <20210707232625.zntqg54rmxv6lj4n@gmail.com> References: <20210702023010.53289-1-kito.cheng@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210702023010.53289-1-kito.cheng@sifive.com> X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_INFOUSMEBIZ, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: , X-List-Received-Date: Wed, 07 Jul 2021 23:26:29 -0000 On 2021-07-02, Kito Cheng wrote: >It was undocument before, but already used in linux kernel, so LLVM >community suggest we should document that, so that make it become >supported/documented/non-internal machine constraints. > >gcc/ChangeLog: > > PR target/101275 > * doc/md.text (Machine Constraints): Document the 'S' constraints > for RISC-V. >--- > gcc/doc/md.texi | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi >index 00caf3844cc..b776623e8a5 100644 >--- a/gcc/doc/md.texi >+++ b/gcc/doc/md.texi >@@ -3536,6 +3536,9 @@ A 5-bit unsigned immediate for CSR access instructions. > @item A > An address that is held in a general-purpose register. > >+@item S >+A constant call address. >+ > @end table > > @item RX---@file{config/rx/constraints.md} >-- >2.31.1 > Ping on this:) 'S' can be used on either a variable or a function. Does "A constant call address." need change?