* [Qemu-devel] [PATCH v2] target-mips: Fix Loongson pandn instruction.
@ 2016-10-14 2:46 Heiher
2016-10-14 15:50 ` Yongbok Kim
0 siblings, 1 reply; 2+ messages in thread
From: Heiher @ 2016-10-14 2:46 UTC (permalink / raw)
To: qemu-devel; +Cc: aurelien, yongbok.kim, Heiher, Fuxin Zhang
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH v2] target-mips: Fix Loongson pandn instruction.
2016-10-14 2:46 [Qemu-devel] [PATCH v2] target-mips: Fix Loongson pandn instruction Heiher
@ 2016-10-14 15:50 ` Yongbok Kim
0 siblings, 0 replies; 2+ messages in thread
From: Yongbok Kim @ 2016-10-14 15:50 UTC (permalink / raw)
To: Heiher, qemu-devel; +Cc: aurelien, Heiher, Fuxin Zhang
On 14/10/2016 03:46, Heiher wrote:
> 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;
>
Reviewed-by: Yongbok Kim <yongbok.kim@imgtec.com>
Regards,
Yongbok
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-14 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-14 2:46 [Qemu-devel] [PATCH v2] target-mips: Fix Loongson pandn instruction Heiher
2016-10-14 15:50 ` Yongbok Kim
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).