Received: from eggs.gnu.org ([2001:4830:134:3::10]:57394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1busVv-000185-Ay for qemu-devel@nongnu.org; Thu, 13 Oct 2016 22:46:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1busVp-0006D4-AA for qemu-devel@nongnu.org; Thu, 13 Oct 2016 22:46:26 -0400 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:36386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1busVp-0006Ct-3T for qemu-devel@nongnu.org; Thu, 13 Oct 2016 22:46:21 -0400 Received: by mail-pf0-x241.google.com with SMTP id r16so6209098pfg.3 for ; Thu, 13 Oct 2016 19:46:20 -0700 (PDT) From: Heiher Date: Fri, 14 Oct 2016 10:46:04 +0800 Message-Id: <20161014024604.3315-1-r@hev.cc> Subject: [Qemu-devel] [PATCH v2] target-mips: Fix Loongson pandn instruction. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net, yongbok.kim@imgtec.com, Heiher , Fuxin Zhang 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; -- 2.10.0