From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZBDn-0007jG-Uy for qemu-devel@nongnu.org; Tue, 08 Sep 2015 01:13:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZBDk-0003Vn-NA for qemu-devel@nongnu.org; Tue, 08 Sep 2015 01:13:31 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:32859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZBDk-0003Vg-Hf for qemu-devel@nongnu.org; Tue, 08 Sep 2015 01:13:28 -0400 Received: by pacex6 with SMTP id ex6so113567980pac.0 for ; Mon, 07 Sep 2015 22:12:43 -0700 (PDT) Sender: Richard Henderson References: <1441216660-8717-1-git-send-email-rth@twiddle.net> <1441216660-8717-5-git-send-email-rth@twiddle.net> From: Richard Henderson Message-ID: <55EE6E48.3070806@twiddle.net> Date: Mon, 7 Sep 2015 22:12:40 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 04/11] target-arm: Use setcond and movcond for csel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers On 09/07/2015 10:17 AM, Peter Maydell wrote: >> + c64->value = tcg_temp_new_i64(); >> + c64->cond = c32.cond; >> + if (c32.cond == TCG_COND_EQ || c32.cond == TCG_COND_NE) { >> + tcg_gen_extu_i32_i64(c64->value, c32.value); >> + } else { >> + tcg_gen_ext_i32_i64(c64->value, c32.value); >> + } > > Signed extend would work for EQ and NE as well, wouldn't it? Yes. > Why prefer the unsigned extension in those cases? If there's > a reason, it could do with being commented. I dunno what I was really thinking there. r~