From: Heiher <r@hev.cc>
To: qemu-devel@nongnu.org
Cc: aurelien@aurel32.net, yongbok.kim@imgtec.com,
Heiher <wangr@lemote.com>, Fuxin Zhang <zhangfx@lemote.com>
Subject: [Qemu-devel] [PATCH v2] target-mips: Fix Loongson pandn instruction.
Date: Fri, 14 Oct 2016 10:46:04 +0800 [thread overview]
Message-ID: <20161014024604.3315-1-r@hev.cc> (raw)
From: Heiher <wangr@lemote.com>
pandn FD, FS, FT
Operation: FD = ((NOT FS) AND FT)
Signed-off-by: Heiher <wangr@lemote.com>
Signed-off-by: Fuxin Zhang <zhangfx@lemote.com>
---
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
next reply other threads:[~2016-10-14 2:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-14 2:46 Heiher [this message]
2016-10-14 15:50 ` [Qemu-devel] [PATCH v2] target-mips: Fix Loongson pandn instruction Yongbok Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161014024604.3315-1-r@hev.cc \
--to=r@hev.cc \
--cc=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
--cc=wangr@lemote.com \
--cc=yongbok.kim@imgtec.com \
--cc=zhangfx@lemote.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).