From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PULL 25/38] target/sparc: Implement PDISTN
Date: Wed, 5 Jun 2024 10:22:40 -0700 [thread overview]
Message-ID: <20240605172253.356302-26-richard.henderson@linaro.org> (raw)
In-Reply-To: <20240605172253.356302-1-richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/sparc/insns.decode | 1 +
target/sparc/translate.c | 11 +++++++++++
2 files changed, 12 insertions(+)
diff --git a/target/sparc/insns.decode b/target/sparc/insns.decode
index e0e9248982..09c8adca37 100644
--- a/target/sparc/insns.decode
+++ b/target/sparc/insns.decode
@@ -435,6 +435,7 @@ FCMPEq 10 000 cc:2 110101 ..... 0 0101 0111 ..... \
FPACKFIX 10 ..... 110110 00000 0 0011 1101 ..... @r_d2
PDIST 10 ..... 110110 ..... 0 0011 1110 ..... \
&r_r_r_r rd=%dfp_rd rs1=%dfp_rd rs2=%dfp_rs1 rs3=%dfp_rs2
+ PDISTN 10 ..... 110110 ..... 0 0011 1111 ..... @r_d_d
FMEAN16 10 ..... 110110 ..... 0 0100 0000 ..... @d_d_d
FCHKSM16 10 ..... 110110 ..... 0 0100 0100 ..... @d_d_d
diff --git a/target/sparc/translate.c b/target/sparc/translate.c
index 496d490cdd..2480eed1e7 100644
--- a/target/sparc/translate.c
+++ b/target/sparc/translate.c
@@ -817,6 +817,15 @@ static void gen_op_bshuffle(TCGv_i64 dst, TCGv_i64 src1, TCGv_i64 src2)
#endif
}
+static void gen_op_pdistn(TCGv dst, TCGv_i64 src1, TCGv_i64 src2)
+{
+#ifdef TARGET_SPARC64
+ gen_helper_pdist(dst, tcg_constant_i64(0), src1, src2);
+#else
+ g_assert_not_reached();
+#endif
+}
+
static void gen_op_fmul8x16al(TCGv_i64 dst, TCGv_i32 src1, TCGv_i32 src2)
{
tcg_gen_ext16s_i32(src2, src2);
@@ -5070,6 +5079,8 @@ TRANS(FPCMPNE8, VIS3B, do_rdd, a, gen_helper_fcmpne8)
TRANS(FPCMPULE8, VIS3B, do_rdd, a, gen_helper_fcmpule8)
TRANS(FPCMPUGT8, VIS3B, do_rdd, a, gen_helper_fcmpugt8)
+TRANS(PDISTN, VIS3, do_rdd, a, gen_op_pdistn)
+
static bool do_env_ddd(DisasContext *dc, arg_r_r_r *a,
void (*func)(TCGv_i64, TCGv_env, TCGv_i64, TCGv_i64))
{
--
2.34.1
next prev parent reply other threads:[~2024-06-05 17:27 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-05 17:22 [PULL 00/38] sparc + linux-user patch queue Richard Henderson
2024-06-05 17:22 ` [PULL 01/38] linux-user: Add ioctl for BLKBSZSET Richard Henderson
2024-06-05 17:22 ` [PULL 02/38] target/sparc: Fix ARRAY8 Richard Henderson
2024-06-05 17:22 ` [PULL 03/38] target/sparc: Rewrite gen_edge Richard Henderson
2024-06-05 17:22 ` [PULL 04/38] target/sparc: Fix do_dc Richard Henderson
2024-06-05 17:22 ` [PULL 05/38] target/sparc: Fix helper_fmul8ulx16 Richard Henderson
2024-06-05 17:22 ` [PULL 06/38] target/sparc: Perform DFPREG/QFPREG in decodetree Richard Henderson
2024-06-05 17:22 ` [PULL 07/38] target/sparc: Remove gen_dest_fpr_D Richard Henderson
2024-06-05 17:22 ` [PULL 08/38] target/sparc: Remove cpu_fpr[] Richard Henderson
2024-06-05 17:22 ` [PULL 09/38] target/sparc: Use gvec for VIS1 parallel add/sub Richard Henderson
2024-06-05 17:22 ` [PULL 10/38] target/sparc: Implement FMAf extension Richard Henderson
2024-06-05 17:22 ` [PULL 11/38] target/sparc: Add feature bits for VIS 3 Richard Henderson
2024-06-05 17:22 ` [PULL 12/38] target/sparc: Implement ADDXC, ADDXCcc Richard Henderson
2024-06-05 17:22 ` [PULL 13/38] target/sparc: Implement CMASK instructions Richard Henderson
2024-06-05 17:22 ` [PULL 14/38] target/sparc: Implement FCHKSM16 Richard Henderson
2024-06-05 17:22 ` [PULL 15/38] target/sparc: Implement FHADD, FHSUB, FNHADD, FNADD, FNMUL Richard Henderson
2024-06-05 17:22 ` [PULL 16/38] target/sparc: Implement FLCMP Richard Henderson
2024-06-05 17:22 ` [PULL 17/38] target/sparc: Implement FMEAN16 Richard Henderson
2024-06-05 17:22 ` [PULL 18/38] target/sparc: Implement FPADD64, FPSUB64 Richard Henderson
2024-06-05 17:22 ` [PULL 19/38] target/sparc: Implement FPADDS, FPSUBS Richard Henderson
2024-06-05 17:22 ` [PULL 20/38] target/sparc: Implement FPCMPEQ8, FPCMPNE8, FPCMPULE8, FPCMPUGT8 Richard Henderson
2024-06-05 17:22 ` [PULL 21/38] target/sparc: Implement FSLL, FSRL, FSRA, FSLAS Richard Henderson
2024-06-05 17:22 ` [PULL 22/38] target/sparc: Implement LDXEFSR Richard Henderson
2024-06-05 17:22 ` [PULL 23/38] target/sparc: Implement LZCNT Richard Henderson
2024-06-05 17:22 ` [PULL 24/38] target/sparc: Implement MOVsTOw, MOVdTOx, MOVwTOs, MOVxTOd Richard Henderson
2024-06-05 17:22 ` Richard Henderson [this message]
2024-06-05 17:22 ` [PULL 26/38] target/sparc: Implement UMULXHI Richard Henderson
2024-06-05 17:22 ` [PULL 27/38] target/sparc: Implement XMULX Richard Henderson
2024-06-05 17:22 ` [PULL 28/38] target/sparc: Enable VIS3 feature bit Richard Henderson
2024-06-05 17:22 ` [PULL 29/38] target/sparc: Implement IMA extension Richard Henderson
2024-06-05 17:22 ` [PULL 30/38] target/sparc: Add feature bit for VIS4 Richard Henderson
2024-06-05 17:22 ` [PULL 31/38] target/sparc: Implement FALIGNDATAi Richard Henderson
2024-06-05 17:22 ` [PULL 32/38] target/sparc: Implement 8-bit FPADD, FPADDS, and FPADDUS Richard Henderson
2024-06-05 17:22 ` [PULL 33/38] target/sparc: Implement VIS4 comparisons Richard Henderson
2024-06-05 17:22 ` [PULL 34/38] target/sparc: Implement FPMIN, FPMAX Richard Henderson
2024-06-05 17:22 ` [PULL 35/38] target/sparc: Implement SUBXC, SUBXCcc Richard Henderson
2024-06-05 17:22 ` [PULL 36/38] target/sparc: Implement MWAIT Richard Henderson
2024-06-05 17:22 ` [PULL 37/38] target/sparc: Implement monitor ASIs Richard Henderson
2024-06-05 17:22 ` [PULL 38/38] target/sparc: Enable VIS4 feature bit Richard Henderson
2024-06-05 18:49 ` [PULL 00/38] sparc + linux-user patch queue Richard Henderson
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=20240605172253.356302-26-richard.henderson@linaro.org \
--to=richard.henderson@linaro.org \
--cc=philmd@linaro.org \
--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).