From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMUiT-0007hv-JP for qemu-devel@nongnu.org; Sun, 20 Dec 2009 17:57:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMUiP-0007h9-2L for qemu-devel@nongnu.org; Sun, 20 Dec 2009 17:57:33 -0500 Received: from [199.232.76.173] (port=59492 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMUiO-0007h4-VY for qemu-devel@nongnu.org; Sun, 20 Dec 2009 17:57:28 -0500 Received: from mx20.gnu.org ([199.232.41.8]:60527) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NMUiO-00046b-Nr for qemu-devel@nongnu.org; Sun, 20 Dec 2009 17:57:28 -0500 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NMUiM-0007Ny-Cy for qemu-devel@nongnu.org; Sun, 20 Dec 2009 17:57:26 -0500 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH 0/5] tcg conditional set, round 4 Date: Sun, 20 Dec 2009 22:57:22 +0000 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <200912202257.22503.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net, Richard Henderson On Saturday 19 December 2009, Richard Henderson wrote: > Changes from round 3: > > * Drop movcond for now. > * Only use movzbl and not xor in setcond. I'm still catching up on mail backlog from this thread, but I'm concerned that we're exposing setcond to the target translation code if we're planning on implementing movcond later. My guess is that in a lot of cases we want a value other than 1, and I'd prefer to avoid proliferation of set+shift/mask sequences if we're going to get movcond anyway. I don't suppose you've tried something along the lines of #define tcg_gen_movcond_i32(cond...) gen_helper_mov##cond(...) And see how that compares in practice? Paul