From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D0CD73857C66; Fri, 6 Oct 2023 08:53:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D0CD73857C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696582387; bh=CjkOYUzULp9jr7St9t32LmIiFDW/95FaDyb3tvUSkIA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IPNg9uH10NTESeWI3dXIOisd3sJFzMt7I5g58Xq8O8P6ik0xfMQrQALh7hfIVeT+l Af/tisF+bjA0Hc789DO01cvxxMrT4iiiCgIx3lyPoJM3N+GYRXpJF7hRefbyOCoKI0 ehqSKY5zikanMqaGif/PS1TDZwPaMDiyXijNd3Zw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/111260] [14 Regression] arm: ice in maybe_legitimize_operand, at optabs.cc:8054 Date: Fri, 06 Oct 2023 08:53:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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=3D111260 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #7) > Better reduced testcase: > ``` > long f(int a) > { > int b =3D 822920; > int t =3D a =3D=3D b; > return t * (long)b; > } > ``` Here is one that ICEs on both arm and aarch64: ``` int f1(long long a) { int b =3D 822920; int t =3D a =3D=3D b; return t * (int)b; } ```=