Skip to content

target/arm: Second slice of MVE implementation

Peter Maydell qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18target/arm: Fix MVE widening/narrowing VLDR/VSTR offset calculationtarget/arm/translate-mve.c+9 -81 reply
2/18target/arm: Fix bugs in MVE VRMLALDAVH, VRMLSLDAVHtarget/arm/mve_helper.c+21 -171 reply
3/18target/arm: Make asimd_imm_const() publictarget/arm/translate-neon.c target/arm/translate.c target/arm/translate.h+73 -631 reply
4/18target/arm: Use asimd_imm_const for A64 decodetarget/arm/translate-a64.c target/arm/translate.c target/arm/translate.h+24 -822 replies
5/18target/arm: Use dup_const() instead of bitfield_replicate()target/arm/translate-a64.c+1 -11 reply
6/18target/arm: Implement MVE logical immediate insnstarget/arm/helper-mve.h target/arm/mve.decode target/arm/mve_helper.c +1 more+95 -01 reply
7/18target/arm: Implement MVE vector shift left by immediate insnstarget/arm/helper-mve.h target/arm/mve.decode target/arm/mve_helper.c +1 more+147 -01 reply
8/18target/arm: Implement MVE vector shift right by immediate insnstarget/arm/helper-mve.h target/arm/mve.decode target/arm/mve_helper.c +3 more+72 -181 reply
9/18target/arm: Implement MVE VSHLLtarget/arm/helper-mve.h target/arm/mve.decode target/arm/mve_helper.c +1 more+105 -41 reply
10/18target/arm: Implement MVE VSRI, VSLItarget/arm/helper-mve.h target/arm/mve.decode target/arm/mve_helper.c +1 more+62 -01 reply
11/18target/arm: Implement MVE VSHRN, VRSHRNtarget/arm/helper-mve.h target/arm/mve.decode target/arm/mve_helper.c +1 more+76 -01 reply
12/18target/arm: Implement MVE saturating narrowing shiftstarget/arm/helper-mve.h target/arm/mve.decode target/arm/mve_helper.c +1 more+174 -01 reply
13/18target/arm: Implement MVE VSHLCtarget/arm/helper-mve.h target/arm/mve.decode target/arm/mve_helper.c +1 more+72 -01 reply
14/18target/arm: Implement MVE VADDLVtarget/arm/helper-mve.h target/arm/mve.decode target/arm/mve_helper.c +1 more+90 -11 reply
15/18target/arm: Implement MVE long shifts by immediatetarget/arm/helper-mve.h target/arm/mve_helper.c target/arm/t32.decode +2 more+130 -04 replies
16/18target/arm: Implement MVE long shifts by registertarget/arm/helper-mve.h target/arm/mve_helper.c target/arm/t32.decode +2 more+182 -31 reply
17/18target/arm: Implement MVE shifts by immediatetarget/arm/helper-mve.h target/arm/mve_helper.c target/arm/t32.decode +2 more+88 -21 reply
18/18target/arm: Implement MVE shifts by registertarget/arm/helper-mve.h target/arm/mve_helper.c target/arm/t32.decode +2 more+48 -01 reply

Reviews trailers per patch

All 18 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/18R-b
2/18R-b
3/18R-b
4/18R-b
5/18R-b
6/18R-b
7/18R-b
8/18R-b
9/18R-b
10/18R-b
11/18R-b
12/18R-b
13/18R-b
14/18R-b
15/18R-b
16/18R-b
17/18R-b
18/18R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/18] target/arm: Second slice of MVE implementation

This patchseries provides the second slice of the MVE implementation. In this series:
* fixes for bugs in a couple of the insns committed to upstream as part of the first slice
* the logical immediate insns (including a preliminary refactoring to share the asimd_imm_const() decode between Neon, A64 and MVE)
* some vector shifts
* all the new MVE shift instructions which sit entirely within the non-coprocessor part of the encoding space and operate only on general purpose registers (either 32-bit shifts of one register, or 64-bit shifts of a register pair). These insns are not predicable and not subject to beatwise execution.
* VADDLV (add long across vector)
* VSHLC (shift left entire vector with carry in and out)

(I haven't yet got to the shift-vector-by-scalar-in-register shift insns yet; those will be in some future patchset.)

This is a bit smaller than the first slice patchseries was, but softfreeze is approaching and I wanted to give this the best chance of getting through code review before then. (Not that it matters much if it doesn't, it just means I would be carrying more patches locally until we reopen for 6.2.)

thanks
-- PMM

Peter Maydell (18):
target/arm: Fix MVE widening/narrowing VLDR/VSTR offset calculation target/arm: Fix bugs in MVE VRMLALDAVH, VRMLSLDAVH target/arm: Make asimd_imm_const() public
target/arm: Use asimd_imm_const for A64 decode target/arm: Use dup_const() instead of bitfield_replicate() target/arm: Implement MVE logical immediate insns target/arm: Implement MVE vector shift left by immediate insns target/arm: Implement MVE vector shift right by immediate insns target/arm: Implement MVE VSHLL
target/arm: Implement MVE VSRI, VSLI
target/arm: Implement MVE VSHRN, VRSHRN
target/arm: Implement MVE saturating narrowing shifts target/arm: Implement MVE VSHLC
target/arm: Implement MVE VADDLV
target/arm: Implement MVE long shifts by immediate target/arm: Implement MVE long shifts by register target/arm: Implement MVE shifts by immediate target/arm: Implement MVE shifts by register

 target/arm/helper-mve.h     | 108 ++++++++
 target/arm/translate.h      |  41 +++
 target/arm/mve.decode       | 177 +++++++++++-
 target/arm/t32.decode       |  55 +++-
 target/arm/mve_helper.c     | 524 ++++++++++++++++++++++++++++++++++--
 target/arm/translate-a64.c  |  86 +-----
 target/arm/translate-mve.c  | 261 +++++++++++++++++-
 target/arm/translate-neon.c |  81 ------
 target/arm/translate.c      | 327 +++++++++++++++++++++-
 9 files changed, 1465 insertions(+), 195 deletions(-)
Signature · 1 line
2.20.1