From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4FQx-0004bt-R9 for qemu-devel@nongnu.org; Mon, 07 Jul 2014 16:22:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4FQo-0004cP-PJ for qemu-devel@nongnu.org; Mon, 07 Jul 2014 16:22:43 -0400 Received: from mail-qa0-x22e.google.com ([2607:f8b0:400d:c00::22e]:48008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4FQo-0004bT-Kh for qemu-devel@nongnu.org; Mon, 07 Jul 2014 16:22:34 -0400 Received: by mail-qa0-f46.google.com with SMTP id i13so3828118qae.19 for ; Mon, 07 Jul 2014 13:22:34 -0700 (PDT) Sender: Richard Henderson Message-ID: <53BB0186.4000405@twiddle.net> Date: Mon, 07 Jul 2014 13:22:30 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1404756822-3253-1-git-send-email-kbastian@mail.uni-paderborn.de> <1404756822-3253-9-git-send-email-kbastian@mail.uni-paderborn.de> In-Reply-To: <1404756822-3253-9-git-send-email-kbastian@mail.uni-paderborn.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 08/15] target-tricore: Add instructions of SSR opcode format List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bastian Koppelmann , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org On 07/07/2014 11:13 AM, Bastian Koppelmann wrote: > + case OPC1_16_SSR_ST_B: > + r1 = MASK_OP_SSR_S1(ctx->opcode); > + r2 = MASK_OP_SSR_S2(ctx->opcode); > + temp = tcg_temp_new(); > + tcg_gen_andi_tl(temp, cpu_gpr_d[r1], 0xff); > + tcg_gen_qemu_st8(temp, cpu_gpr_a[r2], ctx->mem_idx); > + tcg_temp_free(temp); The andi is just silly. Of course the st8 will only examine the low 8 bits. Likewise for the _H insns. r~