Received: from eggs.gnu.org ([2001:4830:134:3::10]:36848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXySm-0005ZJ-VB for qemu-devel@nongnu.org; Thu, 11 Aug 2016 18:28:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXySj-0004Tc-Lq for qemu-devel@nongnu.org; Thu, 11 Aug 2016 18:28:32 -0400 Sender: Richard Henderson References: <1470855666-31696-1-git-send-email-nikunj@linux.vnet.ibm.com> <1470855666-31696-2-git-send-email-nikunj@linux.vnet.ibm.com> From: Richard Henderson Message-ID: <769d40b3-2fa8-23c0-bb06-194a4ced7727@twiddle.net> Date: Thu, 11 Aug 2016 23:28:26 +0100 MIME-Version: 1.0 In-Reply-To: <1470855666-31696-2-git-send-email-nikunj@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v1 01/10] target-ppc: add xxspltib 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 On 08/10/2016 08:00 PM, Nikunj A Dadhania wrote: > +#if defined(TARGET_PPC64) > +#define pattern(x) (((x) & 0xff) * (~(target_ulong)0 / 0xff)) > + > +static void gen_xxspltib(DisasContext *ctx) ... > + tcg_gen_movi_i64(cpu_vsrh(xT(ctx->opcode)), pattern(uim8)); Is this function really not available in 32-bit mode? I'd been pointing out that you should change target_ulong in PATTERN, above, to uint64_t, so that you match tcg_gen_movi_i64. r~