From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40964) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDM76-0004oF-Mx for qemu-devel@nongnu.org; Sat, 03 Dec 2016 21:01:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDM75-0004ih-90 for qemu-devel@nongnu.org; Sat, 03 Dec 2016 21:01:12 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:38227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDM75-0004h7-3x for qemu-devel@nongnu.org; Sat, 03 Dec 2016 21:01:11 -0500 Received: from HHMAIL01.hh.imgtec.org (unknown [10.100.10.19]) by Forcepoint Email with ESMTPS id 38FB0D275A228 for ; Sun, 4 Dec 2016 02:00:59 +0000 (GMT) From: Yongbok Kim Date: Sun, 4 Dec 2016 02:00:14 +0000 Message-ID: <1480816817-53245-2-git-send-email-yongbok.kim@imgtec.com> In-Reply-To: <1480816817-53245-1-git-send-email-yongbok.kim@imgtec.com> References: <1480816817-53245-1-git-send-email-yongbok.kim@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PULL 1/4] target-mips: Fix Loongson pandn instruction. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Heiher pandn FD, FS, FT Operation: FD = ((NOT FS) AND FT) Signed-off-by: Heiher Signed-off-by: Fuxin Zhang Reviewed-by: Yongbok Kim Signed-off-by: Yongbok Kim --- 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 d8dde7a..5ad97c7 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.7.4