public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Philipp Tomsich <ptomsich@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/vendors/vrull/heads/for-upstream)] riscv: bitmanip/zbb: Add prefix/postfix and enable visiblity
Date: Tue, 15 Nov 2022 14:02:49 +0000 (GMT)	[thread overview]
Message-ID: <20221115140249.94C5F3895FEA@sourceware.org> (raw)

https://gcc.gnu.org/g:8dbcea61dfaa9ad0db6d77a1ff2b9bb5fc4d145c

commit 8dbcea61dfaa9ad0db6d77a1ff2b9bb5fc4d145c
Author: Christoph Müllner <christoph.muellner@vrull.eu>
Date:   Wed Sep 28 11:18:58 2022 +0200

    riscv: bitmanip/zbb: Add prefix/postfix and enable visiblity
    
    INSNs are usually postfixed by a number representing the argument count.
    Given the instructions will be used in a later commit, let's make them
    visible, but add a "riscv_" prefix to avoid conflicts with standard
    INSNs.
    
    gcc/ChangeLog:
    
            * config/riscv/bitmanip.md (*<optab>_not<mode>): Rename INSN.
            (riscv_<optab>_not<mode>3): Rename INSN.
            (*xor_not<mode>): Rename INSN.
            (xor_not<mode>3): Rename INSN.
    
    Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>

Diff:
---
 gcc/config/riscv/bitmanip.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/riscv/bitmanip.md b/gcc/config/riscv/bitmanip.md
index ee980714a24..14e3346797f 100644
--- a/gcc/config/riscv/bitmanip.md
+++ b/gcc/config/riscv/bitmanip.md
@@ -238,7 +238,7 @@
 
 ;; ZBB extension.
 
-(define_insn "*<optab>_not<mode>"
+(define_insn "riscv_<optab>_not<mode>3"
   [(set (match_operand:X 0 "register_operand" "=r")
         (bitmanip_bitwise:X (not:X (match_operand:X 1 "register_operand" "r"))
                             (match_operand:X 2 "register_operand" "r")))]
@@ -260,7 +260,7 @@
   [(set (match_dup 3) (ashiftrt:DI (match_dup 1) (const_int 63)))
    (set (match_dup 0) (and:DI (not:DI (match_dup 3)) (match_dup 2)))])
 
-(define_insn "*xor_not<mode>"
+(define_insn "riscv_xor_not<mode>3"
   [(set (match_operand:X 0 "register_operand" "=r")
         (not:X (xor:X (match_operand:X 1 "register_operand" "r")
                       (match_operand:X 2 "register_operand" "r"))))]

             reply	other threads:[~2022-11-15 14:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-15 14:02 Philipp Tomsich [this message]
2022-11-15 15:00 Philipp Tomsich
2022-11-17 22:26 Philipp Tomsich
2022-11-18 11:36 Philipp Tomsich
2022-11-18 20:23 Philipp Tomsich
2022-11-18 20:26 Philipp Tomsich
2022-12-01 13:24 Philipp Tomsich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221115140249.94C5F3895FEA@sourceware.org \
    --to=ptomsich@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).