https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107326
Bug ID: 107326 Summary: [13 Regression] ICE: verify_gimple failed (error: type mismatch in binary expression) Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: aarch64-linux-gnu gcc 13.0.0 20221016 snapshot (g:6366e3e8847af98d4728d55951534769d034d02a) ICEs when compiling the following testcase w/ -O2 -fallow-store-data-races -fvect-cost-model=dynamic: struct Gsymtab { unsigned int : 8; unsigned int visited_somewhere : 1; }; extern struct Gsymtab glob_symtab[]; int visit_children (int i) { int numvisited = 0; while (i < 1) { if (glob_symtab[i].visited_somewhere) ++numvisited; ++i; } return numvisited; } % aarch64-linux-gnu-gcc-13 -O2 -fallow-store-data-races -fvect-cost-model=dynamic -c cjjq0il5.ccjjq0il5.c: In function 'visit_children': cjjq0il5.c:9:1: error: type mismatch in binary expression 9 | visit_children (int i) | ^~~~~~~~~~~~~~ vector(4) short unsigned int vector(4) int vector(4) int vect_patt_8.16_64 = vect_patt_3.15_62 & { 256, 256, 256, 256 }; cjjq0il5.c:9:1: error: type mismatch in binary expression vector(4) int vector(4) int vector(4) short unsigned int vect__23.18_66 = vect_numvisited_12.10_51 + vect_patt_24.17_65; during GIMPLE pass: vect cjjq0il5.c:9:1: internal compiler error: verify_gimple failed 0xf81d0d verify_gimple_in_cfg(function*, bool) /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20221016/work/gcc-13-20221016/gcc/tree-cfg.cc:5649 0xe3def7 execute_function_todo /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20221016/work/gcc-13-20221016/gcc/passes.cc:2091 0xe3e42e execute_todo /var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20221016/work/gcc-13-20221016/gcc/passes.cc:2145