https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100284
--- Comment #7 from Gilles Gouaillardet <gilles.gouaillardet at gmail dot com> --- Created attachment 50695 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50695&action=edit preprocessed reproducer $ ~/local/gcc-11.1.0/bin/gcc -march=armv8.2-a+sve -O3 -c bug.i The bug has been fixed in master, thanks for the quick action! I have attached the preprocessed bug.i, and here is the stack trace on the just released gcc 11.1.0 during GIMPLE pass: vrp bug.c: In function 'Ptngc_pack_array_xtc3': bug.c:107:16: internal compiler error: in operation_could_trap_p, at tree-eh.c:2546 107 | unsigned char *Ptngc_pack_array_xtc3(int *input, int *length, const int natoms, int speed) | ^~~~~~~~~~~~~~~~~~~~~ 0xda9a07 operation_could_trap_p(tree_code, bool, bool, tree_node*) ../../../src/gcc/gcc/tree-eh.c:2546 0x11c0497 maybe_resimplify_conditional_op ../../../src/gcc/gcc/gimple-match-head.c:156 0x11c0153 gimple_resimplify3 ../../../src/gcc/gcc/gimple-match-head.c:404 0x11c1317 gimple_match_op::resimplify(gimple**, tree_node* (*)(tree_node*)) ../../../src/gcc/gcc/gimple-match-head.c:493 0x11c1317 gimple_simplify_383 /home/users/u0001043/build/gcc-11.1.0/gcc/gimple-match.c:21030 0x11c399b gimple_simplify_PLUS_EXPR /home/users/u0001043/build/gcc-11.1.0/gcc/gimple-match.c:58341 0x11d2a27 gimple_resimplify2 ../../../src/gcc/gcc/gimple-match-head.c:318 0x121847b try_conditional_simplification ../../../src/gcc/gcc/gimple-match-head.c:872 0x121847b gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_node* (*)(tree_node*), tree_node* (*)(tree_node*)) ../../../src/gcc/gcc/gimple-match-head.c:1046 0xa320ab fold_stmt_1 ../../../src/gcc/gcc/gimple-fold.c:6001 0xf0e80b substitute_and_fold_dom_walker::before_dom_children(basic_block_def*) ../../../src/gcc/gcc/tree-ssa-propagate.c:1155 0x17fd477 dom_walker::walk(basic_block_def*) ../../../src/gcc/gcc/domwalk.c:309 0xf0d7a3 substitute_and_fold_engine::substitute_and_fold(basic_block_def*) ../../../src/gcc/gcc/tree-ssa-propagate.c:1283 0x103edb7 execute_vrp ../../../src/gcc/gcc/tree-vrp.c:4531 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.