[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 111/114] target/arm: Use TRANS_FEAT for do_FMLAL_zzzw
From: |
Richard Henderson |
Subject: |
[PATCH 111/114] target/arm: Use TRANS_FEAT for do_FMLAL_zzzw |
Date: |
Fri, 27 May 2022 11:19:04 -0700 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/translate-sve.c | 26 ++++----------------------
1 file changed, 4 insertions(+), 22 deletions(-)
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index 44af7530b6..57bff0d345 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -7149,33 +7149,15 @@ TRANS_FEAT(FLOGB, aa64_sve2, gen_gvec_fpst_arg_zpz,
flogb_fns[a->esz],
static bool do_FMLAL_zzzw(DisasContext *s, arg_rrrr_esz *a, bool sub, bool sel)
{
- if (!dc_isar_feature(aa64_sve2, s)) {
- return false;
- }
return gen_gvec_ptr_zzzz(s, gen_helper_sve2_fmlal_zzzw_s,
a->rd, a->rn, a->rm, a->ra,
(sel << 1) | sub, cpu_env);
}
-static bool trans_FMLALB_zzzw(DisasContext *s, arg_rrrr_esz *a)
-{
- return do_FMLAL_zzzw(s, a, false, false);
-}
-
-static bool trans_FMLALT_zzzw(DisasContext *s, arg_rrrr_esz *a)
-{
- return do_FMLAL_zzzw(s, a, false, true);
-}
-
-static bool trans_FMLSLB_zzzw(DisasContext *s, arg_rrrr_esz *a)
-{
- return do_FMLAL_zzzw(s, a, true, false);
-}
-
-static bool trans_FMLSLT_zzzw(DisasContext *s, arg_rrrr_esz *a)
-{
- return do_FMLAL_zzzw(s, a, true, true);
-}
+TRANS_FEAT(FMLALB_zzzw, aa64_sve2, do_FMLAL_zzzw, a, false, false)
+TRANS_FEAT(FMLALT_zzzw, aa64_sve2, do_FMLAL_zzzw, a, false, true)
+TRANS_FEAT(FMLSLB_zzzw, aa64_sve2, do_FMLAL_zzzw, a, true, false)
+TRANS_FEAT(FMLSLT_zzzw, aa64_sve2, do_FMLAL_zzzw, a, true, true)
static bool do_FMLAL_zzxw(DisasContext *s, arg_rrxr_esz *a, bool sub, bool sel)
{
--
2.34.1
- [PATCH 095/114] target/arm: Use TRANS_FEAT for do_frint_mode, (continued)
- [PATCH 095/114] target/arm: Use TRANS_FEAT for do_frint_mode, Richard Henderson, 2022/05/27
- [PATCH 094/114] target/arm: Move null function and sve check into do_frint_mode, Richard Henderson, 2022/05/27
- [PATCH 101/114] target/arm: Introduce gen_gvec_fpst_zzzzp, Richard Henderson, 2022/05/27
- [PATCH 102/114] target/arm: Use TRANS_FEAT for gen_gvec_fpst_zzzzp, Richard Henderson, 2022/05/27
- [PATCH 096/114] target/arm: Use TRANS_FEAT for FLOGB, Richard Henderson, 2022/05/27
- [PATCH 108/114] target/arm: Use TRANS_FEAT for do_narrow_extract, Richard Henderson, 2022/05/27
- [PATCH 104/114] target/arm: Use TRANS_FEAT for DO_FP_IMM, Richard Henderson, 2022/05/27
- [PATCH 106/114] target/arm: Remove assert in trans_FCMLA_zzxz, Richard Henderson, 2022/05/27
- [PATCH 103/114] target/arm: Move null function and sve check into do_fp_imm, Richard Henderson, 2022/05/27
- [PATCH 110/114] target/arm: Use TRANS_FEAT for do_shr_narrow, Richard Henderson, 2022/05/27
- [PATCH 111/114] target/arm: Use TRANS_FEAT for do_FMLAL_zzzw,
Richard Henderson <=
- [PATCH 105/114] target/arm: Use TRANS_FEAT for DO_FPCMP, Richard Henderson, 2022/05/27
- [PATCH 109/114] target/arm: Use TRANS_FEAT for do_shll_tb, Richard Henderson, 2022/05/27
- [PATCH 112/114] target/arm: Use TRANS_FEAT for do_FMLAL_zzxw, Richard Henderson, 2022/05/27
- [PATCH 099/114] target/arm: Use TRANS_FEAT for gen_gvec_fpst_arg_zpzz, Richard Henderson, 2022/05/27
- [PATCH 113/114] target/arm: Add sve feature check for remaining trans_* functions, Richard Henderson, 2022/05/27
- [PATCH 114/114] target/arm: Remove aa64_sve check from before disas_sve, Richard Henderson, 2022/05/27
- [PATCH 107/114] target/arm: Use TRANS_FEAT for FCMLA_zzxz, Richard Henderson, 2022/05/27
- Re: [PATCH 000/114] target/arm: Rewrite sve feature tests, Peter Maydell, 2022/05/30