Skip to content

target/arm, cris, mips: optimize "swap bytes within words"

Aurelien Jarno qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4target/arm: optimize aarch32 rev16target/arm/translate.c+4 -22 replies
2/4target/arm: simplify and optimize aarch64 rev16target/arm/translate-a64.c+6 -182 replies
3/4target/cris: optimize swaptarget/cris/translate.c+7 -82 replies
4/4target/mips: optimize WSBH, DSBH and DSHDtarget/mips/translate.c+12 -61 reply

Reviews trailers per patch

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

PatchPhilippe Mathieu-DaudéRichard Henderson
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4R-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 [Qemu-devel] [PATCH 0/4] target/arm, cris, mips: optimize "swap bytes within words"

This patchset optimizes the "swap bytes within words" instructions on the arm, cris and mips targets. It all started with the patchset from Philippe Mathieu-Daudé optimizing TCG code by using the extract op. Looking at the patch I have found that the aarch64 rev16 function can be optimized even more. Richard Henderson then suggested an even more optimized version.

Aurelien Jarno (4):
target/arm: optimize aarch32 rev16
target/arm: simplify and optimize aarch64 rev16
target/cris: optimize swap
target/mips: optimize WSBH, DSBH and DSHD

 target/arm/translate-a64.c | 24 ++++++------------------
 target/arm/translate.c     |  6 ++++--
 target/cris/translate.c    | 15 +++++++--------
 target/mips/translate.c    | 18 ++++++++++++------
 4 files changed, 29 insertions(+), 34 deletions(-)
Signature · 1 line
2.11.0