[PATCH 0/4] tests/tcg: Massage MIPS tests for easier maintenance

Philippe Mathieu-Daudé posted 4 patches 3 weeks, 4 days ago
Failed in applying to current master (apply log)
There is a newer version of this series
.../user/ase/msa/test_msa_group_bit_count.c   |  82 +++++
.../user/ase/msa/test_msa_group_bit_move.c    |  76 +++++
.../user/ase/msa/test_msa_group_bit_set.c     |  82 +++++
.../ase/msa/test_msa_group_fixed_multiply.c   |  82 +++++
.../ase/msa/test_msa_group_float_max_min.c    |  58 ++++
.../user/ase/msa/test_msa_group_int_add.c     | 166 ++++++++++
.../user/ase/msa/test_msa_group_int_average.c | 106 +++++++
.../user/ase/msa/test_msa_group_int_compare.c | 130 ++++++++
.../user/ase/msa/test_msa_group_int_div_mod.c | 106 +++++++
.../ase/msa/test_msa_group_int_dot_product.c  | 118 +++++++
.../user/ase/msa/test_msa_group_int_max_min.c | 154 +++++++++
.../ase/msa/test_msa_group_int_multiply.c     |  82 +++++
.../ase/msa/test_msa_group_int_subtract.c     | 214 +++++++++++++
.../user/ase/msa/test_msa_group_interleave.c  | 106 +++++++
.../mips/user/ase/msa/test_msa_group_logic.c  |  40 +++
.../mips/user/ase/msa/test_msa_group_pack.c   |  82 +++++
.../mips/user/ase/msa/test_msa_group_shift.c  | 130 ++++++++
tests/tcg/mips64/test_mips64r6_bitops.c       |  46 +++
tests/tcg/mips64/test_mips64r6_crc.c          |  58 ++++
tests/tcg/mips64/test_mips64r6_logic.c        |  34 ++
tests/tcg/mips64/test_mips64r6_multiply.c     |  58 ++++
tests/tcg/mips64/test_mips64r6_shift.c        |  46 +++
tests/tcg/mipsel/test_dsp_acc.c               | 105 +++++++
tests/tcg/mipsel/test_dsp_arith.c             | 175 +++++++++++
tests/tcg/mipsel/test_dsp_cmp.c               |  80 +++++
tests/tcg/mipsel/test_dsp_ctrl.c              |  40 +++
tests/tcg/mipsel/test_dsp_dot.c               | 150 +++++++++
tests/tcg/mipsel/test_dsp_mul.c               |  60 ++++
tests/tcg/mipsel/test_dsp_pack.c              | 145 +++++++++
tests/tcg/mipsel/test_dsp_r1_absq_s_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_absq_s_w.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_addq_ph.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_addq_s_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_addq_s_w.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_addsc.c          |   2 +
tests/tcg/mipsel/test_dsp_r1_addu_qb.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_addu_s_qb.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_addwc.c          |   2 +
tests/tcg/mipsel/test_dsp_r1_bitrev.c         |   2 +
tests/tcg/mipsel/test_dsp_r1_bposge32.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_cmp_eq_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_cmp_le_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_cmp_lt_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_cmpgu_eq_qb.c    |   2 +
tests/tcg/mipsel/test_dsp_r1_cmpgu_le_qb.c    |   2 +
tests/tcg/mipsel/test_dsp_r1_cmpgu_lt_qb.c    |   2 +
tests/tcg/mipsel/test_dsp_r1_cmpu_eq_qb.c     |   2 +
tests/tcg/mipsel/test_dsp_r1_cmpu_le_qb.c     |   2 +
tests/tcg/mipsel/test_dsp_r1_cmpu_lt_qb.c     |   2 +
tests/tcg/mipsel/test_dsp_r1_dpaq_s_w_ph.c    |   2 +
tests/tcg/mipsel/test_dsp_r1_dpaq_sa_l_w.c    |   2 +
tests/tcg/mipsel/test_dsp_r1_dpau_h_qbl.c     |   2 +
tests/tcg/mipsel/test_dsp_r1_dpau_h_qbr.c     |   2 +
tests/tcg/mipsel/test_dsp_r1_dpsq_s_w_ph.c    |   2 +
tests/tcg/mipsel/test_dsp_r1_dpsq_sa_l_w.c    |   2 +
tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbl.c     |   2 +
tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbr.c     |   2 +
tests/tcg/mipsel/test_dsp_r1_extp.c           |   2 +
tests/tcg/mipsel/test_dsp_r1_extpdp.c         |   2 +
tests/tcg/mipsel/test_dsp_r1_extpdpv.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_extpv.c          |   2 +
tests/tcg/mipsel/test_dsp_r1_extr_r_w.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_extr_rs_w.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_extr_s_h.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_extr_w.c         |   2 +
tests/tcg/mipsel/test_dsp_r1_extrv_r_w.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_extrv_rs_w.c     |   2 +
tests/tcg/mipsel/test_dsp_r1_extrv_s_h.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_extrv_w.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_insv.c           |   2 +
tests/tcg/mipsel/test_dsp_r1_lbux.c           |   2 +
tests/tcg/mipsel/test_dsp_r1_lhx.c            |   2 +
tests/tcg/mipsel/test_dsp_r1_lwx.c            |   2 +
tests/tcg/mipsel/test_dsp_r1_madd.c           |   2 +
tests/tcg/mipsel/test_dsp_r1_maddu.c          |   2 +
tests/tcg/mipsel/test_dsp_r1_main.c           |   6 -
tests/tcg/mipsel/test_dsp_r1_maq_s_w_phl.c    |   2 +
tests/tcg/mipsel/test_dsp_r1_maq_s_w_phr.c    |   2 +
tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phl.c   |   2 +
tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phr.c   |   2 +
tests/tcg/mipsel/test_dsp_r1_mfhi.c           |   2 +
tests/tcg/mipsel/test_dsp_r1_mflo.c           |   2 +
tests/tcg/mipsel/test_dsp_r1_modsub.c         |   2 +
tests/tcg/mipsel/test_dsp_r1_msub.c           |   2 +
tests/tcg/mipsel/test_dsp_r1_msubu.c          |   2 +
tests/tcg/mipsel/test_dsp_r1_mthi.c           |   2 +
tests/tcg/mipsel/test_dsp_r1_mthlip.c         |   2 +
tests/tcg/mipsel/test_dsp_r1_mtlo.c           |   2 +
tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phl.c  |   2 +
tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phr.c  |   2 +
tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbl.c |   2 +
tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbr.c |   2 +
tests/tcg/mipsel/test_dsp_r1_mulq_rs_ph.c     |   2 +
tests/tcg/mipsel/test_dsp_r1_mult.c           |   2 +
tests/tcg/mipsel/test_dsp_r1_multu.c          |   2 +
tests/tcg/mipsel/test_dsp_r1_packrl_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_pick_ph.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_pick_qb.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_preceq_w_phl.c   |   2 +
tests/tcg/mipsel/test_dsp_r1_preceq_w_phr.c   |   2 +
tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbl.c |   2 +
.../tcg/mipsel/test_dsp_r1_precequ_ph_qbla.c  |   2 +
tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbr.c |   2 +
.../tcg/mipsel/test_dsp_r1_precequ_ph_qbra.c  |   2 +
tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbl.c  |   2 +
tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbla.c |   2 +
tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbr.c  |   2 +
tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbra.c |   2 +
tests/tcg/mipsel/test_dsp_r1_precrq_ph_w.c    |   2 +
tests/tcg/mipsel/test_dsp_r1_precrq_qb_ph.c   |   2 +
tests/tcg/mipsel/test_dsp_r1_precrq_rs_ph_w.c |   2 +
.../tcg/mipsel/test_dsp_r1_precrqu_s_qb_ph.c  |   2 +
tests/tcg/mipsel/test_dsp_r1_raddu_w_qb.c     |   2 +
tests/tcg/mipsel/test_dsp_r1_rddsp.c          |   2 +
tests/tcg/mipsel/test_dsp_r1_repl_ph.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_repl_qb.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_replv_ph.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_replv_qb.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_shilo.c          |   2 +
tests/tcg/mipsel/test_dsp_r1_shilov.c         |   2 +
tests/tcg/mipsel/test_dsp_r1_shll_ph.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_shll_qb.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_shll_s_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_shll_s_w.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_shllv_ph.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_shllv_qb.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_shllv_s_ph.c     |   2 +
tests/tcg/mipsel/test_dsp_r1_shllv_s_w.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_shra_ph.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_shra_r_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_shra_r_w.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_shrav_ph.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_shrav_r_ph.c     |   2 +
tests/tcg/mipsel/test_dsp_r1_shrav_r_w.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_shrl_qb.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_shrlv_qb.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_subq_ph.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_subq_s_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_subq_s_w.c       |   2 +
tests/tcg/mipsel/test_dsp_r1_subu_qb.c        |   2 +
tests/tcg/mipsel/test_dsp_r1_subu_s_qb.c      |   2 +
tests/tcg/mipsel/test_dsp_r1_wrdsp.c          |   2 +
tests/tcg/mipsel/test_dsp_r2_absq_s_qb.c      |   2 +
tests/tcg/mipsel/test_dsp_r2_addqh_ph.c       |   2 +
tests/tcg/mipsel/test_dsp_r2_addqh_r_ph.c     |   2 +
tests/tcg/mipsel/test_dsp_r2_addqh_r_w.c      |   2 +
tests/tcg/mipsel/test_dsp_r2_addqh_w.c        |   2 +
tests/tcg/mipsel/test_dsp_r2_addu_ph.c        |   2 +
tests/tcg/mipsel/test_dsp_r2_addu_s_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r2_adduh_qb.c       |   2 +
tests/tcg/mipsel/test_dsp_r2_adduh_r_qb.c     |   2 +
tests/tcg/mipsel/test_dsp_r2_append.c         |   2 +
tests/tcg/mipsel/test_dsp_r2_balign.c         |   2 +
tests/tcg/mipsel/test_dsp_r2_cmpgdu_eq_qb.c   |   2 +
tests/tcg/mipsel/test_dsp_r2_cmpgdu_le_qb.c   |   2 +
tests/tcg/mipsel/test_dsp_r2_cmpgdu_lt_qb.c   |   2 +
tests/tcg/mipsel/test_dsp_r2_dpa_w_ph.c       |   2 +
tests/tcg/mipsel/test_dsp_r2_dpaqx_s_w_ph.c   |   2 +
tests/tcg/mipsel/test_dsp_r2_dpaqx_sa_w_ph.c  |   2 +
tests/tcg/mipsel/test_dsp_r2_dpax_w_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r2_dps_w_ph.c       |   2 +
tests/tcg/mipsel/test_dsp_r2_dpsqx_s_w_ph.c   |   2 +
tests/tcg/mipsel/test_dsp_r2_dpsqx_sa_w_ph.c  |   2 +
tests/tcg/mipsel/test_dsp_r2_dpsx_w_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r2_mul_ph.c         |   2 +
tests/tcg/mipsel/test_dsp_r2_mul_s_ph.c       |   2 +
tests/tcg/mipsel/test_dsp_r2_mulq_rs_w.c      |   2 +
tests/tcg/mipsel/test_dsp_r2_mulq_s_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r2_mulq_s_w.c       |   2 +
tests/tcg/mipsel/test_dsp_r2_mulsa_w_ph.c     |   2 +
tests/tcg/mipsel/test_dsp_r2_mulsaq_s_w_ph.c  |   2 +
tests/tcg/mipsel/test_dsp_r2_precr_qb_ph.c    |   2 +
tests/tcg/mipsel/test_dsp_r2_precr_sra_ph_w.c |   2 +
.../tcg/mipsel/test_dsp_r2_precr_sra_r_ph_w.c |   2 +
tests/tcg/mipsel/test_dsp_r2_prepend.c        |   2 +
tests/tcg/mipsel/test_dsp_r2_shra_qb.c        |   2 +
tests/tcg/mipsel/test_dsp_r2_shra_r_qb.c      |   2 +
tests/tcg/mipsel/test_dsp_r2_shrav_qb.c       |   2 +
tests/tcg/mipsel/test_dsp_r2_shrav_r_qb.c     |   2 +
tests/tcg/mipsel/test_dsp_r2_shrl_ph.c        |   2 +
tests/tcg/mipsel/test_dsp_r2_shrlv_ph.c       |   2 +
tests/tcg/mipsel/test_dsp_r2_subqh_ph.c       |   2 +
tests/tcg/mipsel/test_dsp_r2_subqh_r_ph.c     |   2 +
tests/tcg/mipsel/test_dsp_r2_subqh_r_w.c      |   2 +
tests/tcg/mipsel/test_dsp_r2_subqh_w.c        |   2 +
tests/tcg/mipsel/test_dsp_r2_subu_ph.c        |   2 +
tests/tcg/mipsel/test_dsp_r2_subu_s_ph.c      |   2 +
tests/tcg/mipsel/test_dsp_r2_subuh_qb.c       |   2 +
tests/tcg/mipsel/test_dsp_r2_subuh_r_qb.c     |   2 +
tests/tcg/mipsel/test_dsp_shift.c             | 120 ++++++++
tests/tcg/mips/meson.build                    | 291 +-----------------
tests/tcg/mips64/meson.build                  |  37 +--
tests/tcg/mipsel/meson.build                  | 168 +---------
193 files changed, 3279 insertions(+), 472 deletions(-)
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_bit_count.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_bit_move.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_bit_set.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_fixed_multiply.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_float_max_min.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_add.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_average.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_compare.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_div_mod.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_dot_product.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_max_min.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_multiply.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_subtract.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_interleave.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_logic.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_pack.c
create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_shift.c
create mode 100644 tests/tcg/mips64/test_mips64r6_bitops.c
create mode 100644 tests/tcg/mips64/test_mips64r6_crc.c
create mode 100644 tests/tcg/mips64/test_mips64r6_logic.c
create mode 100644 tests/tcg/mips64/test_mips64r6_multiply.c
create mode 100644 tests/tcg/mips64/test_mips64r6_shift.c
create mode 100644 tests/tcg/mipsel/test_dsp_acc.c
create mode 100644 tests/tcg/mipsel/test_dsp_arith.c
create mode 100644 tests/tcg/mipsel/test_dsp_cmp.c
create mode 100644 tests/tcg/mipsel/test_dsp_ctrl.c
create mode 100644 tests/tcg/mipsel/test_dsp_dot.c
create mode 100644 tests/tcg/mipsel/test_dsp_mul.c
create mode 100644 tests/tcg/mipsel/test_dsp_pack.c
delete mode 100644 tests/tcg/mipsel/test_dsp_r1_main.c
create mode 100644 tests/tcg/mipsel/test_dsp_shift.c
[PATCH 0/4] tests/tcg: Massage MIPS tests for easier maintenance
Posted by Philippe Mathieu-Daudé 3 weeks, 4 days ago
I'm glad we have many MIPS tests but they are in too
many files, taking time to get compiled. In particular
on Aarch64 host via x86_64 docker image... Group the
test in order to reduce CI build time.

Philippe Mathieu-Daudé (4):
  tests/tcg/mips: Clear DSPControl at start of DSP tests
  tests/tcg/mips: Group DSP tests
  tests/tcg/mips: Group Release 6 tests
  tests/tcg/mips: Group MSA tests

 .../user/ase/msa/test_msa_group_bit_count.c   |  82 +++++
 .../user/ase/msa/test_msa_group_bit_move.c    |  76 +++++
 .../user/ase/msa/test_msa_group_bit_set.c     |  82 +++++
 .../ase/msa/test_msa_group_fixed_multiply.c   |  82 +++++
 .../ase/msa/test_msa_group_float_max_min.c    |  58 ++++
 .../user/ase/msa/test_msa_group_int_add.c     | 166 ++++++++++
 .../user/ase/msa/test_msa_group_int_average.c | 106 +++++++
 .../user/ase/msa/test_msa_group_int_compare.c | 130 ++++++++
 .../user/ase/msa/test_msa_group_int_div_mod.c | 106 +++++++
 .../ase/msa/test_msa_group_int_dot_product.c  | 118 +++++++
 .../user/ase/msa/test_msa_group_int_max_min.c | 154 +++++++++
 .../ase/msa/test_msa_group_int_multiply.c     |  82 +++++
 .../ase/msa/test_msa_group_int_subtract.c     | 214 +++++++++++++
 .../user/ase/msa/test_msa_group_interleave.c  | 106 +++++++
 .../mips/user/ase/msa/test_msa_group_logic.c  |  40 +++
 .../mips/user/ase/msa/test_msa_group_pack.c   |  82 +++++
 .../mips/user/ase/msa/test_msa_group_shift.c  | 130 ++++++++
 tests/tcg/mips64/test_mips64r6_bitops.c       |  46 +++
 tests/tcg/mips64/test_mips64r6_crc.c          |  58 ++++
 tests/tcg/mips64/test_mips64r6_logic.c        |  34 ++
 tests/tcg/mips64/test_mips64r6_multiply.c     |  58 ++++
 tests/tcg/mips64/test_mips64r6_shift.c        |  46 +++
 tests/tcg/mipsel/test_dsp_acc.c               | 105 +++++++
 tests/tcg/mipsel/test_dsp_arith.c             | 175 +++++++++++
 tests/tcg/mipsel/test_dsp_cmp.c               |  80 +++++
 tests/tcg/mipsel/test_dsp_ctrl.c              |  40 +++
 tests/tcg/mipsel/test_dsp_dot.c               | 150 +++++++++
 tests/tcg/mipsel/test_dsp_mul.c               |  60 ++++
 tests/tcg/mipsel/test_dsp_pack.c              | 145 +++++++++
 tests/tcg/mipsel/test_dsp_r1_absq_s_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_absq_s_w.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_addq_ph.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_addq_s_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_addq_s_w.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_addsc.c          |   2 +
 tests/tcg/mipsel/test_dsp_r1_addu_qb.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_addu_s_qb.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_addwc.c          |   2 +
 tests/tcg/mipsel/test_dsp_r1_bitrev.c         |   2 +
 tests/tcg/mipsel/test_dsp_r1_bposge32.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_cmp_eq_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_cmp_le_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_cmp_lt_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_cmpgu_eq_qb.c    |   2 +
 tests/tcg/mipsel/test_dsp_r1_cmpgu_le_qb.c    |   2 +
 tests/tcg/mipsel/test_dsp_r1_cmpgu_lt_qb.c    |   2 +
 tests/tcg/mipsel/test_dsp_r1_cmpu_eq_qb.c     |   2 +
 tests/tcg/mipsel/test_dsp_r1_cmpu_le_qb.c     |   2 +
 tests/tcg/mipsel/test_dsp_r1_cmpu_lt_qb.c     |   2 +
 tests/tcg/mipsel/test_dsp_r1_dpaq_s_w_ph.c    |   2 +
 tests/tcg/mipsel/test_dsp_r1_dpaq_sa_l_w.c    |   2 +
 tests/tcg/mipsel/test_dsp_r1_dpau_h_qbl.c     |   2 +
 tests/tcg/mipsel/test_dsp_r1_dpau_h_qbr.c     |   2 +
 tests/tcg/mipsel/test_dsp_r1_dpsq_s_w_ph.c    |   2 +
 tests/tcg/mipsel/test_dsp_r1_dpsq_sa_l_w.c    |   2 +
 tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbl.c     |   2 +
 tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbr.c     |   2 +
 tests/tcg/mipsel/test_dsp_r1_extp.c           |   2 +
 tests/tcg/mipsel/test_dsp_r1_extpdp.c         |   2 +
 tests/tcg/mipsel/test_dsp_r1_extpdpv.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_extpv.c          |   2 +
 tests/tcg/mipsel/test_dsp_r1_extr_r_w.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_extr_rs_w.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_extr_s_h.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_extr_w.c         |   2 +
 tests/tcg/mipsel/test_dsp_r1_extrv_r_w.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_extrv_rs_w.c     |   2 +
 tests/tcg/mipsel/test_dsp_r1_extrv_s_h.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_extrv_w.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_insv.c           |   2 +
 tests/tcg/mipsel/test_dsp_r1_lbux.c           |   2 +
 tests/tcg/mipsel/test_dsp_r1_lhx.c            |   2 +
 tests/tcg/mipsel/test_dsp_r1_lwx.c            |   2 +
 tests/tcg/mipsel/test_dsp_r1_madd.c           |   2 +
 tests/tcg/mipsel/test_dsp_r1_maddu.c          |   2 +
 tests/tcg/mipsel/test_dsp_r1_main.c           |   6 -
 tests/tcg/mipsel/test_dsp_r1_maq_s_w_phl.c    |   2 +
 tests/tcg/mipsel/test_dsp_r1_maq_s_w_phr.c    |   2 +
 tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phl.c   |   2 +
 tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phr.c   |   2 +
 tests/tcg/mipsel/test_dsp_r1_mfhi.c           |   2 +
 tests/tcg/mipsel/test_dsp_r1_mflo.c           |   2 +
 tests/tcg/mipsel/test_dsp_r1_modsub.c         |   2 +
 tests/tcg/mipsel/test_dsp_r1_msub.c           |   2 +
 tests/tcg/mipsel/test_dsp_r1_msubu.c          |   2 +
 tests/tcg/mipsel/test_dsp_r1_mthi.c           |   2 +
 tests/tcg/mipsel/test_dsp_r1_mthlip.c         |   2 +
 tests/tcg/mipsel/test_dsp_r1_mtlo.c           |   2 +
 tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phl.c  |   2 +
 tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phr.c  |   2 +
 tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbl.c |   2 +
 tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbr.c |   2 +
 tests/tcg/mipsel/test_dsp_r1_mulq_rs_ph.c     |   2 +
 tests/tcg/mipsel/test_dsp_r1_mult.c           |   2 +
 tests/tcg/mipsel/test_dsp_r1_multu.c          |   2 +
 tests/tcg/mipsel/test_dsp_r1_packrl_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_pick_ph.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_pick_qb.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_preceq_w_phl.c   |   2 +
 tests/tcg/mipsel/test_dsp_r1_preceq_w_phr.c   |   2 +
 tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbl.c |   2 +
 .../tcg/mipsel/test_dsp_r1_precequ_ph_qbla.c  |   2 +
 tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbr.c |   2 +
 .../tcg/mipsel/test_dsp_r1_precequ_ph_qbra.c  |   2 +
 tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbl.c  |   2 +
 tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbla.c |   2 +
 tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbr.c  |   2 +
 tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbra.c |   2 +
 tests/tcg/mipsel/test_dsp_r1_precrq_ph_w.c    |   2 +
 tests/tcg/mipsel/test_dsp_r1_precrq_qb_ph.c   |   2 +
 tests/tcg/mipsel/test_dsp_r1_precrq_rs_ph_w.c |   2 +
 .../tcg/mipsel/test_dsp_r1_precrqu_s_qb_ph.c  |   2 +
 tests/tcg/mipsel/test_dsp_r1_raddu_w_qb.c     |   2 +
 tests/tcg/mipsel/test_dsp_r1_rddsp.c          |   2 +
 tests/tcg/mipsel/test_dsp_r1_repl_ph.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_repl_qb.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_replv_ph.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_replv_qb.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_shilo.c          |   2 +
 tests/tcg/mipsel/test_dsp_r1_shilov.c         |   2 +
 tests/tcg/mipsel/test_dsp_r1_shll_ph.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_shll_qb.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_shll_s_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_shll_s_w.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_shllv_ph.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_shllv_qb.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_shllv_s_ph.c     |   2 +
 tests/tcg/mipsel/test_dsp_r1_shllv_s_w.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_shra_ph.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_shra_r_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_shra_r_w.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_shrav_ph.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_shrav_r_ph.c     |   2 +
 tests/tcg/mipsel/test_dsp_r1_shrav_r_w.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_shrl_qb.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_shrlv_qb.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_subq_ph.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_subq_s_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_subq_s_w.c       |   2 +
 tests/tcg/mipsel/test_dsp_r1_subu_qb.c        |   2 +
 tests/tcg/mipsel/test_dsp_r1_subu_s_qb.c      |   2 +
 tests/tcg/mipsel/test_dsp_r1_wrdsp.c          |   2 +
 tests/tcg/mipsel/test_dsp_r2_absq_s_qb.c      |   2 +
 tests/tcg/mipsel/test_dsp_r2_addqh_ph.c       |   2 +
 tests/tcg/mipsel/test_dsp_r2_addqh_r_ph.c     |   2 +
 tests/tcg/mipsel/test_dsp_r2_addqh_r_w.c      |   2 +
 tests/tcg/mipsel/test_dsp_r2_addqh_w.c        |   2 +
 tests/tcg/mipsel/test_dsp_r2_addu_ph.c        |   2 +
 tests/tcg/mipsel/test_dsp_r2_addu_s_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r2_adduh_qb.c       |   2 +
 tests/tcg/mipsel/test_dsp_r2_adduh_r_qb.c     |   2 +
 tests/tcg/mipsel/test_dsp_r2_append.c         |   2 +
 tests/tcg/mipsel/test_dsp_r2_balign.c         |   2 +
 tests/tcg/mipsel/test_dsp_r2_cmpgdu_eq_qb.c   |   2 +
 tests/tcg/mipsel/test_dsp_r2_cmpgdu_le_qb.c   |   2 +
 tests/tcg/mipsel/test_dsp_r2_cmpgdu_lt_qb.c   |   2 +
 tests/tcg/mipsel/test_dsp_r2_dpa_w_ph.c       |   2 +
 tests/tcg/mipsel/test_dsp_r2_dpaqx_s_w_ph.c   |   2 +
 tests/tcg/mipsel/test_dsp_r2_dpaqx_sa_w_ph.c  |   2 +
 tests/tcg/mipsel/test_dsp_r2_dpax_w_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r2_dps_w_ph.c       |   2 +
 tests/tcg/mipsel/test_dsp_r2_dpsqx_s_w_ph.c   |   2 +
 tests/tcg/mipsel/test_dsp_r2_dpsqx_sa_w_ph.c  |   2 +
 tests/tcg/mipsel/test_dsp_r2_dpsx_w_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r2_mul_ph.c         |   2 +
 tests/tcg/mipsel/test_dsp_r2_mul_s_ph.c       |   2 +
 tests/tcg/mipsel/test_dsp_r2_mulq_rs_w.c      |   2 +
 tests/tcg/mipsel/test_dsp_r2_mulq_s_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r2_mulq_s_w.c       |   2 +
 tests/tcg/mipsel/test_dsp_r2_mulsa_w_ph.c     |   2 +
 tests/tcg/mipsel/test_dsp_r2_mulsaq_s_w_ph.c  |   2 +
 tests/tcg/mipsel/test_dsp_r2_precr_qb_ph.c    |   2 +
 tests/tcg/mipsel/test_dsp_r2_precr_sra_ph_w.c |   2 +
 .../tcg/mipsel/test_dsp_r2_precr_sra_r_ph_w.c |   2 +
 tests/tcg/mipsel/test_dsp_r2_prepend.c        |   2 +
 tests/tcg/mipsel/test_dsp_r2_shra_qb.c        |   2 +
 tests/tcg/mipsel/test_dsp_r2_shra_r_qb.c      |   2 +
 tests/tcg/mipsel/test_dsp_r2_shrav_qb.c       |   2 +
 tests/tcg/mipsel/test_dsp_r2_shrav_r_qb.c     |   2 +
 tests/tcg/mipsel/test_dsp_r2_shrl_ph.c        |   2 +
 tests/tcg/mipsel/test_dsp_r2_shrlv_ph.c       |   2 +
 tests/tcg/mipsel/test_dsp_r2_subqh_ph.c       |   2 +
 tests/tcg/mipsel/test_dsp_r2_subqh_r_ph.c     |   2 +
 tests/tcg/mipsel/test_dsp_r2_subqh_r_w.c      |   2 +
 tests/tcg/mipsel/test_dsp_r2_subqh_w.c        |   2 +
 tests/tcg/mipsel/test_dsp_r2_subu_ph.c        |   2 +
 tests/tcg/mipsel/test_dsp_r2_subu_s_ph.c      |   2 +
 tests/tcg/mipsel/test_dsp_r2_subuh_qb.c       |   2 +
 tests/tcg/mipsel/test_dsp_r2_subuh_r_qb.c     |   2 +
 tests/tcg/mipsel/test_dsp_shift.c             | 120 ++++++++
 tests/tcg/mips/meson.build                    | 291 +-----------------
 tests/tcg/mips64/meson.build                  |  37 +--
 tests/tcg/mipsel/meson.build                  | 168 +---------
 193 files changed, 3279 insertions(+), 472 deletions(-)
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_bit_count.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_bit_move.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_bit_set.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_fixed_multiply.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_float_max_min.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_add.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_average.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_compare.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_div_mod.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_dot_product.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_max_min.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_multiply.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_int_subtract.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_interleave.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_logic.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_pack.c
 create mode 100644 tests/tcg/mips/user/ase/msa/test_msa_group_shift.c
 create mode 100644 tests/tcg/mips64/test_mips64r6_bitops.c
 create mode 100644 tests/tcg/mips64/test_mips64r6_crc.c
 create mode 100644 tests/tcg/mips64/test_mips64r6_logic.c
 create mode 100644 tests/tcg/mips64/test_mips64r6_multiply.c
 create mode 100644 tests/tcg/mips64/test_mips64r6_shift.c
 create mode 100644 tests/tcg/mipsel/test_dsp_acc.c
 create mode 100644 tests/tcg/mipsel/test_dsp_arith.c
 create mode 100644 tests/tcg/mipsel/test_dsp_cmp.c
 create mode 100644 tests/tcg/mipsel/test_dsp_ctrl.c
 create mode 100644 tests/tcg/mipsel/test_dsp_dot.c
 create mode 100644 tests/tcg/mipsel/test_dsp_mul.c
 create mode 100644 tests/tcg/mipsel/test_dsp_pack.c
 delete mode 100644 tests/tcg/mipsel/test_dsp_r1_main.c
 create mode 100644 tests/tcg/mipsel/test_dsp_shift.c

-- 
2.55.0


Re: [PATCH 0/4] tests/tcg: Massage MIPS tests for easier maintenance
Posted by Pierrick Bouvier 3 weeks, 4 days ago
On 10/28/2026 11:21 AM, Philippe Mathieu-Daudé wrote:
> I'm glad we have many MIPS tests but they are in too
> many files, taking time to get compiled. In particular
> on Aarch64 host via x86_64 docker image... Group the
> test in order to reduce CI build time.
> 
> Philippe Mathieu-Daudé (4):
>   tests/tcg/mips: Clear DSPControl at start of DSP tests
>   tests/tcg/mips: Group DSP tests
>   tests/tcg/mips: Group Release 6 tests
>   tests/tcg/mips: Group MSA tests
>

That's a good idea in itself, but this would need additional work to
have a clear report per test. We can't trade usability for faster
compilation.

Right now, a test will stop on the first assert() met, without going
further.

Ideally, we can keep the list of tests in a static table, and perform
the DSPControl clear before each, so patch 1 can be removed. Also,
assert could be replaced with a proper return and print information per
test.

Regards,
Pierrick

Re: [PATCH 0/4] tests/tcg: Massage MIPS tests for easier maintenance
Posted by Philippe Mathieu-Daudé 3 weeks, 3 days ago
On 28/10/26 21:07, Pierrick Bouvier wrote:
> On 10/28/2026 11:21 AM, Philippe Mathieu-Daudé wrote:
>> I'm glad we have many MIPS tests but they are in too
>> many files, taking time to get compiled. In particular
>> on Aarch64 host via x86_64 docker image... Group the
>> test in order to reduce CI build time.
>>
>> Philippe Mathieu-Daudé (4):
>>    tests/tcg/mips: Clear DSPControl at start of DSP tests
>>    tests/tcg/mips: Group DSP tests
>>    tests/tcg/mips: Group Release 6 tests
>>    tests/tcg/mips: Group MSA tests
>>
> 
> That's a good idea in itself, but this would need additional work to
> have a clear report per test. We can't trade usability for faster
> compilation.
> 
> Right now, a test will stop on the first assert() met, without going
> further.
> 
> Ideally, we can keep the list of tests in a static table, and perform
> the DSPControl clear before each, so patch 1 can be removed. Also,
> assert could be replaced with a proper return and print information per
> test.

IIUC the requested changes are only for the DSP tests, as the other
groups (Rel6 and MSA) do not stop on the first assert() hit.

I'll rework patch 2 (indeed 1 is then unnecessary) and respin, thanks.

Re: [PATCH 0/4] tests/tcg: Massage MIPS tests for easier maintenance
Posted by Pierrick Bouvier 3 weeks, 3 days ago
On 10/29/26 12:04 AM, Philippe Mathieu-Daudé wrote:
> On 28/10/26 21:07, Pierrick Bouvier wrote:
>> On 10/28/2026 11:21 AM, Philippe Mathieu-Daudé wrote:
>>> I'm glad we have many MIPS tests but they are in too
>>> many files, taking time to get compiled. In particular
>>> on Aarch64 host via x86_64 docker image... Group the
>>> test in order to reduce CI build time.
>>>
>>> Philippe Mathieu-Daudé (4):
>>>     tests/tcg/mips: Clear DSPControl at start of DSP tests
>>>     tests/tcg/mips: Group DSP tests
>>>     tests/tcg/mips: Group Release 6 tests
>>>     tests/tcg/mips: Group MSA tests
>>>
>>
>> That's a good idea in itself, but this would need additional work to
>> have a clear report per test. We can't trade usability for faster
>> compilation.
>>
>> Right now, a test will stop on the first assert() met, without going
>> further.
>>
>> Ideally, we can keep the list of tests in a static table, and perform
>> the DSPControl clear before each, so patch 1 can be removed. Also,
>> assert could be replaced with a proper return and print information per
>> test.
> 
> IIUC the requested changes are only for the DSP tests, as the other
> groups (Rel6 and MSA) do not stop on the first assert() hit.
>

Yes. Other patches still need to add some reporting on which test failed 
(a print with OK/FAIL is enough) instead of just a global return code.
> I'll rework patch 2 (indeed 1 is then unnecessary) and respin, thanks.


Re: [PATCH 0/4] tests/tcg: Massage MIPS tests for easier maintenance
Posted by Philippe Mathieu-Daudé 3 weeks, 3 days ago
On 29/10/26 08:47, Pierrick Bouvier wrote:
> On 10/29/26 12:04 AM, Philippe Mathieu-Daudé wrote:
>> On 28/10/26 21:07, Pierrick Bouvier wrote:
>>> On 10/28/2026 11:21 AM, Philippe Mathieu-Daudé wrote:
>>>> I'm glad we have many MIPS tests but they are in too
>>>> many files, taking time to get compiled. In particular
>>>> on Aarch64 host via x86_64 docker image... Group the
>>>> test in order to reduce CI build time.
>>>>
>>>> Philippe Mathieu-Daudé (4):
>>>>     tests/tcg/mips: Clear DSPControl at start of DSP tests
>>>>     tests/tcg/mips: Group DSP tests
>>>>     tests/tcg/mips: Group Release 6 tests
>>>>     tests/tcg/mips: Group MSA tests
>>>>
>>>
>>> That's a good idea in itself, but this would need additional work to
>>> have a clear report per test. We can't trade usability for faster
>>> compilation.
>>>
>>> Right now, a test will stop on the first assert() met, without going
>>> further.
>>>
>>> Ideally, we can keep the list of tests in a static table, and perform
>>> the DSPControl clear before each, so patch 1 can be removed. Also,
>>> assert could be replaced with a proper return and print information per
>>> test.
>>
>> IIUC the requested changes are only for the DSP tests, as the other
>> groups (Rel6 and MSA) do not stop on the first assert() hit.
>>
> 
> Yes. Other patches still need to add some reporting on which test failed 
> (a print with OK/FAIL is enough) instead of just a global return code.

Right. I'll try to use TAP format so it better integrates with meson.

>> I'll rework patch 2 (indeed 1 is then unnecessary) and respin, thanks.
> 
>