From: Yongbok Kim <yongbok.kim@imgtec.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PULL 1/4] target-mips: Fix Loongson pandn instruction.
Date: Sun, 4 Dec 2016 02:00:14 +0000 [thread overview]
Message-ID: <1480816817-53245-2-git-send-email-yongbok.kim@imgtec.com> (raw)
In-Reply-To: <1480816817-53245-1-git-send-email-yongbok.kim@imgtec.com>
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>
Reviewed-by: Yongbok Kim <yongbok.kim@imgtec.com>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.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 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
next prev parent reply other threads:[~2016-12-04 2:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-04 2:00 [Qemu-devel] [PULL 0/4] target-mips queue Yongbok Kim
2016-12-04 2:00 ` Yongbok Kim [this message]
2016-12-04 2:00 ` [Qemu-devel] [PULL 2/4] target-mips: Fix Loongson multimedia 'or' instruction Yongbok Kim
2016-12-04 2:00 ` [Qemu-devel] [PULL 3/4] target-mips: Fix Loongson multimedia instructions Yongbok Kim
2016-12-04 2:00 ` [Qemu-devel] [PULL 4/4] target-mips: fix bad shifts in {dextp|dextpdp} Yongbok Kim
2016-12-05 10:56 ` [Qemu-devel] [PULL 0/4] target-mips queue Stefan Hajnoczi
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=1480816817-53245-2-git-send-email-yongbok.kim@imgtec.com \
--to=yongbok.kim@imgtec.com \
--cc=qemu-devel@nongnu.org \
/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).