From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C37A7385B187; Mon, 28 Nov 2022 20:03:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C37A7385B187 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669665810; bh=9vA3E6VcawZA4nEzHOwTo6aZe0a4fuWy3UlLjDNWQyE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HTStiUDV4jKh64L9doiMmCKhmexKaaOV8nXB/gMeOyhhpSVbRE+U3sFSRLCDybRbc ZH/75E5F4N/aZ9Xma6bgZMUXjiVgdp5voi0MzLQfRnb+flD2oXSxFOzFHW03L4LNli MEhxhXeIlUu0sn9oTPUVvZ/H+Zz98yQd2ve7D+v0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/105137] Missed optimization 64-bit adds and shifts Date: Mon, 28 Nov 2022 20:03:30 +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: 12.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget everconfirmed bug_status bug_severity cf_reconfirmed_on 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=3D105137 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-linux-gnu Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Severity|normal |enhancement Last reconfirmed| |2022-11-28 --- Comment #1 from Andrew Pinski --- Confirmed. Interesting aarch64 is able to optimize it all the way to be the same code for both of them (well the only difference is the first add has t= he operands swapped but still is the same really).=