[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 23/45] target/arm: Implement SME ADDHA, ADDVA
From: |
Peter Maydell |
Subject: |
Re: [PATCH v5 23/45] target/arm: Implement SME ADDHA, ADDVA |
Date: |
Wed, 6 Jul 2022 17:53:51 +0100 |
On Wed, 6 Jul 2022 at 10:17, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> +void HELPER(sme_addha_s)(void *vzda, void *vzn, void *vpn,
> + void *vpm, uint32_t desc)
> +{
> + intptr_t row, col, oprsz = simd_oprsz(desc) / 4;
> + uint64_t *pn = vpn, *pm = vpm;
> + uint32_t *zda = vzda, *zn = vzn;
> +
> + for (row = 0; row < oprsz; ) {
> + uint64_t pa = pn[row >> 4];
> + do {
> + if (pa & 1) {
> + for (col = 0; col < oprsz; ) {
> + uint64_t pb = pm[col >> 4];
> + do {
> + if (pb & 1) {
> + zda[tile_vslice_index(row) + col] += zn[col];
Doesn't this need some H macros to handle the bigendian case?
We process the predicate from architecturally least to most
significant, but because zda is a uint32_t* we don't handle
that in the same order I think. Similarly sme_addva_s().
> + }
> + pb >>= 4;
> + } while (++col & 15);
> + }
> + }
> + pa >>= 4;
> + } while (++row & 15);
> + }
> +}
Otherwise
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
- [PATCH v5 11/45] target/arm: Mark gather/scatter load/store as non-streaming, (continued)
- [PATCH v5 11/45] target/arm: Mark gather/scatter load/store as non-streaming, Richard Henderson, 2022/07/06
- [PATCH v5 15/45] target/arm: Add SME enablement checks, Richard Henderson, 2022/07/06
- [PATCH v5 14/45] target/arm: Mark LD1RO as non-streaming, Richard Henderson, 2022/07/06
- [PATCH v5 10/45] target/arm: Mark string/histo/crypto as non-streaming, Richard Henderson, 2022/07/06
- [PATCH v5 17/45] target/arm: Implement SME RDSVL, ADDSVL, ADDSPL, Richard Henderson, 2022/07/06
- [PATCH v5 20/45] target/arm: Implement SME LD1, ST1, Richard Henderson, 2022/07/06
- [PATCH v5 21/45] target/arm: Export unpredicated ld/st from translate-sve.c, Richard Henderson, 2022/07/06
- [PATCH v5 22/45] target/arm: Implement SME LDR, STR, Richard Henderson, 2022/07/06
- [PATCH v5 23/45] target/arm: Implement SME ADDHA, ADDVA, Richard Henderson, 2022/07/06
- Re: [PATCH v5 23/45] target/arm: Implement SME ADDHA, ADDVA,
Peter Maydell <=
- [PATCH v5 18/45] target/arm: Implement SME ZERO, Richard Henderson, 2022/07/06
- [PATCH v5 19/45] target/arm: Implement SME MOVA, Richard Henderson, 2022/07/06
- [PATCH v5 26/45] target/arm: Implement FMOPA, FMOPS (widening), Richard Henderson, 2022/07/06
- [PATCH v5 24/45] target/arm: Implement FMOPA, FMOPS (non-widening), Richard Henderson, 2022/07/06
- [PATCH v5 27/45] target/arm: Implement SME integer outer product, Richard Henderson, 2022/07/06
- [PATCH v5 29/45] target/arm: Implement REVD, Richard Henderson, 2022/07/06