From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43534 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMpvM-0005dJ-22 for qemu-devel@nongnu.org; Thu, 10 Jun 2010 18:08:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMpvL-0000ii-0D for qemu-devel@nongnu.org; Thu, 10 Jun 2010 18:08:31 -0400 Received: from mail-vw0-f45.google.com ([209.85.212.45]:40711) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMpvK-0000id-Tt for qemu-devel@nongnu.org; Thu, 10 Jun 2010 18:08:30 -0400 Received: by vws12 with SMTP id 12so410129vws.4 for ; Thu, 10 Jun 2010 15:08:30 -0700 (PDT) Sender: Richard Henderson Message-ID: <4C116247.7050405@twiddle.net> Date: Thu, 10 Jun 2010 15:08:07 -0700 From: Richard Henderson MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 07/35] tcg: Optionally sign-extend 32-bit arguments for 64-bit host. References: <1275678883-7082-1-git-send-email-rth@twiddle.net> <1275678883-7082-8-git-send-email-rth@twiddle.net> <20100610102250.GG26968@volta.aurel32.net> In-Reply-To: <20100610102250.GG26968@volta.aurel32.net> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: qemu-devel@nongnu.org, agraf@suse.de On 06/10/2010 03:22 AM, Aurelien Jarno wrote: > Wouldn't it be better to actually pass the whole flag to > tcg_gen_helper32(), so that we can in the future also support mixed > signedness in arguments? Also doing it here looks like a bit like a > magic constant. I suppose that's possible. > This part allocates a lot of temp variables, that will probably generate > a lot of register spills during the code generation. > > As we do that for all arguments anyway, wouldn't it be possible to do > the extension in place? The value in the register is changed, but that > should not have any effect as it is ignored anyway in other > instructions. That hadn't occurred to me. I'll give it a try. r~