From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6B20E3858CDA; Mon, 26 Sep 2022 06:19:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B20E3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664173154; bh=ly2IFlNTkzwtJkNaj3TIXUaWtKa0p0rQUQXWCxAiu70=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XGHFsxIl4wVZppKNsB4jLhJKKElOiUOWD+53Kz+lGNp0TwK41eg6nvU/PggnOO8mU HtAYjjPxQKJKCb4EOY+v5RDbi9zBDKuSZBAMNJl+JanZu6dA94OEEncHxy5D3avTTS f9SStvX2Ee5l7mKxGykEgxqqIyeJRhO2I1+QfP8o= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/78085] extra sign extend if used to store in 32bit and return 64bit and the upper bits are known to be zeroed. Date: Mon, 26 Sep 2022 06:19:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 6.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: crazylht at gmail dot com 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: --- 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=3D78085 --- Comment #2 from Hongtao.liu --- It looks like this issue has been fixed in GCC13 trunk,cltq is gone for the first and the last function, but i don't know which exact commit fixed it.=