[gcc(refs/vendors/vrull/heads/for-upstream)] riscv: bitmanip/zbb: Add prefix/postfix and enable visiblity
Philipp Tomsich
ptomsich@gcc.gnu.org
Fri Nov 18 20:26:40 GMT 2022
https://gcc.gnu.org/g:d7378acd99c8b293b80f8484a3f4bf4854a8f56d
commit d7378acd99c8b293b80f8484a3f4bf4854a8f56d
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 c487524fc89..fe713882ef1 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"))))]
More information about the Gcc-cvs
mailing list