[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 22/67] target/arm: Convert FCMP, FCMPE, FCCMP, FCCMPE to deco
From: |
Peter Maydell |
Subject: |
Re: [PATCH 22/67] target/arm: Convert FCMP, FCMPE, FCCMP, FCCMPE to decodetree |
Date: |
Thu, 5 Dec 2024 21:21:27 +0000 |
On Sun, 1 Dec 2024 at 15:17, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> target/arm/tcg/translate-a64.c | 287 +++++++++++++--------------------
> target/arm/tcg/a64.decode | 8 +
> 2 files changed, 116 insertions(+), 179 deletions(-)
> +/* FCMP, FCMPE */
> +static bool trans_FCMP(DisasContext *s, arg_FCMP *a)
> +{
> + int check;
> +
> + if (a->z && a->rm != 0) {
> + return false;
We did not check this case before, and the pseudocode in the
Arm ARM doesn't check it either (there's a comment for the rm
field that says "ignored when opc<0> == '1'").
> + }
> + check = fp_access_check_scalar_hsd(s, a->esz);
> + if (check <= 0) {
> + return check == 0;
> + }
> +
> + handle_fp_compare(s, a->esz, a->rn, a->rm, a->z, a->e);
> + return true;
> +}
Otherwise
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- Re: [PATCH 17/67] target/arm: Convert SETF8, SETF16 to decodetree, (continued)
- [PATCH 18/67] target/arm: Convert CCMP, CCMN to decodetree, Richard Henderson, 2024/12/01
- [PATCH 19/67] target/arm: Convert disas_cond_select to decodetree, Richard Henderson, 2024/12/01
- [PATCH 20/67] target/arm: Introduce fp_access_check_scalar_hsd, Richard Henderson, 2024/12/01
- [PATCH 21/67] target/arm: Introduce fp_access_check_vector_hsd, Richard Henderson, 2024/12/01
- [PATCH 22/67] target/arm: Convert FCMP, FCMPE, FCCMP, FCCMPE to decodetree, Richard Henderson, 2024/12/01
- Re: [PATCH 22/67] target/arm: Convert FCMP, FCMPE, FCCMP, FCCMPE to decodetree,
Peter Maydell <=
- Re: [PATCH 22/67] target/arm: Convert FCMP, FCMPE, FCCMP, FCCMPE to decodetree, Peter Maydell, 2024/12/05
- Re: [PATCH 22/67] target/arm: Convert FCMP, FCMPE, FCCMP, FCCMPE to decodetree, Richard Henderson, 2024/12/05
- [PATCH 23/67] target/arm: Convert FMOV, FABS, FNEG (scalar) to decodetree, Richard Henderson, 2024/12/01
[PATCH 24/67] target/arm: Pass fpstatus to vfp_sqrt*, Richard Henderson, 2024/12/01