Received: from eggs.gnu.org ([208.118.235.92]:55303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOu5T-0001yd-Gu for qemu-devel@nongnu.org; Thu, 18 Oct 2012 13:40:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOu5S-0007By-2v for qemu-devel@nongnu.org; Thu, 18 Oct 2012 13:40:51 -0400 Received: from fe02x03-cgp.akado.ru ([77.232.31.165]:55214 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOu5R-00076y-C6 for qemu-devel@nongnu.org; Thu, 18 Oct 2012 13:40:49 -0400 Date: Thu, 18 Oct 2012 21:40:42 +0400 (MSK) From: malc In-Reply-To: <1350581204-24456-3-git-send-email-peter.maydell@linaro.org> Message-ID: References: <1350581204-24456-1-git-send-email-peter.maydell@linaro.org> <1350581204-24456-3-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH 2/2] target-arm: Implement abs_i32 inline rather than as a helper List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org, patches@linaro.org On Thu, 18 Oct 2012, Peter Maydell wrote: [..snip..] > > -/* FIXME: Implement this natively. */ > -#define tcg_gen_abs_i32(t0, t1) gen_helper_abs(t0, t1) > +static void tcg_gen_abs_i32(TCGv dest, TCGv src) > +{ > + TCGv c0 = tcg_const_i32(0); > + printf("tcg_gen_abs_i32\n"); ^^^^^^ doubt it was intentional > + tcg_gen_neg_i32(dest, src); > + tcg_gen_movcond_i32(TCG_COND_GT, dest, src, c0, src, dest); > + tcg_temp_free_i32(c0); > +} > > static void shifter_out_im(TCGv var, int shift) > { > -- mailto:av1474@comtv.ru