[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 029/114] target/arm: Merge gen_gvec_fn_zz into do_mov_z
From: |
Richard Henderson |
Subject: |
[PATCH 029/114] target/arm: Merge gen_gvec_fn_zz into do_mov_z |
Date: |
Fri, 27 May 2022 11:17:42 -0700 |
There is only one caller for gen_gvec_fn_zz; inline it.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/translate-sve.c | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index 0a69a1ef65..5ab9de46a7 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -258,15 +258,6 @@ static bool gen_gvec_ool_arg_zpzz(DisasContext *s,
gen_helper_gvec_4 *fn,
return gen_gvec_ool_zzzp(s, fn, a->rd, a->rn, a->rm, a->pg, data);
}
-/* Invoke a vector expander on two Zregs. */
-static void gen_gvec_fn_zz(DisasContext *s, GVecGen2Fn *gvec_fn,
- int esz, int rd, int rn)
-{
- unsigned vsz = vec_full_reg_size(s);
- gvec_fn(esz, vec_full_reg_offset(s, rd),
- vec_full_reg_offset(s, rn), vsz, vsz);
-}
-
/* Invoke a vector expander on three Zregs. */
static void gen_gvec_fn_zzz(DisasContext *s, GVecGen3Fn *gvec_fn,
int esz, int rd, int rn, int rm)
@@ -292,7 +283,9 @@ static void gen_gvec_fn_zzzz(DisasContext *s, GVecGen4Fn
*gvec_fn,
static bool do_mov_z(DisasContext *s, int rd, int rn)
{
if (sve_access_check(s)) {
- gen_gvec_fn_zz(s, tcg_gen_gvec_mov, MO_8, rd, rn);
+ unsigned vsz = vec_full_reg_size(s);
+ tcg_gen_gvec_mov(MO_8, vec_full_reg_offset(s, rd),
+ vec_full_reg_offset(s, rn), vsz, vsz);
}
return true;
}
--
2.34.1
- [PATCH 021/114] target/arm: Use TRANS_FEAT for gen_gvec_ool_arg_zpz, (continued)
- [PATCH 021/114] target/arm: Use TRANS_FEAT for gen_gvec_ool_arg_zpz, Richard Henderson, 2022/05/27
- [PATCH 019/114] target/arm: Move null function and sve check into gen_gvec_ool_zzp, Richard Henderson, 2022/05/27
- [PATCH 022/114] target/arm: Use TRANS_FEAT for do_sve2_zpz_data, Richard Henderson, 2022/05/27
- [PATCH 014/114] target/arm: Use TRANS_FEAT for gen_gvec_ool_arg_zzxz, Richard Henderson, 2022/05/27
- [PATCH 025/114] target/arm: Move null function and sve check into gen_gvec_ool_zzzp, Richard Henderson, 2022/05/27
- [PATCH 024/114] target/arm: Use TRANS_FEAT for gen_gvec_ool_arg_zpzi, Richard Henderson, 2022/05/27
- [PATCH 027/114] target/arm: Use TRANS_FEAT for gen_gvec_ool_arg_zpzz, Richard Henderson, 2022/05/27
- [PATCH 026/114] target/arm: Introduce gen_gvec_ool_arg_zpzz, Richard Henderson, 2022/05/27
- [PATCH 030/114] target/arm: Move null function and sve check into gen_gvec_fn_zzz, Richard Henderson, 2022/05/27
- [PATCH 031/114] target/arm: Rename do_zzz_fn to gen_gvec_fn_arg_zzz, Richard Henderson, 2022/05/27
- [PATCH 029/114] target/arm: Merge gen_gvec_fn_zz into do_mov_z,
Richard Henderson <=
- [PATCH 028/114] target/arm: Use TRANS_FEAT for do_sve2_zpzz_ool, Richard Henderson, 2022/05/27
- [PATCH 023/114] target/arm: Rename do_zpzi_ool to gen_gvec_ool_arg_zpzi, Richard Henderson, 2022/05/27
- [PATCH 034/114] target/arm: Use TRANS_FEAT for do_sve2_fn_zzz, Richard Henderson, 2022/05/27
- [PATCH 035/114] target/arm: Use TRANS_FEAT for RAX1, Richard Henderson, 2022/05/27
- [PATCH 032/114] target/arm: More use of gen_gvec_fn_arg_zzz, Richard Henderson, 2022/05/27
- [PATCH 033/114] target/arm: Use TRANS_FEAT for gen_gvec_fn_arg_zzz, Richard Henderson, 2022/05/27
- [PATCH 036/114] target/arm: Introduce gen_gvec_fn_arg_zzzz, Richard Henderson, 2022/05/27
- [PATCH 038/114] target/arm: Introduce gen_gvec_fn_zzi, Richard Henderson, 2022/05/27
- [PATCH 039/114] target/arm: Use TRANS_FEAT for do_zz_dbm, Richard Henderson, 2022/05/27
- [PATCH 037/114] target/arm: Use TRANS_FEAT for do_sve2_zzzz_fn, Richard Henderson, 2022/05/27