]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix avl-type operand index error for ZVBC
authorFeng Wang <wangfeng@eswincomputing.com>
Fri, 5 Jan 2024 09:23:44 +0000 (09:23 +0000)
committerFeng Wang <wangfeng@eswincomputing.com>
Mon, 8 Jan 2024 00:55:57 +0000 (00:55 +0000)
This patch fix the rtl-checking error for crypto vector. The root
cause is the avl-type index of zvbc ins is error,it should be operand[8]
not operand[5].
gcc/ChangeLog:

* config/riscv/vector.md: Modify avl_type operand index of zvbc ins.

gcc/config/riscv/vector.md

index be5beb5ab641e8fb38f027cba75f98d7c351407a..24b7b4394bee223b9b44429642ffe53d72150c87 100644 (file)
                          vnclip,vicmp,vfalu,vfmul,vfminmax,vfdiv,vfwalu,vfwmul,\
                          vfsgnj,vfcmp,vslideup,vslidedown,vislide1up,\
                          vislide1down,vfslide1up,vfslide1down,vgather,viwmuladd,vfwmuladd,\
-                         vlsegds,vlsegdux,vlsegdox,vandn,vrol,vror,vwsll")
+                         vlsegds,vlsegdux,vlsegdox,vandn,vrol,vror,vclmul,vclmulh,vwsll")
           (const_int 8)
-        (eq_attr "type" "vstux,vstox,vssegts,vssegtux,vssegtox,vclmul,vclmulh")
+        (eq_attr "type" "vstux,vstox,vssegts,vssegtux,vssegtox")
           (const_int 5)
 
         (eq_attr "type" "vimuladd,vfmuladd")