From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A0BC6386100F; Tue, 4 Aug 2020 11:37:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0BC6386100F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596541036; bh=HD85IuvAwWeHomGYzlEEuutTm1MI8sbbVIdph1u+WZE=; h=From:To:Subject:Date:From; b=imAZDbgmyRAv5S1HkBe7QmcnUwKkGE03Pns7QUd9VoM1U/RaVlf1ytvkf3e6SE8Da OioP+Z+bNU08nKsvVXQs6gbfO/qrRB3CDus311F33P6Cf+3ug5wxjv1/okH8RG9wJ0 5MR9K4MT+inlnOQJ7YNEC6FWHgRJJ+c936kehUug= From: "doko at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96456] New: [10 Regression] ICE in expand_insn, at optabs.c:7511 on s390x-linux-gnu Date: Tue, 04 Aug 2020 11:37:16 +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: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at debian dot 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter 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: Tue, 04 Aug 2020 11:37:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96456 Bug ID: 96456 Summary: [10 Regression] ICE in expand_insn, at optabs.c:7511 on s390x-linux-gnu Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- seen with the gcc-10 branch 20200725 on s390x-linux-gnu. worked around by dropping to -O2, or either removing the -ffast-math or -fno-finite-math-only flags. Didn't check yet trunk. $ cat aops.i int b, c, d; double *e; int f() { double *a =3D a; int g =3D d, f =3D c, h =3D b; if (__builtin_expect(f, 0)) for (; g < h; g++) e[g] =3D (int)(a[g] >=3D 0.0 ? g + 0.99999999 : a[g]); return 0; } $ s390x-linux-gnu-gcc -c -O3 -std=3Dgnu99 -ffast-math -fno-finite-math-only -fstack-protector-strong -Wall -fstack-clash-protection aops.i=20 during RTL pass: expand aops.i: In function =E2=80=98f=E2=80=99: aops.i:8:12: internal compiler error: in expand_insn, at optabs.c:7511 8 | e[g] =3D (int)(a[g] >=3D 0.0 ? g + 0.99999999 : a[g]); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please submit a full bug report, with preprocessed source if appropriate.=