Received: from eggs.gnu.org ([208.118.235.92]:53598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THKDV-0000BF-Hb for qemu-devel@nongnu.org; Thu, 27 Sep 2012 15:57:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THKDR-0006mH-Fj for qemu-devel@nongnu.org; Thu, 27 Sep 2012 15:57:49 -0400 Date: Thu, 27 Sep 2012 21:57:43 +0200 From: Aurelien Jarno Message-ID: <20120927195743.GG20151@ohm.aurel32.net> References: <1348754143-18251-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1348754143-18251-1-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [PATCH] tcg/arm: Use tcg_out_mov_reg rather than inline equivalent code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, patches@linaro.org On Thu, Sep 27, 2012 at 02:55:43PM +0100, Peter Maydell wrote: > Use the recently introduced tcg_out_mov_reg() function rather than > the equivalent inline code. > > Signed-off-by: Peter Maydell > --- > This is a minor follow-on cleanup patch after commit 9716ef3b1. > > tcg/arm/tcg-target.c | 15 +++------------ > 1 file changed, 3 insertions(+), 12 deletions(-) > > diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c > index 2bad0a2..5e8dbdd 100644 > --- a/tcg/arm/tcg-target.c > +++ b/tcg/arm/tcg-target.c > @@ -1197,20 +1197,11 @@ static inline void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, int opc) > case 1: > case 2: > default: > - if (data_reg != TCG_REG_R0) { > - tcg_out_dat_reg(s, COND_AL, ARITH_MOV, > - data_reg, 0, TCG_REG_R0, SHIFT_IMM_LSL(0)); > - } > + tcg_out_mov_reg(s, COND_AL, data_reg, TCG_REG_R0); > break; > case 3: > - if (data_reg != TCG_REG_R0) { > - tcg_out_dat_reg(s, COND_AL, ARITH_MOV, > - data_reg, 0, TCG_REG_R0, SHIFT_IMM_LSL(0)); > - } > - if (data_reg2 != TCG_REG_R1) { > - tcg_out_dat_reg(s, COND_AL, ARITH_MOV, > - data_reg2, 0, TCG_REG_R1, SHIFT_IMM_LSL(0)); > - } > + tcg_out_mov_reg(s, COND_AL, data_reg, TCG_REG_R0); > + tcg_out_mov_reg(s, COND_AL, data_reg2, TCG_REG_R1); > break; > } Reviewed-by: Aurelien Jarno -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net