Received: from eggs.gnu.org ([208.118.235.92]:54102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB4VM-0004MQ-9k for qemu-devel@nongnu.org; Mon, 10 Sep 2012 09:58:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB4Uc-0001X1-Oo for qemu-devel@nongnu.org; Mon, 10 Sep 2012 09:58:24 -0400 Received: from hall.aurel32.net ([88.191.126.93]:55512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB4Uc-0001Wa-J0 for qemu-devel@nongnu.org; Mon, 10 Sep 2012 09:57:38 -0400 Date: Mon, 10 Sep 2012 15:57:36 +0200 From: Aurelien Jarno Message-ID: <20120910135736.GS17750@hall.aurel32.net> References: <1347278184-18693-1-git-send-email-aurelien@aurel32.net> <1347284409.8336.3.camel@pebble.twiddle.home> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1347284409.8336.3.camel@pebble.twiddle.home> Sender: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] tcg/i386: allow constants in load/store ops List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org On Mon, Sep 10, 2012 at 06:40:09AM -0700, Richard Henderson wrote: > On Mon, 2012-09-10 at 13:56 +0200, Aurelien Jarno wrote: > > On x86, it is possible to move a constant value to memory. Add code to > > handle a constant argument to load/store ops. > > > > Signed-off-by: Aurelien Jarno > > While useful, you'll find that most constants that want storing to > memory are not generated with store opcodes, but directly via > tcg_out_st. As happens for all register spilling, and helper calls. It actually depends on the target. Some of them are not using that at all, some of them are using that a lot. Ideally we would need to also do that directly from TCG when storing back registers to their canonical location, but we have to find a nice clean to do it. > Reviewed-by: Richard Henderson > > > r~ > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net