public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4761] RISC-V: Fix wrong predicator for zero_extendsidi2_internal pattern
@ 2021-10-28 6:54 Kito Cheng
0 siblings, 0 replies; only message in thread
From: Kito Cheng @ 2021-10-28 6:54 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2dc835cd0b5183a0e30b2b052362ad05f5c082b0
commit r12-4761-g2dc835cd0b5183a0e30b2b052362ad05f5c082b0
Author: Kito Cheng <kito.cheng@sifive.com>
Date: Thu Oct 28 00:27:39 2021 +0800
RISC-V: Fix wrong predicator for zero_extendsidi2_internal pattern
We're wrongly guard zero_extendsidi2_internal pattern both ZBA and ZBB,
only ZBA provide zero_extendsidi2 instruction.
gcc/ChangeLog
* config/riscv/riscv.md (zero_extendsidi2_internal): Allow ZBB
use this 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 dd4c24292f2..225e5b259c1 100644
--- a/gcc/config/riscv/riscv.md
+++ b/gcc/config/riscv/riscv.md
@@ -1311,7 +1311,7 @@
[(set (match_operand:DI 0 "register_operand" "=r,r")
(zero_extend:DI
(match_operand:SI 1 "nonimmediate_operand" " r,m")))]
- "TARGET_64BIT && !(TARGET_ZBA || TARGET_ZBB)"
+ "TARGET_64BIT && !TARGET_ZBA"
"@
#
lwu\t%0,%1"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-28 6:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 6:54 [gcc r12-4761] RISC-V: Fix wrong predicator for zero_extendsidi2_internal 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).