https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112366
Bug ID: 112366 Summary: ICE in vectorizable_live_operation, at tree-vect-loop.cc:10798 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: lehua.ding at rivai dot ai Target Milestone: --- Created attachment 56499 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56499&action=edit sm3.i Compiler command to reproduce the ICE: riscv64-unknown-elf-gcc -O3 -fno-vect-cost-model --param=riscv-autovec-preference=fixed-vlmax -march=rv64gcv_zknd_zkne_zknh_zksed_zksh_zbkb -mabi=lp64d sm3.i -S ICE: during GIMPLE pass: slp sm3/zscrypto_rv64/sm3.c: In function 'sm3_compress': sm3/zscrypto_rv64/sm3.c:56:6: internal compiler error: in vectorizable_live_operation, at tree-vect-loop.cc:10798 56 | void sm3_compress(uint32_t s[24]) { | ^~~~~~~~~~~~ 0x143f0b2 vectorizable_live_operation(vec_info*, _stmt_vec_info*, _slp_tree*, _slp_instance*, int, bool, vec<stmt_info_for_cost, va_heap, vl_ptr>*) ../../../../gcc/gcc/tree-vect-loop.cc:10795 0x23f1c23 can_vectorize_live_stmts ../../../../gcc/gcc/tree-vect-stmts.cc:12728 0x2424909 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*) ../../../../gcc/gcc/tree-vect-stmts.cc:13129 0x1464c02 vect_schedule_slp_node ../../../../gcc/gcc/tree-vect-slp.cc:9216 0x147c886 vect_schedule_scc ../../../../gcc/gcc/tree-vect-slp.cc:9451 0x147cdb6 vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr> const&) ../../../../gcc/gcc/tree-vect-slp.cc:9596 0x147f3ee vect_slp_region ../../../../gcc/gcc/tree-vect-slp.cc:7751 0x1480c2d vect_slp_bbs ../../../../gcc/gcc/tree-vect-slp.cc:7851 0x148137b vect_slp_function(function*) ../../../../gcc/gcc/tree-vect-slp.cc:7973 0x148d646 execute ../../../../gcc/gcc/tree-vectorizer.cc:1531 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.