Skip to content

Support for generating x86 SIMD test images

Jan Bobek qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest18 patches 30 repliesIn review
  2. v2 RFC13 of 14 patches 24 repliesSuperseded
  3. v1 RFC7 patches 10 repliesSuperseded

Changes in v3 from the cover letter

Too many to be listed individually; this patch series might be better reviewed on its own.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18risugen_common: add helper functions insnv, randintrisugen_common.pm+48 -73 replies
2/18risugen_common: split eval_with_fields into extract_fields and eval_blockrisugen_arm.pm risugen_common.pm risugen_m68k.pm +1 more+48 -310 replies
3/18risugen_x86_asm: add modulerisugen_x86_asm.pm+918 -02 replies
4/18risugen_x86_constraints: add modulerisugen_x86_constraints.pm+154 -04 replies
5/18risugen_x86_memory: add modulerisugen_x86_memory.pm+87 -02 replies
6/18risugen_x86: add modulerisugen_x86.pm+518 -01 reply
7/18risugen: allow all byte-aligned instructionsrisugen+3 -40 replies
8/18risugen: add command-line flag --x86_64risugen+6 -11 reply
9/18risugen: add --xfeatures option for x86risugen+13 -01 reply
10/18x86.risu: add MMX instructionsx86.risu+321 -01 reply
11/18x86.risu: add SSE instructionsx86.risu+318 -02 replies
12/18x86.risu: add SSE2 instructionsx86.risu+734 -02 replies
13/18x86.risu: add SSE3 instructionsx86.risu+50 -01 reply
14/18x86.risu: add SSSE3 instructionsx86.risu+160 -01 reply
15/18x86.risu: add SSE4.1 and SSE4.2 instructionsx86.risu+270 -01 reply
16/18x86.risu: add AES and PCLMULQDQ instructionsx86.risu+45 -01 reply
17/18x86.risu: add AVX instructionsx86.risu+1362 -02 replies
18/18x86.risu: add AVX2 instructionsx86.risu+1239 -02 replies

Reviews trailers per patch

15 of 18 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonAlex Bennée
1/18R-b R-b
2/18
3/18R-b
4/18
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/18

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

Read the v3 thread

Cover letter [Qemu-devel] [RISU PATCH v3 00/18] Support for generating x86 SIMD test images

This is v3 of the patch series posted in [1] and [2]. Note that this is the first fully-featured patch series implementing all desired functionality, including (V)LDMXCSR and VSIB-based instructions like VGATHER*.

While implementing the last bits required in order to support VGATHERx instructions, I ran into problems which required a larger redesign; namely, there are no more !emit blocks as their functionality is now implemented in regular !constraints blocks. Also, memory constraints are specified in !memory blocks, similarly to other architectures.

I tested these changes on my machine; both master and slave modes work in both 32-bit and 64-bit modes.

Cheers,
-Jan

Changes since v2:
Too many to be listed individually; this patch series might be better reviewed on its own.

References:
1. https://lists.nongnu.org/archive/html/qemu-devel/2019-06/msg04123.html
2. https://lists.nongnu.org/archive/html/qemu-devel/2019-07/msg00001.html

Jan Bobek (18):
risugen_common: add helper functions insnv, randint
risugen_common: split eval_with_fields into extract_fields and
eval_block
risugen_x86_asm: add module
risugen_x86_constraints: add module
risugen_x86_memory: add module
risugen_x86: add module
risugen: allow all byte-aligned instructions
risugen: add command-line flag --x86_64
risugen: add --xfeatures option for x86
x86.risu: add MMX instructions
x86.risu: add SSE instructions
x86.risu: add SSE2 instructions
x86.risu: add SSE3 instructions
x86.risu: add SSSE3 instructions
x86.risu: add SSE4.1 and SSE4.2 instructions x86.risu: add AES and PCLMULQDQ instructions x86.risu: add AVX instructions
x86.risu: add AVX2 instructions

 risugen                    |   27 +-
 risugen_arm.pm             |    6 +-
 risugen_common.pm          |  117 +-
 risugen_m68k.pm            |    3 +-
 risugen_ppc64.pm           |    6 +-
 risugen_x86.pm             |  518 +++++
 risugen_x86_asm.pm         |  918 ++++++++
 risugen_x86_constraints.pm |  154 ++
 risugen_x86_memory.pm      |   87 +
 x86.risu                   | 4499 ++++++++++++++++++++++++++++++++++++
 10 files changed, 6293 insertions(+), 42 deletions(-)
 create mode 100644 risugen_x86.pm
 create mode 100644 risugen_x86_asm.pm
 create mode 100644 risugen_x86_constraints.pm
 create mode 100644 risugen_x86_memory.pm
 create mode 100644 x86.risu
Signature · 1 line
2.20.1