From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULy6d-00050A-1R for qemu-devel@nongnu.org; Sat, 30 Mar 2013 11:54:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULy6a-0006Yr-5X for qemu-devel@nongnu.org; Sat, 30 Mar 2013 11:54:10 -0400 Received: from mail-da0-x234.google.com ([2607:f8b0:400e:c00::234]:54031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULy6Z-0006YW-VL for qemu-devel@nongnu.org; Sat, 30 Mar 2013 11:54:08 -0400 Received: by mail-da0-f52.google.com with SMTP id f10so556553dak.11 for ; Sat, 30 Mar 2013 08:54:06 -0700 (PDT) Sender: Richard Henderson Message-ID: <51570A9B.2040306@twiddle.net> Date: Sat, 30 Mar 2013 08:54:03 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1364657589-16123-1-git-send-email-aurelien@aurel32.net> <1364657589-16123-2-git-send-email-aurelien@aurel32.net> In-Reply-To: <1364657589-16123-2-git-send-email-aurelien@aurel32.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/2] tcg-ia64: implement add2_i32/i64 and sub2_i32/i64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: qemu-devel@nongnu.org On 03/30/2013 08:33 AM, Aurelien Jarno wrote: > +static inline void tcg_out_add2(TCGContext *s, TCGArg retl, TCGArg reth, > + TCGArg arg1l, TCGArg arg1h, > + TCGArg arg2l, TCGArg arg2h, > + int cmp4) > +{ > + tcg_out_bundle(s, MmI, > + tcg_opc_a1(TCG_REG_P0, OPC_ADD_A1, TCG_REG_R2, arg1l, arg2l), > + tcg_opc_m48(TCG_REG_P0, OPC_NOP_M48, 0), > + tcg_opc_cmp_a(TCG_REG_P0, TCG_COND_LTU, > + TCG_REG_R2, arg1l, cmp4)); I seem to recall a 1-cycle cross-unit delay, going between M to I units? Maybe that was just the itanic1, it's been so long...? Anyway, in this case it's easy to avoid by putting the nop first and using an mII bundle. That said, the code looks correct. Reviewed-by: Richard Henderson r~