Skip to content

target/arm vector improvements

Richard Henderson qemu-arm qemu-devel 2 versions – Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v14 patches 9 repliesSuperseded

Changes in v2 from the cover letter

* Rename function arguments as requested by ajb.
* Minor optimization in helper_gvec_pmul_b.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4target/arm: Vectorize USHL and SSHLtarget/arm/helper.h target/arm/neon_helper.c target/arm/translate-a64.c +3 more+389 -660 replies
2/4target/arm: Convert PMUL.8 to gvectarget/arm/helper.h target/arm/neon_helper.c target/arm/translate-a64.c +2 more+39 -370 replies
3/4target/arm: Convert PMULL.64 to gvectarget/arm/helper.h target/arm/neon_helper.c target/arm/translate-a64.c +2 more+39 -720 replies
4/4target/arm: Convert PMULL.8 to gvectarget/arm/helper-sve.h target/arm/helper.h target/arm/neon_helper.c +3 more+95 -550 replies

Reviews trailers per patch

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

PatchAlex Bennée
1/4R-b
2/4T-b R-b
3/4T-b R-b
4/4T-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] target/arm vector improvements

Changes for v2:

* Rename function arguments as requested by ajb.
* Minor optimization in helper_gvec_pmul_b.

Original blurb:

The first patch has been seen before.

https://patchwork.ozlabs.org/patch/1115039/

It had a bug and I didn't fix it right away and then forgot. Fixed now; I had mixed up the operand ordering for aarch32.

The next 3 are something that I noticed while doing other stuff.

In particular, pmull is used heavily during https transfers. While cloning a repository, the old code peaks at 27% of the total runtime, as measured by perf top. The new code does not quite reach 3% repeating the same clone.

In addition, the new helper functions are in the form that will be required for the implementation of SVE2.

r~

Richard Henderson (4):
target/arm: Vectorize USHL and SSHL
target/arm: Convert PMUL.8 to gvec
target/arm: Convert PMULL.64 to gvec
target/arm: Convert PMULL.8 to gvec

 target/arm/helper-sve.h    |   2 +
 target/arm/helper.h        |  21 ++-
 target/arm/translate.h     |   6 +
 target/arm/neon_helper.c   | 117 -------------
 target/arm/translate-a64.c |  83 ++++-----
 target/arm/translate.c     | 348 ++++++++++++++++++++++++++++++++-----
 target/arm/vec_helper.c    | 211 ++++++++++++++++++++++
 7 files changed, 560 insertions(+), 228 deletions(-)
Signature · 1 line
2.20.1