From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8CMB-0002Ci-Ct for qemu-devel@nongnu.org; Tue, 28 Jan 2014 12:21:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8CM5-0002Of-JZ for qemu-devel@nongnu.org; Tue, 28 Jan 2014 12:21:51 -0500 Received: from mail-qc0-x232.google.com ([2607:f8b0:400d:c01::232]:62720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8CM5-0002OW-DT for qemu-devel@nongnu.org; Tue, 28 Jan 2014 12:21:45 -0500 Received: by mail-qc0-f178.google.com with SMTP id m20so985569qcx.37 for ; Tue, 28 Jan 2014 09:21:45 -0800 (PST) Sender: Richard Henderson Message-ID: <52E7E723.6070103@twiddle.net> Date: Tue, 28 Jan 2014 09:21:39 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1390764312-21789-1-git-send-email-peter.maydell@linaro.org> <1390764312-21789-12-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1390764312-21789-12-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 11/21] target-arm: A64: Implement pairwise integer ops from 3-reg-same SIMD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , qemu-devel@nongnu.org Cc: Peter Crosthwaite , patches@linaro.org, Michael Matz , Alexander Graf , Claudio Fontana , Dirk Mueller , Will Newton , Laurent Desnogues , =?ISO-8859-1?Q?Alex_Benn=E9e?= , kvmarm@lists.cs.columbia.edu, Christoffer Dall On 01/26/2014 11:25 AM, Peter Maydell wrote: > +/* Helper functions for pairwise 32 bit comparisons */ > +static void gen_pmax_s32(TCGv_i32 res, TCGv_i32 op1, TCGv_i32 op2) > +{ > + tcg_gen_movcond_i32(TCG_COND_GE, res, op1, op2, op1, op2); > +} > + > +static void gen_pmax_u32(TCGv_i32 res, TCGv_i32 op1, TCGv_i32 op2) > +{ > + tcg_gen_movcond_i32(TCG_COND_GEU, res, op1, op2, op1, op2); > +} > + > +static void gen_pmin_s32(TCGv_i32 res, TCGv_i32 op1, TCGv_i32 op2) > +{ > + tcg_gen_movcond_i32(TCG_COND_LE, res, op1, op2, op1, op2); > +} > + > +static void gen_pmin_u32(TCGv_i32 res, TCGv_i32 op1, TCGv_i32 op2) > +{ > + tcg_gen_movcond_i32(TCG_COND_LEU, res, op1, op2, op1, op2); > +} These are exactly the sort of helpers I expected to see in the previous patch. Thus my question re neon_{min,max}_{s,u}32. Otherwise, Reviewed-by: Richard Henderson r~