From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 31A843858CDA; Fri, 6 Oct 2023 05:04:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31A843858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696568669; bh=eru2lVIkz9OfR7iaO/mYCiVv8tPUPc6oufKCJT3SUlY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dJ5XTeKkyAINeqp2tmBkHpEI+0etniur9gYoqe8UaOuaCtqP1uTGP0boAbVrU/RVd RWmVTqkQyfPd0f0sL18rpdJS8Bh4qnBajPfVVeKB0hJEOHknDy4E52CWTTDh2ZyvVP M/lXfLc0QLsUIslnJk3ih91MsH0+xWHNMruVRBLQ= From: "pinskia at gcc dot gnu.org" 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 05:04:29 +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: pinskia 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: --- 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=3D111260 --- Comment #3 from Andrew Pinski --- (In reply to Zdenek Sojka from comment #2) > Different testcase: > $ cat testcase.c > long > bar (long x) > { > x *=3D x =3D=3D 0 / 0; > return (x); > } >=20 > long > foo (void) > { > return bar (822920); > } >=20 > $ 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 > ... That is 100% a different bug and should be filed separately.=