From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 984D1385843B; Mon, 29 Apr 2024 17:41:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 984D1385843B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714412463; bh=ctrmkFBlWFg+XoSe7jvq2l0bgop+UYRyKE534GWRYw8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=I1bCE11IJkpAsPBDAfsatmq6ZSYz/ETSzk6IYq2MVyFzknGlbnlP6VV9RPZ+v8R85 3o3Y90wrZNlQ63+ZDtgoSAtMSuYuQ//NYMysE9bAVcWbe/y5DO4MsbgGluCmmHaQJ5 iIZsXzAThLEAq9wJboYMq1SRzaIHqoz8TDhnl1Qs= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114883] [14/15 Regression] 521.wrf_r ICE with -O2 -march=sapphirerapids -fvect-cost-model=cheap Date: Mon, 29 Apr 2024 17:41:03 +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: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org 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: 14.0 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114883 --- Comment #7 from Jakub Jelinek --- Slightly more reduced testcase: subroutine pr114883(a, b, c, d, e, f, g, h, o) real(8) :: c(1011), d(1011), e(0:1011) real(8) :: p, q, f, r, g(1011), h(1011), b, bar integer :: o(100), a, t, u p =3D 0.0_8 r =3D bar() u =3D 1 do i =3D 1,a do k =3D 1,1011 km1 =3D max0(k-1,1) h(k) =3D c(k) * e(k-1) * d(km1) f =3D g(k) + h(k) if(f.gt.1.e-6)then p =3D min(p,r) endif end do q =3D 0.9_8 * p t =3D integer(b/q + 1) if(t>100)then u =3D t endif o(u) =3D o(u) + 1 end do end subroutine pr114883=