From 53010f6ff6dfbf7bcd40055cf00d9f8e653cc641 Mon Sep 17 00:00:00 2001 From: Juzhe-Zhong Date: Sun, 5 Nov 2023 10:37:44 +0800 Subject: [PATCH] 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. --- gcc/config/riscv/vector.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,\ -- 2.47.2