From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by sourceware.org (Postfix) with ESMTPS id 8F89E3858430 for ; Thu, 27 Jan 2022 22:08:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8F89E3858430 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-lj1-x230.google.com with SMTP id q22so6342600ljh.7 for ; Thu, 27 Jan 2022 14:08:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:subject:message-id:user-agent:mime-version; bh=jdrPgnMmqtarrS/Ieeg+Go0ko69+qQwYD5vkeBbznCw=; b=MatfwFuMGKTWXH4J7v7uwxTHqH1WtFQBqJnu+QtYoGdXBvYyuvCdt+X8SebdIWIwdx xUpbU5AE3sIjAHUZY9Ef+BWf0q7qNtQDtJM5K0loYK1kGMc8N62VFcwioA1GAC2Q9cPd NgBcB/QhGKBGl0k7To/AtX846oCKiOmAkf/Us7tv4HqVx2qUqEzDr+eSltrXqAqkTG/V /Z1//4XHd9a4pvdHYUMYB+KTvwORgUbzZ3M6lp8AWT4ZnGgNek+SpXco7eImDA7GV5LW tiv0NYtt9mu2reXaNhu/iHiipnlYQlaB8r1EwyO4FQznfQ6rULUE4dAeXzptwcGx9hkN nPng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:user-agent :mime-version; bh=jdrPgnMmqtarrS/Ieeg+Go0ko69+qQwYD5vkeBbznCw=; b=aB2lGI1OWwgru/qU+Ze+1dHUEukpHmwR6MxgiiS42xgOseWbCt4nYAYgfC6FyacHIr 8YJEhbq6dmeUzpqaV15wRO7aBjnKdZzYw9Ov9oJOKlfDpmiiVro3UlxymXJUJ5dy1bd5 xE201rpavPobPMewaT2zmQBS32G8jEYdHBpPwGD6KNYPT3pS/JNzNnLcRiFlEqKnDKTI cttzp94VVN6Dk7vBQe8/8Y9Py91WJiswe41Fx+hLrWhZN58qB+NjWSYzF0KOiuneJFTD ONeaUzmP4re0C+MpIv1MIHoo0+1FbGJVkfaz2aSS+4eAvLYrkEssmKxici7Rtraqpvhw CsGw== X-Gm-Message-State: AOAM530pCgEBe9MyiAba8GNVD1/h7lregz85kVBtJVSkVdRg/khA0hNa vZgcLP8Syv6MBjQHE++ETaKOnLfUjhKIIQ== X-Google-Smtp-Source: ABdhPJyrv7D+17+QKiiyNsYlWhTlPzTkBK6nzOPAMg16koRDLDJA0RQfLToVph8kpd4vfd3KdM06sw== X-Received: by 2002:a05:651c:1a10:: with SMTP id by16mr3955688ljb.94.1643321334238; Thu, 27 Jan 2022 14:08:54 -0800 (PST) Received: from [192.168.219.3] ([78.8.192.131]) by smtp.gmail.com with ESMTPSA id r15sm1511092lfi.57.2022.01.27.14.08.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jan 2022 14:08:53 -0800 (PST) Date: Thu, 27 Jan 2022 22:08:49 +0000 (GMT) From: "Maciej W. Rozycki" To: gcc-patches@gcc.gnu.org Subject: [PATCH] RISC-V: Document `auipc' and `bitmanip' `type' attributes Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, 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: Thu, 27 Jan 2022 22:08:56 -0000 Document new `auipc' and `bitmanip' `type' attributes added respectively with commit 88108b27dda9 ("RISC-V: Add sifive-7 pipeline description.") and commit 283b1707f237 ("RISC-V: Implement instruction patterns for ZBA extension.") but not listed so far. gcc/ * config/riscv/riscv.md: Document `auipc' and `bitmanip' `type' attributes. --- Hi, There's also the `rotate' `type' attribute, but it's nowhere used, so it might be worth removing. As not-a-regression however that would be GCC 13 material I guess. OK to apply? Maciej --- gcc/config/riscv/riscv.md | 2 ++ 1 file changed, 2 insertions(+) gcc-riscv-auipc-bitmanip-type.diff Index: gcc/gcc/config/riscv/riscv.md =================================================================== --- gcc.orig/gcc/config/riscv/riscv.md +++ gcc/gcc/config/riscv/riscv.md @@ -150,6 +150,7 @@ ;; mfc transfer from coprocessor ;; const load constant ;; arith integer arithmetic instructions +;; auipc integer addition to PC ;; logical integer logical instructions ;; shift integer shift instructions ;; slt set less than instructions @@ -167,6 +168,7 @@ ;; multi multiword sequence (or user asm statements) ;; nop no operation ;; ghost an instruction that produces no real code +;; bitmanip bit manipulation instructions (define_attr "type" "unknown,branch,jump,call,load,fpload,store,fpstore, mtc,mfc,const,arith,logical,shift,slt,imul,idiv,move,fmove,fadd,fmul,