Skip to content

target/arm: Convert Neon 3-reg-diff to decodetree

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7target/arm: Fix missing temp frees in do_vshll_2shtarget/arm/translate-neon.inc.c+2 -02 replies
2/7target/arm: Convert Neon 3-reg-diff prewidening ops to decodetreetarget/arm/neon-dp.decode target/arm/translate-neon.inc.c target/arm/translate.c+151 -121 reply
3/7target/arm: Convert Neon 3-reg-diff narrowing ops to decodetreetarget/arm/neon-dp.decode target/arm/translate-neon.inc.c target/arm/translate.c+104 -801 reply
4/7target/arm: Convert Neon 3-reg-diff VABAL, VABDL to decodetreetarget/arm/neon-dp.decode target/arm/translate-neon.inc.c target/arm/translate.c +1 more+142 -281 reply
5/7target/arm: Convert Neon 3-reg-diff long multipliestarget/arm/neon-dp.decode target/arm/translate-neon.inc.c target/arm/translate.c+86 -151 reply
6/7target/arm: Convert Neon 3-reg-diff saturating doubling multipliestarget/arm/neon-dp.decode target/arm/translate-neon.inc.c target/arm/translate.c+92 -551 reply
7/7target/arm: Convert Neon 3-reg-diff polynomial VMULLtarget/arm/neon-dp.decode target/arm/translate-neon.inc.c target/arm/translate.c+48 -571 reply

Reviews trailers per patch

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

PatchRichard HendersonPhilippe Mathieu-Daudé
1/7R-b R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-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 0/7] target/arm: Convert Neon 3-reg-diff to decodetree

This patchset converts the Neon insns in the "3 registers of different lengths" group to decodetree. Patch 1 is a bugfix for an earlier part of the conversion that's now in master.

I'm definitely finding that the new decodetree version of Neon is often easier to understand because we no longer try to accommodate multiple different kinds of widening/narrowing/etc insns in a single multi-pass loop: expanding out the loop and specializing it to the particular insn type helps a lot. (Or maybe it's just that having to read the old code and write the new version means I understand it better ;-))

Based-on: id:[email protected] ("[PATCH v3 0/9] decodetree: Add non-overlapping groups") because we use the new group syntax to set up the structure for the "size==0b11" vs "size!=0b11" decode which we'll fill in in subsequent patchsets.

thanks
-- PMM

Peter Maydell (7):
target/arm: Fix missing temp frees in do_vshll_2sh target/arm: Convert Neon 3-reg-diff prewidening ops to decodetree target/arm: Convert Neon 3-reg-diff narrowing ops to decodetree target/arm: Convert Neon 3-reg-diff VABAL, VABDL to decodetree target/arm: Convert Neon 3-reg-diff long multiplies target/arm: Convert Neon 3-reg-diff saturating doubling multiplies target/arm: Convert Neon 3-reg-diff polynomial VMULL

 target/arm/translate.h          |   1 +
 target/arm/neon-dp.decode       |  72 +++++
 target/arm/translate-neon.inc.c | 521 ++++++++++++++++++++++++++++++++
 target/arm/translate.c          | 222 +-------------
 4 files changed, 597 insertions(+), 219 deletions(-)
Signature · 1 line
2.20.1