https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119477
Bug ID: 119477 Summary: RISC-V: -fno-tree-vectorize -fno-tree-loop-vectorize -fno-tree-slp-vectorize can't turn off auto-vectorization Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sundongya at nucleisys dot com Target Milestone: --- Hi, Recently, when testing spec2006 intspeed case, I found that when I don't want to enable auto-vectorization for some cases, the option `-fno-tree-vectorize -fno-tree-loop-vectorize -fno-tree-slp-vectorize` cannot completely turn off the auto-vectorization, and V instructions will still be generated. gcc version gcc version 15.0.1 20250312 (experimental) (g7efe3aa9b5d) Compile options CC = riscv64-unknown-linux-gnu-gcc -march=rv64imafdcv_zba_zbb_zbc_zbs -mabi=lp64d -static CXX = riscv64-unknown-linux-gnu-g++ -march=rv64imafdcv_zba_zbb_zbc_zbs -mabi=lp64d -static FC = riscv64-unknown-linux-gnu-gfortran -march=rv64imafdcv_zba_zbb_zbc_zbs -mabi=lp64d -static ##################################################################### # Optimization ##################################################################### default=base=default=default: COPTIMIZE = -Ofast -flto -fno-tree-vectorize -fno-tree-loop-vectorize -fno-tree-slp-vectorize -fno-tree-loop-if-convert CXXOPTIMIZE = -Ofast -flto -fno-tree-vectorize -fno-tree-loop-vectorize -fno-tree-slp-vectorize -fno-tree-loop-if-convert FOPTIMIZE = -Ofast -flto -fno-tree-vectorize -fno-tree-loop-vectorize -fno-tree-slp-vectorize -fno-tree-loop-if-convert