public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9025] RISC-V: Fix *sge<u>_<X:mode><GPR:mode> pattern
@ 2024-02-16 10:10 Kito Cheng
0 siblings, 0 replies; only message in thread
From: Kito Cheng @ 2024-02-16 10:10 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:325d5dd53270fe8fd62b36c92c8f8b87c2938bf1
commit r14-9025-g325d5dd53270fe8fd62b36c92c8f8b87c2938bf1
Author: Kito Cheng <kito.cheng@sifive.com>
Date: Fri Feb 16 17:27:24 2024 +0800
RISC-V: Fix *sge<u>_<X:mode><GPR:mode> pattern
*sge<u>_<X:mode><GPR:mode> pattern has referenced operand[2] which is
invalid...it should just use `slti<u>` rather than `slti%i2<u>`.
gcc/ChangeLog:
PR target/106543
* config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>): Fix asm
pattern.
Diff:
---
gcc/config/riscv/riscv.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/riscv/riscv.md b/gcc/config/riscv/riscv.md
index 39b29795cd6c..3f7a023d9410 100644
--- a/gcc/config/riscv/riscv.md
+++ b/gcc/config/riscv/riscv.md
@@ -3107,7 +3107,7 @@
(any_ge:GPR (match_operand:X 1 "register_operand" " r")
(const_int 1)))]
""
- "slt%i2<u>\t%0,zero,%1"
+ "slti<u>\t%0,zero,%1"
[(set_attr "type" "slt")
(set_attr "mode" "<X:MODE>")])
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-16 10:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-16 10:10 [gcc r14-9025] RISC-V: Fix *sge<u>_<X:mode><GPR:mode> pattern Kito Cheng
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).