From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRnoa-0003LJ-GU for qemu-devel@nongnu.org; Thu, 03 Oct 2013 14:40:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRnoR-0006nN-S4 for qemu-devel@nongnu.org; Thu, 03 Oct 2013 14:39:56 -0400 Received: from mail-ye0-x230.google.com ([2607:f8b0:4002:c04::230]:56892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRnoR-0006nJ-Mg for qemu-devel@nongnu.org; Thu, 03 Oct 2013 14:39:47 -0400 Received: by mail-ye0-f176.google.com with SMTP id m4so708324yen.21 for ; Thu, 03 Oct 2013 11:39:47 -0700 (PDT) Sender: Richard Henderson Message-ID: <524DB9E5.60501@twiddle.net> Date: Thu, 03 Oct 2013 13:39:33 -0500 From: Richard Henderson MIME-Version: 1.0 References: <524D6838.5080607@linaro.org> <524D807D.4070205@twiddle.net> <524D8D09.3050808@twiddle.net> In-Reply-To: <524D8D09.3050808@twiddle.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] target-arm: Implement ARMv8 VSEL instruction. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Will Newton Cc: QEMU Developers , Patch Tracking On 10/03/2013 10:28 AM, Richard Henderson wrote: > For the simple conditions, yes. For the more complex ones, > you might want to do the computation in 32-bit and extend > the result. Alternately, compute the condition with setcond_i32 and only extend that result to 64 bits. That means doing something different with GT with its compound. Maybe xor_i32 tmp, vf, nf setcond_i32 tmp, tmp, zero, ge movcond_i32 tmp, zf, zero, tmp, zero, ne (tmp = z ? tmp : 0) r~