public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4347] RISC-V: Add type attribute in *<optab>_not_const<mode> pattern
@ 2023-09-30  3:22 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-09-30  3:22 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d6fe757b39297c1c0cf243acee860d045726c184

commit r14-4347-gd6fe757b39297c1c0cf243acee860d045726c184
Author: Jivan Hakobyan <jivanhakobyan9@gmail.com>
Date:   Fri Sep 29 21:21:02 2023 -0600

    RISC-V: Add type attribute in *<optab>_not_const<mode> pattern
    
    After f088b768d01a commit riscv_sched_variable_issue function requires
    that all insns should have a type attribute.
    
    When I sent my previous patch there was no such limitation.
    Currently, I have regressions on my tests. This patch fixes them.
    
    gcc/ChangeLog:
            * config/riscv/bitmanip.md (*<optab>_not_const<mode>): Added type attribute

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

diff --git a/gcc/config/riscv/bitmanip.md b/gcc/config/riscv/bitmanip.md
index 0f45bad14d0..a9c8275fca7 100644
--- a/gcc/config/riscv/bitmanip.md
+++ b/gcc/config/riscv/bitmanip.md
@@ -225,7 +225,9 @@
   "#"
   "&& reload_completed"
   [(set (match_dup 3) (match_dup 2))
-   (set (match_dup 0) (bitmanip_bitwise:X (not:X (match_dup 1)) (match_dup 3)))])
+   (set (match_dup 0) (bitmanip_bitwise:X (not:X (match_dup 1)) (match_dup 3)))]
+  ""
+  [(set_attr "type" "bitmanip")])
 
 ;; '(a >= 0) ? b : 0' is emitted branchless (from if-conversion).  Without a
 ;; bit of extra help for combine (i.e., the below split), we end up emitting

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-30  3:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-30  3:22 [gcc r14-4347] RISC-V: Add type attribute in *<optab>_not_const<mode> pattern Jeff Law

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).