]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Add type attribute in *<optab>_not_const<mode> pattern
authorJivan Hakobyan <jivanhakobyan9@gmail.com>
Sat, 30 Sep 2023 03:21:02 +0000 (21:21 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Sat, 30 Sep 2023 03:21:02 +0000 (21:21 -0600)
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

gcc/config/riscv/bitmanip.md

index 0f45bad14d04b6e891a764cf115e1fadbbb2200b..a9c8275fca7b82381ae625ba5abc0c29155595a1 100644 (file)
   "#"
   "&& 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