https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102226
Bug ID: 102226 Summary: ICE with -O3 -msve-vector-bits=128 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: gilles.gouaillardet at gmail dot com Target Milestone: --- Created attachment 51419 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51419&action=edit A quite simple reproducer The attached reproducer crashes the latest LATEST-12 compilers when invoked with $ g++ -march=armv8.2-a+sve -c -msve-vector-bits=128 -O3 test.cpp test.cpp: In function 'int findPropertyIndex(std::vector<std::__cxx11::basic_string<char> >, const std::string&)': test.cpp:36:5: error: incompatible types in 'PHI' argument 1 36 | int findPropertyIndex(std::vector<std::string> ap, | ^~~~~~~~~~~~~~~~~ vector(2) long unsigned int vector(2) long unsigned int _142 = PHI <vect__72.97_141(43), vect__32.85_117(37)> during GIMPLE pass: vect test.cpp:36:5: internal compiler error: verify_gimple failed 0x10b48a3 verify_gimple_in_cfg(function*, bool) ../.././gcc/tree-cfg.c:5531 0xf71baf execute_function_todo ../.././gcc/passes.c:2042 0xf72643 execute_todo ../.././gcc/passes.c:2096 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. The compiler does not crash when invoked with the following options (on top of -march=armv8.2-a+sve : -O2 -msve-vector-bits=128 -O3 -msve-vector-bits=256 -O3 -msve-vector-bits=512 -O3 FWIW, snapshot gcc-12-20210711 did not crash, and crash started from gcc-12-20210718, and the 10 and 11 branches are unaffected by this issue.