From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 69C073858CDA; Fri, 6 Oct 2023 04:52:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 69C073858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696567940; bh=FpBvHbPS8qtL64lS0HDkqeTANg6Jp4lFzRKcTeWBwyA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cKeIeB27gsRcFV1UkR20p9kzeZXT8SmQvflnwi4ktmltwy+bWnwMj9GiEtE89+Swp 6zkd+rF9AWtAX/91mDFb1xaSF6FzqDpU6wdQHax9GtAxDMjMlbXCN5SaK70o34k0Ot HO0LFNukTR47zcD5HKmdTDHNCFrIEZAlmVHN6ALc= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111260] arm: ice in maybe_legitimize_operand, at optabs.cc:8054 Date: Fri, 06 Oct 2023 04:52:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz 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: cc 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=3D111260 Zdenek Sojka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zsojka at seznam dot cz --- Comment #2 from Zdenek Sojka --- Different testcase: $ cat testcase.c long bar (long x) { x *=3D x =3D=3D 0 / 0; return (x); } long foo (void) { return bar (822920); } $ aarch64-unknown-linux-gnu-gcc -O testcase.c=20 testcase.c: In function 'bar': testcase.c:4:15: warning: division by zero [-Wdiv-by-zero] 4 | x *=3D x =3D=3D 0 / 0; | ^ during RTL pass: expand testcase.c: In function 'foo': testcase.c:11:10: internal compiler error: in maybe_legitimize_operand, at optabs.cc:8046 11 | return bar (822920); | ^~~~~~~~~~~~ 0x7ff794 maybe_legitimize_operand /repo/gcc-trunk/gcc/optabs.cc:8046 0x7ff794 maybe_legitimize_operands(insn_code, unsigned int, unsigned int, expand_operand*) /repo/gcc-trunk/gcc/optabs.cc:8194 ...=