https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83753
Bug ID: 83753 Summary: ICE: in exact_div, at poly-int.h:2139 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vp at gcc dot gnu.org Target Milestone: --- $ cat a.c typedef struct { int m1[10]; double m2[10][8]; } blah; void foo (blah *info) { int i, d; for (d=0; d<10; d++) { info->m1[d] = 0; info->m2[d][0] = 1; for (i=1; i<8; i++) info->m2[d][i] = 2; } } $ /path/to/aarch64-unknown-linux-gnu-gcc -O3 -c -mcpu=xgene1 a.c during GIMPLE pass: vect a.c: In function ‘foo’: a.c:7:1: internal compiler error: in exact_div, at poly-int.h:2139 foo (blah *info) { ^~~ 0xb17b4b poly_int<1u, poly_result<unsigned long, if_nonpoly<int, int, poly_int_traits<int>::is_poly>::type, poly_coeff_pair_traits<unsigned long, if_nonpoly<int, int, poly_int_traits<int>::is_poly>::type>::result_kind>::type> exact_div<1u, unsigned long, int>(poly_int_pod<1u, unsigned long> const&, int) ../../../gcc-fsf/gcc/poly-int.h:2139 0x1a1a5f7 vect_grouped_store_supported(tree_node*, unsigned long) ../../../gcc-fsf/gcc/tree-vect-data-refs.c:4676 0x13186c7 get_group_load_store_type ../../../gcc-fsf/gcc/tree-vect-stmts.c:1866 0x1318b3b get_load_store_type ../../../gcc-fsf/gcc/tree-vect-stmts.c:1999 0x1325e1b vectorizable_store ../../../gcc-fsf/gcc/tree-vect-stmts.c:5760 0x1330293 vect_analyze_stmt(gimple*, bool*, _slp_tree*, _slp_instance*) ../../../gcc-fsf/gcc/tree-vect-stmts.c:8686 0x133db0b vect_analyze_loop_operations ../../../gcc-fsf/gcc/tree-vect-loop.c:1771 0x133e6fb vect_analyze_loop_2 ../../../gcc-fsf/gcc/tree-vect-loop.c:2062 0x133f647 vect_analyze_loop(loop*, _loop_vec_info*) ../../../gcc-fsf/gcc/tree-vect-loop.c:2376 0x136d69f vectorize_loops() ../../../gcc-fsf/gcc/tree-vectorizer.c:664 0x121217f execute ../../../gcc-fsf/gcc/tree-ssa-loop.c:414 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. Seem to have caused by the commit r256216.