From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 525A93854804; Wed, 9 Jun 2021 03:26:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 525A93854804 From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100981] New: ICE in info_for_reduction, at tree-vect-loop.c:4897 Date: Wed, 09 Jun 2021 03:26:15 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx 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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget 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, 09 Jun 2021 03:26:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100981 Bug ID: 100981 Summary: ICE in info_for_reduction, at tree-vect-loop.c:4897 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: aarch64-linux-gnu gfortran-12.0.0-alpha20210606 snapshot (g:fed94fc9e704b0de228499495b7ca4d4c79ef76b) ICEs when compiling the follow= ing testcase w/ -march=3Darmv8.3-a -O3 -ftree-parallelize-loops=3D2 -fno-signed= -zeros -fno-trapping-math: complex function cdcdot(n, cx) implicit none integer :: n, i, kx complex :: cx(*) double precision :: dsdotr, dsdoti, dt1, dt3 kx =3D 1 do i =3D 1, n dt1 =3D real(cx(kx)) dt3 =3D aimag(cx(kx)) dsdotr =3D dsdotr + dt1 * 2 - dt3 * 2 dsdoti =3D dsdoti + dt1 * 2 + dt3 * 2 kx =3D kx + 1 end do cdcdot =3D cmplx(real(dsdotr), real(dsdoti)) return end function cdcdot % aarch64-linux-gnu-gfortran-12.0.0 -march=3Darmv8.3-a -O3 -ftree-parallelize-loops=3D2 -fno-signed-zeros -fno-trapping-math -c xrvsc8= ow.f90 during GIMPLE pass: vect xrvsc8ow.f90:9:8: 9 | do i =3D 1, n | ^ internal compiler error: in info_for_reduction, at tree-vect-loop.c:4897 0x7c8b0d info_for_reduction(vec_info*, _stmt_vec_info*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210606/work/gcc-= 12-20210606/gcc/tree-vect-loop.c:4897 0x122d008 vectorizable_live_operation(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*, int, bool, vec*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210606/work/gcc-= 12-20210606/gcc/tree-vect-loop.c:8547 0x11ed1d7 can_vectorize_live_stmts =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210606/work/gcc-= 12-20210606/gcc/tree-vect-stmts.c:10619 0x1216858 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210606/work/gcc-= 12-20210606/gcc/tree-vect-stmts.c:11003 0x124b296 vect_schedule_slp_node =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210606/work/gcc-= 12-20210606/gcc/tree-vect-slp.c:6302 0x12596cc vect_schedule_scc =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210606/work/gcc-= 12-20210606/gcc/tree-vect-slp.c:6516 0x125a71f vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr>) =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210606/work/gcc-= 12-20210606/gcc/tree-vect-slp.c:6580 0x1236e7c vect_transform_loop(_loop_vec_info*, gimple*) =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210606/work/gcc-= 12-20210606/gcc/tree-vect-loop.c:9538 0x1265f0f try_vectorize_loop_1 =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210606/work/gcc-= 12-20210606/gcc/tree-vectorizer.c:1104 0x1266ca0 vectorize_loops() =20=20=20=20=20=20=20 /var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.0_alpha20210606/work/gcc-= 12-20210606/gcc/tree-vectorizer.c:1243=