diff options
author | Juzhe-Zhong <juzhe.zhong@rivai.ai> | 2023-11-05 10:37:44 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2023-11-05 10:42:37 +0800 |
commit | 53010f6ff6dfbf7bcd40055cf00d9f8e653cc641 (patch) | |
tree | 41a71039c064e43e70655ea3eb8fc7db3a8eac71 | |
parent | eb4e1b625fdc32a067ad2a0bf0bc5ee1f891859a (diff) | |
download | gcc-53010f6ff6dfbf7bcd40055cf00d9f8e653cc641.zip gcc-53010f6ff6dfbf7bcd40055cf00d9f8e653cc641.tar.gz gcc-53010f6ff6dfbf7bcd40055cf00d9f8e653cc641.tar.bz2 |
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.
-rw-r--r-- | gcc/config/riscv/vector.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/riscv/vector.md b/gcc/config/riscv/vector.md index ce5c5be..c47bc77 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,\ |