From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 88D193857C7D; Wed, 19 Jan 2022 08:21:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88D193857C7D From: "gilles.gouaillardet at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/104112] New: ICE with -Ofast -march=armv8.2-a+sve -msve-vector-bits=512 Date: Wed, 19 Jan 2022 08:21:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gilles.gouaillardet at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2022 08:21:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104112 Bug ID: 104112 Summary: ICE with -Ofast -march=3Darmv8.2-a+sve -msve-vector-bits=3D512 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 52226 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52226&action=3Dedit a simple reproducer The attached reproducer (trimmed from BLAS) can be used to evidence a crash= of the compiler: $ g++ -march=3Darmv8.2-a+sve -msve-vector-bits=3D512 -Ofast -c boom.cpp=20 during GIMPLE pass: vect boom.cpp: In function ?void boom(int, double*, double*)?: boom.cpp:4:1: internal compiler error: Segmentation fault 4 | boom(int n, | ^~~~ 0x10436f3 crash_signal ../.././gcc/toplev.c:328 0x12f86ec tree_class_check(tree_node*, tree_code_class, char const*, int, c= har const*) ../.././gcc/tree.h:3495 0x12f86ec vect_create_partial_epilog ../.././gcc/tree-vect-loop.c:4953 0x13050ff vect_transform_cycle_phi(_loop_vec_info*, _stmt_vec_info*, gimple= **, _slp_tree*, _slp_instance*) ../.././gcc/tree-vect-loop.c:7728 0x12f562b vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*) ../.././gcc/tree-vect-stmts.c:10999 0x1311e9b vect_transform_loop(_loop_vec_info*, gimple*) ../.././gcc/tree-vect-loop.c:9686 0x13416db try_vectorize_loop_1 ../.././gcc/tree-vectorizer.c:1103 0x13418b7 try_vectorize_loop_1 ../.././gcc/tree-vectorizer.c:1141 0x1342317 vectorize_loops() ../.././gcc/tree-vectorizer.c:1242 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. FWIW, g++ works just fine with the slightly rewritten (e.g. do not use a lo= cal variable) noboom.cpp Based on my snapshots, the issue occurred first between 20210711 and 202107= 18 (I am now running a git bisect to point to a suspect commit)=