Received: from eggs.gnu.org ([2001:4830:134:3::10]:58909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv4l9-0000Tj-Ti for qemu-devel@nongnu.org; Fri, 14 Oct 2016 11:51:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bv4l5-0005ay-0J for qemu-devel@nongnu.org; Fri, 14 Oct 2016 11:50:59 -0400 Received: from mailapp02.imgtec.com ([217.156.133.132]:64741 helo=mailapp01.imgtec.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv4l4-0005Xp-QA for qemu-devel@nongnu.org; Fri, 14 Oct 2016 11:50:54 -0400 References: <20161014024604.3315-1-r@hev.cc> From: Yongbok Kim Message-ID: <3499f4b6-dbe5-8e73-eab3-8642d483c8a3@imgtec.com> Date: Fri, 14 Oct 2016 16:50:48 +0100 MIME-Version: 1.0 In-Reply-To: <20161014024604.3315-1-r@hev.cc> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] target-mips: Fix Loongson pandn instruction. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Heiher , qemu-devel@nongnu.org Cc: aurelien@aurel32.net, Heiher , Fuxin Zhang On 14/10/2016 03:46, Heiher wrote: > From: Heiher > > pandn FD, FS, FT > Operation: FD = ((NOT FS) AND FT) > > Signed-off-by: Heiher > Signed-off-by: Fuxin Zhang > --- > target-mips/translate.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/target-mips/translate.c b/target-mips/translate.c > index 55c2ca0..1412347 100644 > --- a/target-mips/translate.c > +++ b/target-mips/translate.c > @@ -3945,9 +3945,12 @@ static void gen_loongson_multimedia(DisasContext *ctx, int rd, int rs, int rt) > LMI_DIRECT(XOR_CP2, xor, xor); > LMI_DIRECT(NOR_CP2, nor, nor); > LMI_DIRECT(AND_CP2, and, and); > - LMI_DIRECT(PANDN, pandn, andc); > LMI_DIRECT(OR, or, or); > > + case OPC_PANDN: > + tcg_gen_andc_i64(t0, t1, t0); > + break; > + > case OPC_PINSRH_0: > tcg_gen_deposit_i64(t0, t0, t1, 0, 16); > break; > Reviewed-by: Yongbok Kim Regards, Yongbok