From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 610C93858C2D; Sat, 13 May 2023 06:53:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 610C93858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683960824; bh=uJgZ4dmdA7/AkWAvkqXPzxDeYG/z7xlvtCCEASPeS2I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aiMIrbzArxlAawWtNrgs37XI2XZnKP2w4QSW8vDnsPXDnbqH5yvYH9wM2sD/WZIG0 ci5KLc4Y9+EpBsQxpc1Wj0a0iAN8Qel5s2X48cnKUZlMooEXk1MXGVh70oTNyOQ6b/ +F5U3Io9/cLK5FSV8hf2LALREqH3y3H0FLbmrN/8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109840] [14 Regression] internal compiler error: in expand_fn_using_insn, at internal-fn.cc:153 when building graphite2 Date: Sat, 13 May 2023 06:53:44 +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: cf_reconfirmed_on target_milestone short_desc bug_status everconfirmed 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=3D109840 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-05-13 Target Milestone|--- |14.0 Summary|internal compiler error: in |[14 Regression] internal |expand_fn_using_insn, at |compiler error: in |internal-fn.cc:153 when |expand_fn_using_insn, at |building graphite2 |internal-fn.cc:153 when | |building graphite2 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |pinskia at gcc dot gnu.org, | |roger at nextmovesoftware = dot com --- Comment #2 from Andrew Pinski --- (gdb) p debug_gimple_stmt(stmt) _5 =3D .POPCOUNT (load_dst_15); short unsigned int load_dst_15; [local count: 1073741824]: load_dst_15 =3D MEM [(unsigned char *)&Loaderthrow_p= ]; _5 =3D .POPCOUNT (load_dst_15); In forwprop4: gimple_simplified to _5 =3D .POPCOUNT (load_dst_15); Before: load_dst_15 =3D MEM [(unsigned char *)&Loaderthrow_p= ]; bswapdst_16 =3D load_dst_15 r>> 8; r_14 =3D (unsigned int) bswapdst_16; _5 =3D .POPCOUNT (r_14); aarch64 has a popcountsi2 pattern but does not have a popcounthi2 pattern. Using the internal function here is definitely an issue without checking wh= ich patterns the backend has. Confirmed.=