[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 093/117] target/arm: Use TRANS_FEAT for do_reduce
From: |
Peter Maydell |
Subject: |
[PULL 093/117] target/arm: Use TRANS_FEAT for do_reduce |
Date: |
Mon, 30 May 2022 17:06:44 +0100 |
From: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220527181907.189259-91-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 | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index 0d71072f837..4a9ecd5e72d 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -3609,15 +3609,11 @@ static bool do_reduce(DisasContext *s, arg_rpr_esz *a,
}
#define DO_VPZ(NAME, name) \
-static bool trans_##NAME(DisasContext *s, arg_rpr_esz *a) \
-{ \
- static gen_helper_fp_reduce * const fns[4] = { \
- NULL, gen_helper_sve_##name##_h, \
- gen_helper_sve_##name##_s, \
- gen_helper_sve_##name##_d, \
+ static gen_helper_fp_reduce * const name##_fns[4] = { \
+ NULL, gen_helper_sve_##name##_h, \
+ gen_helper_sve_##name##_s, gen_helper_sve_##name##_d, \
}; \
- return do_reduce(s, a, fns[a->esz]); \
-}
+ TRANS_FEAT(NAME, aa64_sve, do_reduce, a, name##_fns[a->esz])
DO_VPZ(FADDV, faddv)
DO_VPZ(FMINNMV, fminnmv)
@@ -3625,6 +3621,8 @@ DO_VPZ(FMAXNMV, fmaxnmv)
DO_VPZ(FMINV, fminv)
DO_VPZ(FMAXV, fmaxv)
+#undef DO_VPZ
+
/*
*** SVE Floating Point Unary Operations - Unpredicated Group
*/
--
2.25.1
- [PULL 045/117] target/arm: Use TRANS_FEAT for do_sve2_fn2i, (continued)
- [PULL 045/117] target/arm: Use TRANS_FEAT for do_sve2_fn2i, Peter Maydell, 2022/05/30
- [PULL 054/117] target/arm: Use TRANS_FEAT for do_predset, Peter Maydell, 2022/05/30
- [PULL 056/117] target/arm: Use TRANS_FEAT for do_pfirst_pnext, Peter Maydell, 2022/05/30
- [PULL 068/117] target/arm: Use TRANS_FEAT for SPLICE, Peter Maydell, 2022/05/30
- [PULL 062/117] target/arm: Use TRANS_FEAT for do_zip, do_zip_q, Peter Maydell, 2022/05/30
- [PULL 067/117] target/arm: Use TRANS_FEAT for do_last_general, Peter Maydell, 2022/05/30
- [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 <=
- [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, 2022/05/30
- [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