[Bug tree-optimization/111765] RISC-V: Faild to vectorize gen-vect-34.c

juzhe.zhong at rivai dot ai gcc-bugzilla@gcc.gnu.org
Wed Oct 11 02:35:01 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111765

--- Comment #3 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
If we specify the vector length to RVV and SVE:

https://godbolt.org/z/njvsqYWhn

Both can vectorize.

ARM SVE: -msve-vector-bits=128

RVV: --param=riscv-autovec-preference=fixed-vlmax


More information about the Gcc-bugs mailing list