[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 31/57] target/loongarch: Implement xvsigncov
From: |
Song Gao |
Subject: |
[PATCH v6 31/57] target/loongarch: Implement xvsigncov |
Date: |
Thu, 14 Sep 2023 10:26:19 +0800 |
This patch includes:
- XVSIGNCOV.{B/H/W/D}.
Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
target/loongarch/insns.decode | 5 +++++
target/loongarch/disas.c | 5 +++++
target/loongarch/insn_trans/trans_vec.c.inc | 4 ++++
3 files changed, 14 insertions(+)
diff --git a/target/loongarch/insns.decode b/target/loongarch/insns.decode
index db1a6689f0..7bbda1a142 100644
--- a/target/loongarch/insns.decode
+++ b/target/loongarch/insns.decode
@@ -1593,6 +1593,11 @@ vext2xv_wu_hu 0111 01101001 11110 01101 ..... .....
@vv
vext2xv_du_hu 0111 01101001 11110 01110 ..... ..... @vv
vext2xv_du_wu 0111 01101001 11110 01111 ..... ..... @vv
+xvsigncov_b 0111 01010010 11100 ..... ..... ..... @vvv
+xvsigncov_h 0111 01010010 11101 ..... ..... ..... @vvv
+xvsigncov_w 0111 01010010 11110 ..... ..... ..... @vvv
+xvsigncov_d 0111 01010010 11111 ..... ..... ..... @vvv
+
xvreplgr2vr_b 0111 01101001 11110 00000 ..... ..... @vr
xvreplgr2vr_h 0111 01101001 11110 00001 ..... ..... @vr
xvreplgr2vr_w 0111 01101001 11110 00010 ..... ..... @vr
diff --git a/target/loongarch/disas.c b/target/loongarch/disas.c
index 714b97e238..1f01ec99d5 100644
--- a/target/loongarch/disas.c
+++ b/target/loongarch/disas.c
@@ -2010,6 +2010,11 @@ INSN_LASX(vext2xv_wu_hu, vv)
INSN_LASX(vext2xv_du_hu, vv)
INSN_LASX(vext2xv_du_wu, vv)
+INSN_LASX(xvsigncov_b, vvv)
+INSN_LASX(xvsigncov_h, vvv)
+INSN_LASX(xvsigncov_w, vvv)
+INSN_LASX(xvsigncov_d, vvv)
+
INSN_LASX(xvreplgr2vr_b, vr)
INSN_LASX(xvreplgr2vr_h, vr)
INSN_LASX(xvreplgr2vr_w, vr)
diff --git a/target/loongarch/insn_trans/trans_vec.c.inc
b/target/loongarch/insn_trans/trans_vec.c.inc
index 8f21f6b1c4..492bbcd4e9 100644
--- a/target/loongarch/insn_trans/trans_vec.c.inc
+++ b/target/loongarch/insn_trans/trans_vec.c.inc
@@ -3412,6 +3412,10 @@ TRANS(vsigncov_b, LSX, gvec_vvv, MO_8, do_vsigncov)
TRANS(vsigncov_h, LSX, gvec_vvv, MO_16, do_vsigncov)
TRANS(vsigncov_w, LSX, gvec_vvv, MO_32, do_vsigncov)
TRANS(vsigncov_d, LSX, gvec_vvv, MO_64, do_vsigncov)
+TRANS(xvsigncov_b, LASX, gvec_xxx, MO_8, do_vsigncov)
+TRANS(xvsigncov_h, LASX, gvec_xxx, MO_16, do_vsigncov)
+TRANS(xvsigncov_w, LASX, gvec_xxx, MO_32, do_vsigncov)
+TRANS(xvsigncov_d, LASX, gvec_xxx, MO_64, do_vsigncov)
TRANS(vmskltz_b, LSX, gen_vv, gen_helper_vmskltz_b)
TRANS(vmskltz_h, LSX, gen_vv, gen_helper_vmskltz_h)
--
2.39.1
- [PATCH v6 51/57] target/loongarch: Implement xvinsgr2vr xvpickve2gr, (continued)
- [PATCH v6 51/57] target/loongarch: Implement xvinsgr2vr xvpickve2gr, Song Gao, 2023/09/13
- [PATCH v6 54/57] target/loongarch: Implement xvshuf xvperm{i} xvshuf4i, Song Gao, 2023/09/13
- [PATCH v6 35/57] target/loongarch: Implement xvsll xvsrl xvsra xvrotr, Song Gao, 2023/09/13
- [PATCH v6 41/57] target/loongarch: Implement xvssrlrn xvssrarn, Song Gao, 2023/09/13
- [PATCH v6 48/57] target/loongarch: Implement xvseq xvsle xvslt, Song Gao, 2023/09/13
- [PATCH v6 52/57] target/loongarch: Implement xvreplve xvinsve0 xvpickve, Song Gao, 2023/09/13
- [PATCH v6 31/57] target/loongarch: Implement xvsigncov,
Song Gao <=
- [PATCH v6 53/57] target/loongarch: Implement xvpack xvpick xvilv{l/h}, Song Gao, 2023/09/13
- [PATCH v6 28/57] target/loongarch: Implement xvsat, Song Gao, 2023/09/13
- [PATCH v6 16/57] target/loongarch: Implement xvaddi/xvsubi, Song Gao, 2023/09/13
- [PATCH v6 10/57] target/loongarch: Replace CHECK_SXE to check_vec(ctx, 16), Song Gao, 2023/09/13
- [PATCH v6 45/57] target/loongarch: Implement xvfrstp, Song Gao, 2023/09/13
- [PATCH v6 40/57] target/loongarch: Implement xvssrln xvssran, Song Gao, 2023/09/13
- [PATCH v6 47/57] target/loongarch: Implement LASX fpu fcvt instructions, Song Gao, 2023/09/13
- [PATCH v6 29/57] target/loongarch: Implement xvexth, Song Gao, 2023/09/13
- [PATCH v6 49/57] target/loongarch: Implement xvfcmp, Song Gao, 2023/09/13
- [PATCH v6 12/57] target/loongarch: check_vec support check LASX instructions, Song Gao, 2023/09/13