From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTuYT-0001qZ-FH for qemu-devel@nongnu.org; Thu, 23 Jul 2009 05:25:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTuYS-0001pT-RL for qemu-devel@nongnu.org; Thu, 23 Jul 2009 05:25:36 -0400 Received: from [199.232.76.173] (port=50539 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTuYS-0001pI-GF for qemu-devel@nongnu.org; Thu, 23 Jul 2009 05:25:36 -0400 Received: from fg-out-1718.google.com ([72.14.220.156]:45160) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTuYS-0005zp-87 for qemu-devel@nongnu.org; Thu, 23 Jul 2009 05:25:36 -0400 Received: by fg-out-1718.google.com with SMTP id l27so1651918fgb.8 for ; Thu, 23 Jul 2009 02:25:34 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <5b31733c0907230208o7374ad68uf6e4438a5c5a41d5@mail.gmail.com> References: <5b31733c0907230208o7374ad68uf6e4438a5c5a41d5@mail.gmail.com> Date: Thu, 23 Jul 2009 11:25:34 +0200 Message-ID: <761ea48b0907230225g77d7d0e6q6e1fd8af302ed795@mail.gmail.com> Subject: Re: [Qemu-devel] [PATCH] RFC: TCG constant propagation. From: Laurent Desnogues Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Filip Navara Cc: qemu-devel@nongnu.org, Paul Brook On Thu, Jul 23, 2009 at 11:08 AM, Filip Navara wrote: > Also it looks that the actual code size is worse for TCG ARM target > with this optimization. To mitigate it I propose the other attached > patch which uses the barrel shifter for more optimal generation of the > "movi" operation. I can't test it, so any help is welcome. This is wrong for two reasons: - this is a rotation, you only check for shifts - the rotation amount is multiplied by 2 before being applied to the 8-bit immediate field. Laurent