[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 105/114] target/arm: Use TRANS_FEAT for DO_FPCMP
From: |
Richard Henderson |
Subject: |
[PATCH 105/114] target/arm: Use TRANS_FEAT for DO_FPCMP |
Date: |
Fri, 27 May 2022 11:18:58 -0700 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/translate-sve.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index e2ae387d62..886cf539a5 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -3970,14 +3970,11 @@ static bool do_fp_cmp(DisasContext *s, arg_rprr_esz *a,
}
#define DO_FPCMP(NAME, name) \
-static bool trans_##NAME##_ppzz(DisasContext *s, arg_rprr_esz *a) \
-{ \
- static gen_helper_gvec_4_ptr * const fns[4] = { \
+ static gen_helper_gvec_4_ptr * const name##_fns[4] = { \
NULL, gen_helper_sve_##name##_h, \
gen_helper_sve_##name##_s, gen_helper_sve_##name##_d \
}; \
- return do_fp_cmp(s, a, fns[a->esz]); \
-}
+ TRANS_FEAT(NAME##_ppzz, aa64_sve, do_fp_cmp, a, name##_fns[a->esz])
DO_FPCMP(FCMGE, fcmge)
DO_FPCMP(FCMGT, fcmgt)
--
2.34.1
- [PATCH 094/114] target/arm: Move null function and sve check into do_frint_mode, (continued)
- [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, 2022/05/27
- [PATCH 105/114] target/arm: Use TRANS_FEAT for DO_FPCMP,
Richard Henderson <=
- [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