https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110537
Bug ID: 110537 Summary: ICE for OpenMP loop with SVE (aarch64) intrinsics Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: pgodbole at nvidia dot com Target Milestone: --- Created attachment 55465 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55465&action=edit OpenMP code with SVE intrinsics We are observing a crash with GCC 14 when compiling an OpenMP loop that uses SVE intrinsics (see attached source code). Command: gcc -mcpu=neoverse-v2 -fopenmp crash_sve_bug.c -w Results in: crash_sve_bug.c: In function _HPL_dlaswp06T_: crash_sve_bug.c:82:33: internal compiler error: Segmentation fault 82 | svfloat64_t __a0_sve = svld1_f64(pg, a0 + 0 * LDA); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0xef64df crash_signal /home/latest_trunk/git/gcc/gcc/toplev.cc:314 0xb7570c omp_add_variable /home/latest_trunk/git/gcc/gcc/gimplify.cc:7411 0xb7570c omp_add_variable /home/latest_trunk/git/gcc/gcc/gimplify.cc:7352 0xb765db omp_notice_variable /home/latest_trunk/git/gcc/gcc/gimplify.cc:8026 0xb761ff omp_notice_variable /home/latest_trunk/git/gcc/gcc/gimplify.cc:8095 0xb7a577 gimplify_var_or_parm_decl /home/latest_trunk/git/gcc/gcc/gimplify.cc:3063 0xb826eb gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/latest_trunk/git/gcc/gcc/gimplify.cc:16902 0xb89fbb gimplify_expr /home/latest_trunk/git/gcc/gcc/gimplify.cc:17505 0xb89fbb gimplify_arg(tree_node**, gimple**, unsigned int, bool) /home/latest_trunk/git/gcc/gcc/gimplify.cc:3523 0xb8f4e7 gimplify_call_expr /home/latest_trunk/git/gcc/gcc/gimplify.cc:3808 0xb82c57 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/latest_trunk/git/gcc/gcc/gimplify.cc:16413 0xb93333 gimplify_modify_expr /home/latest_trunk/git/gcc/gcc/gimplify.cc:6173 0xb82983 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/latest_trunk/git/gcc/gcc/gimplify.cc:16441 0xb86c4b gimplify_stmt(tree_node**, gimple**) /home/latest_trunk/git/gcc/gcc/gimplify.cc:7246 0xb8b3e3 gimplify_and_add(tree_node*, gimple**) /home/latest_trunk/git/gcc/gcc/gimplify.cc:492 0xb8b3e3 gimplify_decl_expr /home/latest_trunk/git/gcc/gcc/gimplify.cc:1936 0xb82fc3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/latest_trunk/git/gcc/gcc/gimplify.cc:16638 0xb86c4b gimplify_stmt(tree_node**, gimple**) /home/latest_trunk/git/gcc/gcc/gimplify.cc:7246 0xb83a3f gimplify_statement_list /home/latest_trunk/git/gcc/gcc/gimplify.cc:2019 0xb83a3f gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/latest_trunk/git/gcc/gcc/gimplify.cc:16886 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. The same ICE is observed on GCC 12.3 and 13.1. It compiles successfully without -fopenmp Thanks, Prachi