From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 420503858C5F; Sat, 8 Jul 2023 21:12:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 420503858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688850757; bh=NyyCYTQEC3VJ9Ng9PXZM+iW8+ScnwCRWb1b0WEXsNvg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RfKkR3i9V5h2RQkD4fONrahBmtWZvelqRQEhuwPyZFymXFOs4pgnY9PR/JVPNp+yN +kyVYGwsA3SwLYoovqlGyaiDXK5KjE5Jhi3l8lIGRB+yPsWRBDqHpzXlOs6FCLbdaq UexjzIo8vhjKasyIKRS/4jt8Cc9JBtM+79LIJ4xU= From: "roger at nextmovesoftware dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110588] btl (on x86_64) not always generated Date: Sat, 08 Jul 2023 21:12:36 +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: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: roger at nextmovesoftware dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: roger at nextmovesoftware dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc bug_status everconfirmed assigned_to 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=3D110588 Roger Sayle changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roger at nextmovesoftware = dot com Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |roger at nextmoveso= ftware dot com Last reconfirmed| |2023-07-08 --- Comment #1 from Roger Sayle --- Thanks Andrew. I have a patch (a define_split in i386.md) that's currently bootstrapping and regression testing. But perhaps this should also be fixe= d at the tree-level by match.pd canonicalizing ((T)(x & C)) ^ C to (T)((~x) & C) when T is not wider than X and X is not wider than WORD_MODE. It's tricky = to compare the costs of integer operations in different precisions, but WORD_M= ODE (and int) operations are (typically) always cheap (and I believe unary operations are preferred over binary operations (with immediate constants))= .=