https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121659
Bug ID: 121659
Summary: [16 Regression] RISC-V: ICE in operator[], at
vec.h:911
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: skothadiya at whileone dot in
Target Milestone: ---
-freport-bug
~~~/riscv-gnu-toolchain-build/bin/riscv64-unknown-linux-gnu-gcc
-I/compiler-fuzz-ci/csmith-build/include -fsigned-char -fno-strict-aliasing
-fwrapv -march=rv64gcv -O3 ./red.c -o rv64gcv.out -freport-bug
during GIMPLE pass: vect
./red.c: In function 'b':
./red.c:2:6: internal compiler error: Segmentation fault
2 | void b(_Bool c[][3]) {
| ^
0x2f973c6 internal_error(char const*, ...)
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/diagnostic-global-context.cc:534
0x156a7e3 crash_signal
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/toplev.cc:323
0x1876654 vec<_slp_tree*, va_heap, vl_embed>::operator[](unsigned int)
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/vec.h:911
0x1876654 vec<_slp_tree*, va_heap, vl_ptr>::operator[](unsigned int)
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/vec.h:1610
0x1876654 vectorizable_reduction(_loop_vec_info*, _stmt_vec_info*, _slp_tree*,
_slp_instance*, vec<stmt_info_for_cost, va_heap, vl_ptr>*)
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-loop.cc:7230
0x1854c1a vect_analyze_stmt(vec_info*, _slp_tree*, _slp_instance*,
vec<stmt_info_for_cost, va_heap, vl_ptr>*)
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-stmts.cc:12549
0x18b2e85 vect_slp_analyze_node_operations_1
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-slp.cc:7799
0x18b2e85 vect_slp_analyze_node_operations
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-slp.cc:8067
0x18b2de5 vect_slp_analyze_node_operations
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-slp.cc:8044
0x18b2de5 vect_slp_analyze_node_operations
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-slp.cc:8044
0x18b2de5 vect_slp_analyze_node_operations
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-slp.cc:8044
0x18b2de5 vect_slp_analyze_node_operations
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-slp.cc:8044
0x18b2de5 vect_slp_analyze_node_operations
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-slp.cc:8044
0x18b4b11 vect_slp_analyze_operations(vec_info*)
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-slp.cc:8472
0x187cd1f vect_analyze_loop_2
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-loop.cc:2424
0x187f4de vect_analyze_loop_1
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-loop.cc:2895
0x187fd07 vect_analyze_loop(loop*, gimple*, vec_info_shared*)
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vect-loop.cc:3073
0x18cb0ec try_vectorize_loop_1
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vectorizer.cc:1100
0x18cb0ec try_vectorize_loop
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vectorizer.cc:1219
0x18cba3c execute
/compiler-fuzz-ci/riscv-gnu-toolchain/gcc/gcc/tree-vectorizer.cc:1335
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Preprocessed source stored into /tmp/cchv0GQO.out file, please attach this to
your bugreport.~~~