From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 491553858D37; Thu, 29 Jun 2023 15:21:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 491553858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688052102; bh=Jlq78zld31NGN8BmNTPSnWSGwqvpzNO9kECR8pH3bwk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yhJJdV09wGRzUdxPQMjfqSsa9ii5GqHZib7E9kBuaWlQTNr3eSCq2s8PSyu8CpCaP CXOrOSE11Vpgu3g/t/bttoqU2hiYzXIMNQSbTd542h8OXnk+6Nqyhiwxq3HCTaSl34 6Lt3tXRuvAQo4v1ZrUL+IcXnDigVRm81BIkjOWQA= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/110479] Unnecessary register move Date: Thu, 29 Jun 2023 15:21:42 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: bug_status resolution 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=3D110479 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Thomas Koenig --- (In reply to Uro=C5=A1 Bizjak from comment #1) > (In reply to Thomas Koenig from comment #0) >=20 > > movl %edi, %ecx >=20 > This one? It is needed because SAL wants its count argument in %cl and fi= rst > argument is passed in %edi (mandated by x86_64 ABI). >=20 > With -mbmi2, one gets: >=20 > shrl $10, %edi > movl $1, %eax > andl $3, %edi > addl $3, %edi > shlx %edi, %eax, %eax > ret Hm, you're right. The intricacies of x86... Closing.=