qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v6 73/82] target/arm: Implement SVE2 fp multiply-add long


From: Peter Maydell
Subject: Re: [PATCH v6 73/82] target/arm: Implement SVE2 fp multiply-add long
Date: Thu, 13 May 2021 18:04:14 +0100

On Fri, 30 Apr 2021 at 22:19, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> From: Stephen Long <steplong@quicinc.com>
>
> Implements both vectored and indexed FMLALB, FMLALT, FMLSLB, FMLSLT
>
> Signed-off-by: Stephen Long <steplong@quicinc.com>
> Message-Id: <20200504171240.11220-1-steplong@quicinc.com>
> [rth: Rearrange to use float16_to_float32_by_bits.]
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>  target/arm/helper.h        |  5 +++
>  target/arm/sve.decode      | 14 +++++++
>  target/arm/translate-sve.c | 75 ++++++++++++++++++++++++++++++++++++++
>  target/arm/vec_helper.c    | 51 ++++++++++++++++++++++++++
>  4 files changed, 145 insertions(+)
>

> diff --git a/target/arm/vec_helper.c b/target/arm/vec_helper.c
> index 9b2a4d5b7e..ea08b15c55 100644
> --- a/target/arm/vec_helper.c
> +++ b/target/arm/vec_helper.c
> @@ -29,10 +29,14 @@
>     so addressing units smaller than that needs a host-endian fixup.  */
>  #ifdef HOST_WORDS_BIGENDIAN
>  #define H1(x)  ((x) ^ 7)
> +#define H1_2(x) ((x) ^ 6)
> +#define H1_4(x) ((x) ^ 4)
>  #define H2(x)  ((x) ^ 3)
>  #define H4(x)  ((x) ^ 1)
>  #else
>  #define H1(x)  (x)
> +#define H1_2(x) (x)
> +#define H1_4(x) (x)
>  #define H2(x)  (x)
>  #define H4(x)  (x)
>  #endif

We now have a full set of these macros in vec_helper.c and sve_helper.c,
and I'm going to need them in the MVE mve_helper.c too. This seems like
a good point to pull them out into a suitable header file and add a
documentation comment that makes it clear what they're for (cf comment
on previous patch).

Otherwise
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]