From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4148E398B144; Wed, 9 Jun 2021 07:55:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4148E398B144 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/100981] ICE in info_for_reduction, at tree-vect-loop.c:4897 Date: Wed, 09 Jun 2021 07:55:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 07:55:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100981 --- Comment #4 from Richard Biener --- Runtime testcase (not sure if sufficient ...). Andre - can you verify it passes runtime testing with the patch on HW that supports the complex mul? 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 program test implicit none complex :: cx(100), ct, cdcdot integer :: i do i =3D 1, 100 cx(i) =3D cmplx(2*i, i) end do ct =3D cdcdot (100, cx) if (ct.ne.cmplx(10100.0000,30300.0000)) call abort end=