From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vozb3-0004F9-Qc for qemu-devel@nongnu.org; Fri, 06 Dec 2013 12:53:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vozax-0003SX-TA for qemu-devel@nongnu.org; Fri, 06 Dec 2013 12:53:49 -0500 Received: from mail-yh0-x231.google.com ([2607:f8b0:4002:c01::231]:57985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vozax-0003ST-OZ for qemu-devel@nongnu.org; Fri, 06 Dec 2013 12:53:43 -0500 Received: by mail-yh0-f49.google.com with SMTP id z20so707867yhz.22 for ; Fri, 06 Dec 2013 09:53:43 -0800 (PST) Sender: Richard Henderson Message-ID: <52A20F20.8030503@twiddle.net> Date: Sat, 07 Dec 2013 06:53:36 +1300 From: Richard Henderson MIME-Version: 1.0 References: <1378747670-25512-1-git-send-email-aurelien@aurel32.net> <1378747670-25512-5-git-send-email-aurelien@aurel32.net> In-Reply-To: <1378747670-25512-5-git-send-email-aurelien@aurel32.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 4/4] tcg/optimize: add known-zero bits compute for load ops List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno , qemu-devel@nongnu.org Cc: Paolo Bonzini On 09/10/2013 05:27 AM, Aurelien Jarno wrote: > + CASE_OP_32_64(ld8u): > + case INDEX_op_qemu_ld8u: > + mask = 0xff; > + break; > + CASE_OP_32_64(ld16u): > + case INDEX_op_qemu_ld16u: > + mask = 0xffff; > + break; > + case INDEX_op_ld32u_i64: > + case INDEX_op_qemu_ld32u: > + mask = 0xffffffffu; > + break; > + This could stand to be updated for the new INDEX_op_qemu_ld_{i32,i64} opcodes, where you have to look at args[last] to find out the width and sign. But this is still an improvement for the old opcodes. Reviewed-by: Richard Henderson r~