[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 061/117] target/arm: Use gen_gvec_ool_arg_zzz for do_zip, do_zip_q
From: |
Peter Maydell |
Subject: |
[PULL 061/117] target/arm: Use gen_gvec_ool_arg_zzz for do_zip, do_zip_q |
Date: |
Mon, 30 May 2022 17:06:12 +0100 |
From: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220527181907.189259-59-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
target/arm/translate-sve.c | 25 +++++++------------------
1 file changed, 7 insertions(+), 18 deletions(-)
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index c2ced3e2bb1..75c52d8ce1e 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -2293,16 +2293,10 @@ static bool do_zip(DisasContext *s, arg_rrr_esz *a,
bool high)
gen_helper_sve_zip_b, gen_helper_sve_zip_h,
gen_helper_sve_zip_s, gen_helper_sve_zip_d,
};
+ unsigned vsz = vec_full_reg_size(s);
+ unsigned high_ofs = high ? vsz / 2 : 0;
- if (sve_access_check(s)) {
- unsigned vsz = vec_full_reg_size(s);
- unsigned high_ofs = high ? vsz / 2 : 0;
- tcg_gen_gvec_3_ool(vec_full_reg_offset(s, a->rd),
- vec_full_reg_offset(s, a->rn),
- vec_full_reg_offset(s, a->rm),
- vsz, vsz, high_ofs, fns[a->esz]);
- }
- return true;
+ return gen_gvec_ool_arg_zzz(s, fns[a->esz], a, high_ofs);
}
static bool trans_ZIP1_z(DisasContext *s, arg_rrr_esz *a)
@@ -2317,18 +2311,13 @@ static bool trans_ZIP2_z(DisasContext *s, arg_rrr_esz
*a)
static bool do_zip_q(DisasContext *s, arg_rrr_esz *a, bool high)
{
+ unsigned vsz = vec_full_reg_size(s);
+ unsigned high_ofs = high ? QEMU_ALIGN_DOWN(vsz, 32) / 2 : 0;
+
if (!dc_isar_feature(aa64_sve_f64mm, s)) {
return false;
}
- if (sve_access_check(s)) {
- unsigned vsz = vec_full_reg_size(s);
- unsigned high_ofs = high ? QEMU_ALIGN_DOWN(vsz, 32) / 2 : 0;
- tcg_gen_gvec_3_ool(vec_full_reg_offset(s, a->rd),
- vec_full_reg_offset(s, a->rn),
- vec_full_reg_offset(s, a->rm),
- vsz, vsz, high_ofs, gen_helper_sve2_zip_q);
- }
- return true;
+ return gen_gvec_ool_arg_zzz(s, gen_helper_sve2_zip_q, a, high_ofs);
}
static bool trans_ZIP1_q(DisasContext *s, arg_rrr_esz *a)
--
2.25.1
- [PULL 069/117] target/arm: Use TRANS_FEAT for do_ppzz_flags, (continued)
- [PULL 069/117] target/arm: Use TRANS_FEAT for do_ppzz_flags, Peter Maydell, 2022/05/30
- [PULL 077/117] target/arm: Use TRANS_FEAT for ADD_zzi, Peter Maydell, 2022/05/30
- [PULL 088/117] target/arm: Rename do_zzz_fp to gen_gvec_ool_fpst_arg_zzz, Peter Maydell, 2022/05/30
- [PULL 091/117] target/arm: Use TRANS_FEAT for FTMAD, Peter Maydell, 2022/05/30
- [PULL 093/117] target/arm: Use TRANS_FEAT for do_reduce, Peter Maydell, 2022/05/30
- [PULL 058/117] target/arm: Use TRANS_FEAT for do_perm_pred3, Peter Maydell, 2022/05/30
- [PULL 090/117] target/arm: Use TRANS_FEAT for FMUL_zzx, Peter Maydell, 2022/05/30
- [PULL 046/117] target/arm: Use TRANS_FEAT for do_vpz_ool, Peter Maydell, 2022/05/30
- [PULL 052/117] target/arm: Use TRANS_FEAT for do_index, Peter Maydell, 2022/05/30
- [PULL 060/117] target/arm: Move sve zip high_ofs into simd_data, Peter Maydell, 2022/05/30
- [PULL 061/117] target/arm: Use gen_gvec_ool_arg_zzz for do_zip, do_zip_q,
Peter Maydell <=
- [PULL 070/117] target/arm: Use TRANS_FEAT for do_sve2_ppzz_flags, Peter Maydell, 2022/05/30
- [PULL 073/117] target/arm: Use TRANS_FEAT for MUL_zzi, Peter Maydell, 2022/05/30
- [PULL 074/117] target/arm: Reject dup_i w/ shifted byte early, Peter Maydell, 2022/05/30
- [PULL 094/117] target/arm: Use TRANS_FEAT for FRECPE, FRSQRTE, Peter Maydell, 2022/05/30
- [PULL 095/117] target/arm: Expand frint_fns for MO_8, Peter Maydell, 2022/05/30
- [PULL 096/117] target/arm: Rename do_zpz_ptr to gen_gvec_ool_fpst_arg_zpz, Peter Maydell, 2022/05/30
- [PULL 082/117] target/arm: Move sve check into gen_gvec_fn_ppp, Peter Maydell, 2022/05/30
- [PULL 084/117] target/arm: Use TRANS_FEAT for SEL_zpzz, Peter Maydell, 2022/05/30
- [PULL 086/117] target/arm: Use TRANS_FEAT for FMLA, Peter Maydell, 2022/05/30
- [PULL 092/117] target/arm: Move null function and sve check into do_reduce, Peter Maydell, 2022/05/30