[Qemu-devel] [PATCH v6 0/8] target/mips: Improve MSA TCG tests

Aleksandar Markovic posted 8 patches 4 years, 10 months ago
Test docker-clang@ubuntu passed
Test s390x failed
Test asan passed
Test docker-mingw@fedora passed
Test FreeBSD passed
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1561543629-20327-1-git-send-email-aleksandar.markovic@rt-rk.com
Maintainers: Aleksandar Rikalo <arikalo@wavecomp.com>, Aleksandar Markovic <amarkovic@wavecomp.com>, Aurelien Jarno <aurelien@aurel32.net>
target/mips/msa_helper.c                           |  24 +-
tests/tcg/mips/include/wrappers_msa.h              |  96 +++-
.../mips/user/ase/msa/bit-move/test_msa_binsl_b.c  | 214 +++++++
.../mips/user/ase/msa/bit-move/test_msa_binsl_d.c  | 214 +++++++
.../mips/user/ase/msa/bit-move/test_msa_binsl_h.c  | 214 +++++++
.../mips/user/ase/msa/bit-move/test_msa_binsl_w.c  | 214 +++++++
.../mips/user/ase/msa/bit-move/test_msa_binsr_b.c  | 214 +++++++
.../mips/user/ase/msa/bit-move/test_msa_binsr_d.c  | 214 +++++++
.../mips/user/ase/msa/bit-move/test_msa_binsr_h.c  | 214 +++++++
.../mips/user/ase/msa/bit-move/test_msa_binsr_w.c  | 214 +++++++
.../mips/user/ase/msa/bit-move/test_msa_bmnz_v.c   | 214 +++++++
.../mips/user/ase/msa/bit-move/test_msa_bmz_v.c    | 214 +++++++
.../mips/user/ase/msa/bit-move/test_msa_bsel_v.c   | 214 +++++++
.../ase/msa/int-dot-product/test_msa_dpadd_s_d.c   | 214 +++++++
.../ase/msa/int-dot-product/test_msa_dpadd_s_h.c   | 214 +++++++
.../ase/msa/int-dot-product/test_msa_dpadd_s_w.c   | 214 +++++++
.../ase/msa/int-dot-product/test_msa_dpadd_u_d.c   | 214 +++++++
.../ase/msa/int-dot-product/test_msa_dpadd_u_h.c   | 214 +++++++
.../ase/msa/int-dot-product/test_msa_dpadd_u_w.c   | 214 +++++++
.../ase/msa/int-dot-product/test_msa_dpsub_s_d.c   | 214 +++++++
.../ase/msa/int-dot-product/test_msa_dpsub_s_h.c   | 214 +++++++
.../ase/msa/int-dot-product/test_msa_dpsub_s_w.c   | 214 +++++++
.../ase/msa/int-dot-product/test_msa_dpsub_u_d.c   | 214 +++++++
.../ase/msa/int-dot-product/test_msa_dpsub_u_h.c   | 214 +++++++
.../ase/msa/int-dot-product/test_msa_dpsub_u_w.c   | 214 +++++++
.../user/ase/msa/int-multiply/test_msa_maddv_b.c   | 214 +++++++
.../user/ase/msa/int-multiply/test_msa_maddv_d.c   | 214 +++++++
.../user/ase/msa/int-multiply/test_msa_maddv_h.c   | 214 +++++++
.../user/ase/msa/int-multiply/test_msa_maddv_w.c   | 214 +++++++
.../user/ase/msa/int-multiply/test_msa_msubv_b.c   | 214 +++++++
.../user/ase/msa/int-multiply/test_msa_msubv_d.c   | 214 +++++++
.../user/ase/msa/int-multiply/test_msa_msubv_h.c   | 214 +++++++
.../user/ase/msa/int-multiply/test_msa_msubv_w.c   | 214 +++++++
tests/tcg/mips/user/ase/msa/move/test_msa_move_v.c | 149 +++++
.../tcg/mips/user/ase/msa/pack/test_msa_pckev_b.c  |  64 +--
.../tcg/mips/user/ase/msa/pack/test_msa_pckev_d.c  |  64 +--
.../tcg/mips/user/ase/msa/pack/test_msa_pckev_h.c  |  64 +--
.../tcg/mips/user/ase/msa/pack/test_msa_pckev_w.c  |  64 +--
.../tcg/mips/user/ase/msa/pack/test_msa_pckod_b.c  |  64 +--
.../tcg/mips/user/ase/msa/pack/test_msa_pckod_d.c  |  64 +--
.../tcg/mips/user/ase/msa/pack/test_msa_pckod_h.c  |  64 +--
.../tcg/mips/user/ase/msa/pack/test_msa_pckod_w.c  |  64 +--
tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_b.c |  64 +--
tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_d.c |  64 +--
tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_h.c |  64 +--
tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_w.c |  64 +--
.../mips/user/ase/msa/test_msa_compile_32r6eb.sh   | 627 +++++++++++++++++++++
.../mips/user/ase/msa/test_msa_compile_32r6el.sh   | 627 +++++++++++++++++++++
.../mips/user/ase/msa/test_msa_compile_64r6eb.sh   | 627 +++++++++++++++++++++
...t_msa_compile.sh => test_msa_compile_64r6el.sh} | 561 ++++++++++--------
tests/tcg/mips/user/ase/msa/test_msa_run.sh        | 326 -----------
tests/tcg/mips/user/ase/msa/test_msa_run_32r6eb.sh | 363 ++++++++++++
tests/tcg/mips/user/ase/msa/test_msa_run_32r6el.sh | 363 ++++++++++++
tests/tcg/mips/user/ase/msa/test_msa_run_64r6eb.sh | 363 ++++++++++++
tests/tcg/mips/user/ase/msa/test_msa_run_64r6el.sh | 363 ++++++++++++
55 files changed, 10919 insertions(+), 972 deletions(-)
create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsl_b.c
create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsl_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsl_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsl_w.c
create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsr_b.c
create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsr_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsr_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsr_w.c
create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_bmnz_v.c
create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_bmz_v.c
create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_bsel_v.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpadd_s_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpadd_s_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpadd_s_w.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpadd_u_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpadd_u_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpadd_u_w.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpsub_s_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpsub_s_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpsub_s_w.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpsub_u_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpsub_u_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpsub_u_w.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_maddv_b.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_maddv_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_maddv_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_maddv_w.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_msubv_b.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_msubv_d.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_msubv_h.c
create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_msubv_w.c
create mode 100644 tests/tcg/mips/user/ase/msa/move/test_msa_move_v.c
create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_compile_32r6eb.sh
create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_compile_32r6el.sh
create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_compile_64r6eb.sh
rename tests/tcg/mips/user/ase/msa/{test_msa_compile.sh => test_msa_compile_64r6el.sh} (77%)
delete mode 100755 tests/tcg/mips/user/ase/msa/test_msa_run.sh
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_run_32r6eb.sh
create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_run_32r6el.sh
create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_run_64r6eb.sh
create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_run_64r6el.sh
[Qemu-devel] [PATCH v6 0/8] target/mips: Improve MSA TCG tests
Posted by Aleksandar Markovic 4 years, 10 months ago
From: Aleksandar Markovic <amarkovic@wavecomp.com>

This series contains various improvements and additions of MSA ASE
TCG tests.

v5->v6:

  - fixed bad values for some test cases of pack instructions
  - fixex big endian host behavior for interleave instructions

v4->v5:

  - added patch on MIPS32R6 support
  - amended other patches

v3->v4:

  - patches 1 and 2 from v3 got reviewed and integrated into upstream,
    so they are now removed in v4
  - added tests for MSA int multiply instructions
  - added support for MSA big-endian target testings
  - amend4ed remainign patches
  - rebased to the latest code

v2->v3:

  - added some tests from move group
  - added some tests from int dot product group
  - completed tests from bit move group

v1->v2:

  - added some tests from bit move group
  - improved and updated commit messages


Aleksandar Markovic (8):
  tests/tcg: target/mips: Add tests for MSA bit move instructions
  tests/tcg: target/mips: Add tests for MSA move instructions
  tests/tcg: target/mips: Amend tests for MSA int dot product
    instructions
  tests/tcg: target/mips: Amend tests for MSA int multiply instructions
  tests/tcg: target/mips: Add support for MSA big-endian target testings
  tests/tcg: target/mips: Add support for MSA MIPS32R6 testings
  tests/tcg: target/mips: Fix some test cases for pack MSA instructions
  target/mips: Fix big endian host behavior for interleave MSA
    instructions

 target/mips/msa_helper.c                           |  24 +-
 tests/tcg/mips/include/wrappers_msa.h              |  96 +++-
 .../mips/user/ase/msa/bit-move/test_msa_binsl_b.c  | 214 +++++++
 .../mips/user/ase/msa/bit-move/test_msa_binsl_d.c  | 214 +++++++
 .../mips/user/ase/msa/bit-move/test_msa_binsl_h.c  | 214 +++++++
 .../mips/user/ase/msa/bit-move/test_msa_binsl_w.c  | 214 +++++++
 .../mips/user/ase/msa/bit-move/test_msa_binsr_b.c  | 214 +++++++
 .../mips/user/ase/msa/bit-move/test_msa_binsr_d.c  | 214 +++++++
 .../mips/user/ase/msa/bit-move/test_msa_binsr_h.c  | 214 +++++++
 .../mips/user/ase/msa/bit-move/test_msa_binsr_w.c  | 214 +++++++
 .../mips/user/ase/msa/bit-move/test_msa_bmnz_v.c   | 214 +++++++
 .../mips/user/ase/msa/bit-move/test_msa_bmz_v.c    | 214 +++++++
 .../mips/user/ase/msa/bit-move/test_msa_bsel_v.c   | 214 +++++++
 .../ase/msa/int-dot-product/test_msa_dpadd_s_d.c   | 214 +++++++
 .../ase/msa/int-dot-product/test_msa_dpadd_s_h.c   | 214 +++++++
 .../ase/msa/int-dot-product/test_msa_dpadd_s_w.c   | 214 +++++++
 .../ase/msa/int-dot-product/test_msa_dpadd_u_d.c   | 214 +++++++
 .../ase/msa/int-dot-product/test_msa_dpadd_u_h.c   | 214 +++++++
 .../ase/msa/int-dot-product/test_msa_dpadd_u_w.c   | 214 +++++++
 .../ase/msa/int-dot-product/test_msa_dpsub_s_d.c   | 214 +++++++
 .../ase/msa/int-dot-product/test_msa_dpsub_s_h.c   | 214 +++++++
 .../ase/msa/int-dot-product/test_msa_dpsub_s_w.c   | 214 +++++++
 .../ase/msa/int-dot-product/test_msa_dpsub_u_d.c   | 214 +++++++
 .../ase/msa/int-dot-product/test_msa_dpsub_u_h.c   | 214 +++++++
 .../ase/msa/int-dot-product/test_msa_dpsub_u_w.c   | 214 +++++++
 .../user/ase/msa/int-multiply/test_msa_maddv_b.c   | 214 +++++++
 .../user/ase/msa/int-multiply/test_msa_maddv_d.c   | 214 +++++++
 .../user/ase/msa/int-multiply/test_msa_maddv_h.c   | 214 +++++++
 .../user/ase/msa/int-multiply/test_msa_maddv_w.c   | 214 +++++++
 .../user/ase/msa/int-multiply/test_msa_msubv_b.c   | 214 +++++++
 .../user/ase/msa/int-multiply/test_msa_msubv_d.c   | 214 +++++++
 .../user/ase/msa/int-multiply/test_msa_msubv_h.c   | 214 +++++++
 .../user/ase/msa/int-multiply/test_msa_msubv_w.c   | 214 +++++++
 tests/tcg/mips/user/ase/msa/move/test_msa_move_v.c | 149 +++++
 .../tcg/mips/user/ase/msa/pack/test_msa_pckev_b.c  |  64 +--
 .../tcg/mips/user/ase/msa/pack/test_msa_pckev_d.c  |  64 +--
 .../tcg/mips/user/ase/msa/pack/test_msa_pckev_h.c  |  64 +--
 .../tcg/mips/user/ase/msa/pack/test_msa_pckev_w.c  |  64 +--
 .../tcg/mips/user/ase/msa/pack/test_msa_pckod_b.c  |  64 +--
 .../tcg/mips/user/ase/msa/pack/test_msa_pckod_d.c  |  64 +--
 .../tcg/mips/user/ase/msa/pack/test_msa_pckod_h.c  |  64 +--
 .../tcg/mips/user/ase/msa/pack/test_msa_pckod_w.c  |  64 +--
 tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_b.c |  64 +--
 tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_d.c |  64 +--
 tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_h.c |  64 +--
 tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_w.c |  64 +--
 .../mips/user/ase/msa/test_msa_compile_32r6eb.sh   | 627 +++++++++++++++++++++
 .../mips/user/ase/msa/test_msa_compile_32r6el.sh   | 627 +++++++++++++++++++++
 .../mips/user/ase/msa/test_msa_compile_64r6eb.sh   | 627 +++++++++++++++++++++
 ...t_msa_compile.sh => test_msa_compile_64r6el.sh} | 561 ++++++++++--------
 tests/tcg/mips/user/ase/msa/test_msa_run.sh        | 326 -----------
 tests/tcg/mips/user/ase/msa/test_msa_run_32r6eb.sh | 363 ++++++++++++
 tests/tcg/mips/user/ase/msa/test_msa_run_32r6el.sh | 363 ++++++++++++
 tests/tcg/mips/user/ase/msa/test_msa_run_64r6eb.sh | 363 ++++++++++++
 tests/tcg/mips/user/ase/msa/test_msa_run_64r6el.sh | 363 ++++++++++++
 55 files changed, 10919 insertions(+), 972 deletions(-)
 create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsl_b.c
 create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsl_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsl_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsl_w.c
 create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsr_b.c
 create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsr_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsr_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_binsr_w.c
 create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_bmnz_v.c
 create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_bmz_v.c
 create mode 100644 tests/tcg/mips/user/ase/msa/bit-move/test_msa_bsel_v.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpadd_s_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpadd_s_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpadd_s_w.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpadd_u_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpadd_u_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpadd_u_w.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpsub_s_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpsub_s_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpsub_s_w.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpsub_u_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpsub_u_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dpsub_u_w.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_maddv_b.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_maddv_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_maddv_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_maddv_w.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_msubv_b.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_msubv_d.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_msubv_h.c
 create mode 100644 tests/tcg/mips/user/ase/msa/int-multiply/test_msa_msubv_w.c
 create mode 100644 tests/tcg/mips/user/ase/msa/move/test_msa_move_v.c
 create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_compile_32r6eb.sh
 create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_compile_32r6el.sh
 create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_compile_64r6eb.sh
 rename tests/tcg/mips/user/ase/msa/{test_msa_compile.sh => test_msa_compile_64r6el.sh} (77%)
 delete mode 100755 tests/tcg/mips/user/ase/msa/test_msa_run.sh
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_run_32r6eb.sh
 create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_run_32r6el.sh
 create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_run_64r6eb.sh
 create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_run_64r6el.sh

-- 
2.7.4