From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 69E0B385B834; Mon, 30 Mar 2020 09:22:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 69E0B385B834 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585560155; bh=iDf5cApgoLXdPB1AYrNgMkl8uqiYGOqz74tCf16dXM8=; h=From:To:Subject:Date:From; b=UDdH675n8Sm0llkoatN0s6FbQQ+gDi9f33ABdI9kUl/JN7YRqDkHBKomEZhLM75F7 UZrWEHvgkw6ygrOHBr6tWjyEuY3pqCZPUPIU707pYw7PGi9xytq5sHkiaOoJS2zW60 jO2m9wQbKi7yhKlMC7IqEbhWeCA25H9f1AhiOnWg= From: "z.zhanghaijian at huawei dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94398] New: ICE: in vectorizable_load, at tree-vect-stmts.c:9173 Date: Mon, 30 Mar 2020 09:22:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: z.zhanghaijian at huawei 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 cc target_milestone 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: Mon, 30 Mar 2020 09:22:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94398 Bug ID: 94398 Summary: ICE: in vectorizable_load, at tree-vect-stmts.c:9173 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: z.zhanghaijian at huawei dot com CC: rguenther at suse dot de Target Milestone: --- test case: gcc/testsuite/gcc.dg/pr94269.c Command line: aarch64-linux-gnu-gcc -S -O2 -fopt-info -march=3Darmv8.2-a+sve -msve-vector-bits=3D256 -ftree-loop-vectorize -funsafe-math-optimizations -mstrict-align pr94269.c pr94269.c:16:9: optimized: loop vectorized using 32 byte vectors during GIMPLE pass: vect pr94269.c: In function 'foo': pr94269.c:5:1: internal compiler error: in vectorizable_load, at tree-vect-stmts.c:9173 5 | foo(long n, float *x, int inc_x, | ^~~ 0x162fcc7 vectorizable_load ../../gcc-git/gcc/tree-vect-stmts.c:9173 0x1635173 vect_transform_stmt(_stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*) ../../gcc-git/gcc/tree-vect-stmts.c:11034 0x165a33f vect_transform_loop_stmt ../../gcc-git/gcc/tree-vect-loop.c:8307 0x165b5c3 vect_transform_loop(_loop_vec_info*, gimple*) ../../gcc-git/gcc/tree-vect-loop.c:8708 0x1689f07 try_vectorize_loop_1 ../../gcc-git/gcc/tree-vectorizer.c:990 0x168a183 try_vectorize_loop ../../gcc-git/gcc/tree-vectorizer.c:1047 0x168a32f vectorize_loops() ../../gcc-git/gcc/tree-vectorizer.c:1127 0x14e55e3 execute ../../gcc-git/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 for instructions. With -mstrict-align, aarch64_builtin_support_vector_misalignment will retur= ns false when misalignment factor is unknown at compile time. Then vect_supportable_dr_alignment returns dr_unaligned_unsupported, which triggers the ICE.=