From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4BFA4383F85E; Tue, 16 Jun 2020 07:21:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4BFA4383F85E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592292064; bh=u/m0XK//RbHcXD4w6fbCPYvOpzoFrbcnOU0fiKNUVcM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=b4Euh6HIo8CU2arucwc7mRPRTWMv+P9CfAzm5MInIoxcxbLlrJCXislTnVQqEnnt9 0YEA0Ge1po8FWj8KgXngdZK3qKQOGd3ilcZ60/XD+WyBcyub4lmTPupQyvLhuaZV9p g3rDvPAHbgG00Yo2/m0Ll9y55eS+L9MhFUHOG32Y= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/95632] Redundant zero extension Date: Tue, 16 Jun 2020 07:21:04 +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: 10.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2020 07:21:04 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95632 --- Comment #6 from Uro=C5=A1 Bizjak --- (In reply to Uro=C5=A1 Bizjak from comment #5) > (In reply to Mel Chen from comment #2) > > Is it possible to pretend that we have a pattern that can match xor (re= g:SI > > 80), (reg: SI 72), 0xa001 in combine pass? > > And then, if the constant part is too large to put in to the immediate = part, > > it can be split to 2 xor in split pass. >=20 > Please note that the combine pass has its own (rather limited) splitter, = it > is documented in the second part of "Defining How to Split Instructions" > paragraph. The example is dealing with the instruction that has too large > immediate part, and looks similar to your problem. Oh, I missed the discussion above. In this case, x86 implements pre-reload splits, please see patterns decorated with ix86_pre_reload_split condition.=