From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtoPf-0001re-EI for qemu-devel@nongnu.org; Fri, 02 Oct 2009 16:07:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtoPa-0001pL-Qm for qemu-devel@nongnu.org; Fri, 02 Oct 2009 16:07:35 -0400 Received: from [199.232.76.173] (port=44589 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtoPa-0001p9-Mu for qemu-devel@nongnu.org; Fri, 02 Oct 2009 16:07:30 -0400 Received: from mx20.gnu.org ([199.232.41.8]:24631) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtoPa-0007XX-9t for qemu-devel@nongnu.org; Fri, 02 Oct 2009 16:07:30 -0400 Received: from [65.74.133.4] (helo=mail.codesourcery.com) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtoPU-0007QV-37 for qemu-devel@nongnu.org; Fri, 02 Oct 2009 16:07:26 -0400 Date: Fri, 2 Oct 2009 13:07:12 -0700 From: Nathan Froyd Subject: Re: [Qemu-devel] [PATCH 1/3] tcg: add ext{8,16,32}u_i{32,64} TCG ops Message-ID: <20091002200712.GC9327@codesourcery.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: qemu-devel@nongnu.org On Wed, Sep 30, 2009 at 11:09:35PM +0200, Aurelien Jarno wrote: > Currently zero extensions ops are implemented by a and op with a > constant. This is then catched in some backend, and replaced by > a zero extension instruction. While this works well on RISC > machines, this adds a useless register move on non-RISC machines. > > This patch adds ext{8,16,32}u_i{32,64} TCG ops that can be > implemented in the backends to avoid emitting useless register > moves. I have to ask--does this make things go faster? -Nathan