Skip to content

s390x/tcg: Vector Instruction Support Part 3

David Hildenbrand qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 8 repliesIn review
  2. v15 patches 21 repliesSuperseded

Changes in v2 from the cover letter

- Use the fancy bit-tricks from Richard to rewrite most string instructions
- Create specialized variants for "VECTOR STRING RANGE COMPARE", so the compiler can optimize out the rt/!rt handling code.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5s390x/tcg: Implement VECTOR FIND ANY ELEMENT EQUALtarget/s390x/Makefile.objs target/s390x/helper.h target/s390x/insn-data.def +2 more+198 -11 reply
2/5s390x/tcg: Implement VECTOR FIND ELEMENT EQUALtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/translate_vx.inc.c +1 more+96 -01 reply
3/5s390x/tcg: Implement VECTOR FIND ELEMENT NOT EQUALtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/translate_vx.inc.c +2 more+132 -04 replies
4/5s390x/tcg: Implement VECTOR ISOLATE STRINGtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/translate_vx.inc.c +1 more+87 -01 reply
5/5s390x/tcg: Implement VECTOR STRING RANGE COMPAREtarget/s390x/helper.h target/s390x/insn-data.def target/s390x/translate_vx.inc.c +2 more+237 -01 reply

Reviews trailers per patch

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

PatchRichard Henderson
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-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 [Qemu-devel] [PATCH v2 0/5] s390x/tcg: Vector Instruction Support Part 3

This is the third part of vector instruction support for s390x. It is based on part 2, which is will send a pull-request for to Conny soon.

Part 1: Vector Support Instructions
Part 2: Vector Integer Instructions
Part 3: Vector String Instructions
Part 4: Vector Floating-Point Instructions

The current state can be found at (kept updated):
https://github.com/davidhildenbrand/qemu/tree/vx

With the current state I can boot Linux kernel + user space compiled with SIMD support. This allows to boot distributions compiled exclusively for z13, requiring SIMD support. Also, it is now possible to build a complete kernel using rpmbuild as quite some issues have been sorted out.

In this part, all Vector String Instructions introduced with the "Vector Facility" are added.

v1 -> v2:
- Use the fancy bit-tricks from Richard to rewrite most string instructions
- Create specialized variants for "VECTOR STRING RANGE COMPARE", so the compiler can optimize out the rt/!rt handling code.

David Hildenbrand (5):
s390x/tcg: Implement VECTOR FIND ANY ELEMENT EQUAL s390x/tcg: Implement VECTOR FIND ELEMENT EQUAL s390x/tcg: Implement VECTOR FIND ELEMENT NOT EQUAL s390x/tcg: Implement VECTOR ISOLATE STRING s390x/tcg: Implement VECTOR STRING RANGE COMPARE

 target/s390x/Makefile.objs       |   2 +-
 target/s390x/helper.h            |  38 +++
 target/s390x/insn-data.def       |  13 +
 target/s390x/translate_vx.inc.c  | 185 ++++++++++++
 target/s390x/vec.h               |  40 +++
 target/s390x/vec_string_helper.c | 473 +++++++++++++++++++++++++++++++
 6 files changed, 750 insertions(+), 1 deletion(-)
 create mode 100644 target/s390x/vec_string_helper.c
Signature · 1 line
2.20.1