From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYVVY-0007TZ-8j for qemu-devel@nongnu.org; Tue, 22 Oct 2013 02:32:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYVVP-0003P5-PC for qemu-devel@nongnu.org; Tue, 22 Oct 2013 02:32:00 -0400 Sender: Paolo Bonzini Message-ID: <52661BC2.6050505@redhat.com> Date: Tue, 22 Oct 2013 07:31:30 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <5257F4DD.7000204@gmail.com> <5257F6E6.9050503@gmail.com> In-Reply-To: <5257F6E6.9050503@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [v2 07/13] Add VSX Scalar Move Instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tom Musta Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org Il 11/10/2013 14:02, Tom Musta ha scritto: > > + case OP_CPSGN: { \ > + TCGv_i64 xa = tcg_temp_new(); \ > + tcg_gen_mov_i64(xa, cpu_vsrh(xA(ctx->opcode))); \ > + tcg_gen_andi_i64(xa, xa, (sgn_mask)); \ > + tcg_gen_andi_i64(xb, xb, ~(sgn_mask)); \ > + tcg_gen_or_i64(xb, xb, xa); \ > + tcg_temp_free(xa); \ > + break; \ You might get slightly better generated code if you move the sgn_mask immediate to a temporary and then use and+andc. Paolo