Received: from eggs.gnu.org ([2001:4830:134:3::10]:50128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9KKt-0001wH-6k for qemu-devel@nongnu.org; Fri, 12 May 2017 19:51:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9KKs-0004nh-FA for qemu-devel@nongnu.org; Fri, 12 May 2017 19:51:03 -0400 Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= References: <20170512033543.6789-1-f4bug@amsat.org> <20170512033543.6789-3-f4bug@amsat.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Fri, 12 May 2017 20:50:53 -0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v3 2/5] target/arm: optimize rev16() using extract op List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , qemu-devel@nongnu.org, Peter Maydell , Aurelien Jarno , qemu-arm@nongnu.org On 05/12/2017 01:50 PM, Richard Henderson wrote: > On 05/11/2017 08:35 PM, Philippe Mathieu-Daudé wrote: >> - tcg_gen_shri_i64(tcg_tmp, tcg_rn, 16); >> - tcg_gen_andi_i64(tcg_tmp, tcg_tmp, 0xffff); >> + tcg_gen_extract_i64(tcg_tmp, tcg_rn, 16, 0xffff); > > So your new script didn't work then? This should be "..., 16, 16);". Yeah this is wrong :( I hope I got it in the last patchset (v4). Thank for the review, Phil.