From: Juzhe-Zhong Date: Sun, 5 Nov 2023 02:37:44 +0000 (+0800) Subject: RISC-V: Fix bug of vlds attribute X-Git-Tag: basepoints/gcc-15~5012 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53010f6ff6dfbf7bcd40055cf00d9f8e653cc641;p=thirdparty%2Fgcc.git RISC-V: Fix bug of vlds attribute 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. --- diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md index ce5c5be8e42b..c47bc77ab7cd 100644 --- a/gcc/config/riscv/vector.md +++ b/gcc/config/riscv/vector.md @@ -840,7 +840,7 @@ ;; 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,\