Received: from eggs.gnu.org ([2001:4830:134:3::10]:34896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpSe0-0007z3-Hj for qemu-devel@nongnu.org; Thu, 29 Sep 2016 00:08:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpSdy-0002TP-Ka for qemu-devel@nongnu.org; Thu, 29 Sep 2016 00:08:23 -0400 Sender: Richard Henderson References: <1475088120-20244-1-git-send-email-nikunj@linux.vnet.ibm.com> <1475088120-20244-4-git-send-email-nikunj@linux.vnet.ibm.com> <87mvirv46j.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> From: Richard Henderson Message-ID: <82dab79a-e9fe-e07e-867b-bdd0c8966156@twiddle.net> Date: Wed, 28 Sep 2016 21:08:19 -0700 MIME-Version: 1.0 In-Reply-To: <87mvirv46j.fsf@abhimanyu.i-did-not-set--mail-host-address--so-tickle-me> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 3/9] target-ppc: Implement mtvsrws instruction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikunj A Dadhania , qemu-ppc@nongnu.org, david@gibson.dropbear.id.au Cc: qemu-devel@nongnu.org, benh@kernel.crashing.org, Ravi Bangoria On 09/28/2016 07:19 PM, Nikunj A Dadhania wrote: > Richard Henderson writes: > >> On 09/28/2016 11:41 AM, Nikunj A Dadhania wrote: >>> + tcg_gen_mov_i64(t0, cpu_gpr[rA(ctx->opcode)]); >>> + tcg_gen_deposit_i64(cpu_vsrl(xT(ctx->opcode)), t0, t0, 32, 32); >> >> Why are you using t0? > > Thought about dropping it, but wasn't sure if deposit_i64 would change it. Nope, all of the tcg-op.c functions are safe that way, only modifying the outputs. r~