[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 6/8] target/arm: Prepare bfdotadd() callers for FEAT_EBF supp
From: |
Peter Maydell |
Subject: |
Re: [PATCH 6/8] target/arm: Prepare bfdotadd() callers for FEAT_EBF support |
Date: |
Wed, 31 Jul 2024 13:32:20 +0100 |
On Wed, 31 Jul 2024 at 02:48, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> On 7/31/24 02:03, Peter Maydell wrote:
> > @@ -2790,7 +2790,7 @@ DO_MMLA_B(gvec_usmmla_b, do_usmmla_b)
> > * BFloat16 Dot Product
> > */
> >
> > -float32 bfdotadd(float32 sum, uint32_t e1, uint32_t e2)
> > +bool is_ebf(CPUARMState *env, float_status *statusp, float_status
> > *oddstatusp)
> > {
> > /* FPCR is ignored for BFDOT and BFMMLA. */
> > float_status bf_status = {
> > @@ -2800,29 +2800,50 @@ float32 bfdotadd(float32 sum, uint32_t e1, uint32_t
> > e2)
> > .flush_inputs_to_zero = true,
> > .default_nan_mode = true,
> > };
> > +
> > + *statusp = bf_status;
> > + return false;
> > +}
>
> Looking at the next patch, I think dropping the local variable is better.
>
> *statusp = (float_status){
> ...
> };
Yes, I agree; I've updated this patch and the next accordingly.
-- PMM
- [PATCH 3/8] target/arm: Pass env pointer through to gvec_bfdot helper, (continued)
- [PATCH 3/8] target/arm: Pass env pointer through to gvec_bfdot helper, Peter Maydell, 2024/07/30
- [PATCH 4/8] target/arm: Pass env pointer through to gvec_bfdot_idx helper, Peter Maydell, 2024/07/30
- [PATCH 5/8] target/arm: Pass env pointer through to gvec_bfmmla helper, Peter Maydell, 2024/07/30
- [PATCH 6/8] target/arm: Prepare bfdotadd() callers for FEAT_EBF support, Peter Maydell, 2024/07/30
- [PATCH 7/8] target/arm: Implement FPCR.EBF=1 semantics for bfdotadd(), Peter Maydell, 2024/07/30
- [PATCH 8/8] target/arm: Enable FEAT_EBF16 in the "max" CPU, Peter Maydell, 2024/07/30