]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix bug of vlds attribute
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Sun, 5 Nov 2023 02:37:44 +0000 (10:37 +0800)
committerPan Li <pan2.li@intel.com>
Sun, 5 Nov 2023 02:42:37 +0000 (10:42 +0800)
This issue is noticed when support strided load/store auto-vectorization.
Commit it as it is obvious.

gcc/ChangeLog:

* config/riscv/vector.md: Fix bug.

gcc/config/riscv/vector.md

index ce5c5be8e42b6e5d211d3eb667d29cd1b118833d..c47bc77ab7cd24236ba0955cd815af4fa3a2ca99 100644 (file)
         ;; wheras it is pred_strided_load if operands[3] is vector mode.
         (eq_attr "type" "vlds")
           (if_then_else (match_test "VECTOR_MODE_P (GET_MODE (operands[3]))")
-            (const_int INVALID_ATTRIBUTE)
+            (const_int 8)
             (const_int 7))
 
         (eq_attr "type" "vldux,vldox,vialu,vshift,viminmax,vimul,vidiv,vsalu,\