tests/tcg: Massage MIPS tests for easier maintenance
cover tests/tcg: Massage MIPS tests for easier maintenance
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
Signature · 1 line
2.55.0
PATCH 1/4 tests/tcg/mips: Clear DSPControl at start of DSP tests
Some tests check sticky DSPControl flags assuming the register starts zeroed. Clear it explicitly so tests remain valid when run in the same process.
--- 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_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 ++ tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbla.c | 2 ++ tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbr.c | 2 ++ tests/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 ++ tests/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 ++ tests/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 ++ 159 files changed, 318 insertions(+)
tests/tcg/mipsel/test_dsp_r1_absq_s_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x10017EFD ; result =0x10017EFD ;
tests/tcg/mipsel/test_dsp_r1_absq_s_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x80000000 ; result =0x7FFFFFFF ; __asm
tests/tcg/mipsel/test_dsp_r1_addq_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xFFFFFFFF ; rt =0x10101010 ; result =0x100F100F ;
tests/tcg/mipsel/test_dsp_r1_addq_s_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xFFFFFFFF ; rt =0x10101010 ; result =0x100F100F ;
tests/tcg/mipsel/test_dsp_r1_addq_s_w.c +2 -0
@@ -7,6 +7,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x10017EFD ; rs =0x11111111 ; result =0x2112900e ;
tests/tcg/mipsel/test_dsp_r1_addsc.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x0000000F ; rt =0x00000001 ; result =0x00000010 ;
tests/tcg/mipsel/test_dsp_r1_addu_qb.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x00FF00FF ; rt =0x00010001 ; result =0x00000000 ;
tests/tcg/mipsel/test_dsp_r1_addu_s_qb.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x10FF01FF ; rt =0x10010001 ; result =0x20FF01FF ;
tests/tcg/mipsel/test_dsp_r1_addwc.c +2 -0
@@ -7,6 +7,8 @@ int main()int dspi, dspo;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x10FF01FF ; rt =0x10010001 ; dspi =0x00002000 ;
tests/tcg/mipsel/test_dsp_r1_bitrev.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x12345678 ; result =0x00001E6A ;
tests/tcg/mipsel/test_dsp_r1_bposge32.c +2 -0
@@ -6,6 +6,8 @@ int main()int dsp, sum;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + dsp =0x20 ; sum =0x01 ; result =0x02 ;
tests/tcg/mipsel/test_dsp_r1_cmp_eq_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x11777066 ; rt =0x55AA33FF ; result =0x00 ;
tests/tcg/mipsel/test_dsp_r1_cmp_le_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x11777066 ; rt =0x55AA33FF ; result =0x02 ;
tests/tcg/mipsel/test_dsp_r1_cmp_lt_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x11777066 ; rt =0x55AA33FF ; result =0x02 ;
tests/tcg/mipsel/test_dsp_r1_cmpgu_eq_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x11777066 ; rt =0x55AA70FF ; result =0x02 ;
tests/tcg/mipsel/test_dsp_r1_cmpgu_le_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x11777066 ; rt =0x55AA70FF ; result =0x0F ;
tests/tcg/mipsel/test_dsp_r1_cmpgu_lt_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x11777066 ; rt =0x55AA70FF ; result =0x0D ;
tests/tcg/mipsel/test_dsp_r1_cmpu_eq_qb.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x11777066 ; rt =0x55AA70FF ; result =0x02 ;
tests/tcg/mipsel/test_dsp_r1_cmpu_le_qb.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x11777066 ; rt =0x55AA70FF ; result =0x0F ;
tests/tcg/mipsel/test_dsp_r1_cmpu_lt_qb.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x11777066 ; rt =0x55AA70FF ; result =0x0D ;
tests/tcg/mipsel/test_dsp_r1_dpaq_s_w_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =0 , acl =0 ;int resulth, resultl, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x800000FF ; rt =0x80000002 ; resulth =0x00 ;
tests/tcg/mipsel/test_dsp_r1_dpaq_sa_l_w.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =0 , acl =0 ;int resulth, resultl, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x80000000 ; rt =0x80000000 ; resulth =0x7FFFFFFF ;
tests/tcg/mipsel/test_dsp_r1_dpau_h_qbl.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =3 ;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x800000FF ; rt =0x80000002 ; resulth =0x05 ;
tests/tcg/mipsel/test_dsp_r1_dpau_h_qbr.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =3 ;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x800000FF ; rt =0x80000002 ; resulth =0x05 ;
tests/tcg/mipsel/test_dsp_r1_dpsq_s_w_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =5 ;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xBC0123AD ; rt =0x01643721 ; resulth =0x00000004 ;
tests/tcg/mipsel/test_dsp_r1_dpsq_sa_l_w.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =5 ;int resulth, resultl, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xBC0123AD ; rt =0x01643721 ; resulth =0x00BD3A22 ;
tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbl.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =5 ;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xBC0123AD ; rt =0x01643721 ; resulth =0x04 ;
tests/tcg/mipsel/test_dsp_r1_dpsu_h_qbr.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =5 ;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xBC0123AD ; rt =0x01643721 ; resulth =0x04 ;
tests/tcg/mipsel/test_dsp_r1_extp.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, ach, acl, dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0xB4CB ; dsp =0x07 ;
tests/tcg/mipsel/test_dsp_r1_extpdp.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, ach, acl, dsp, pos, efi;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0xB4CB ; dsp =0x07 ;
tests/tcg/mipsel/test_dsp_r1_extpdpv.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, rs, ach, acl, dsp, pos, efi;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0xB4CB ; dsp =0x07 ;
tests/tcg/mipsel/test_dsp_r1_extpv.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, ac, ach, acl, dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0xB4CB ; dsp =0x07 ;
tests/tcg/mipsel/test_dsp_r1_extr_r_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, ach, acl, dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0xB4CB ; result =0xA0001699 ;
tests/tcg/mipsel/test_dsp_r1_extr_rs_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, ach, acl, dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0xB4CB ; result =0x7FFFFFFF ;
tests/tcg/mipsel/test_dsp_r1_extr_s_h.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, ach, acl, dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0xB4CB ; result =0x00007FFF ;
tests/tcg/mipsel/test_dsp_r1_extr_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, ach, acl, dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0xB4CB ; result =0xA0001699 ;
tests/tcg/mipsel/test_dsp_r1_extrv_r_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, rs, ach, acl, dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0xB4CB ; dsp =0x07 ;
tests/tcg/mipsel/test_dsp_r1_extrv_rs_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, rs, ach, acl, dsp =0 ;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x03 ; ach =0x05 ; acl =0xB4CB ;
tests/tcg/mipsel/test_dsp_r1_extrv_s_h.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, rs, ach, acl, dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0xB4CB ; dsp =0x07 ;
tests/tcg/mipsel/test_dsp_r1_extrv_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, rs, ach, acl, dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0xB4CB ; dsp =0x07 ;
tests/tcg/mipsel/test_dsp_r1_insv.c +2 -0
@@ -6,6 +6,8 @@ int main()int rt, rs, dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); +/* msb = 10, lsb = 5 */ dsp =0x305 ; rt =0x12345678 ;
tests/tcg/mipsel/test_dsp_r1_lbux.c +2 -0
@@ -8,6 +8,8 @@ int main(void)unsigned long addr, index;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + value =0xBCDEF389 ; p = &value; addr = (unsigned long )p;
tests/tcg/mipsel/test_dsp_r1_lhx.c +2 -0
@@ -8,6 +8,8 @@ int main(void)unsigned long addr, index;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + value =0xBCDEF389 ; p = &value; addr = (unsigned long )p;
tests/tcg/mipsel/test_dsp_r1_lwx.c +2 -0
@@ -8,6 +8,8 @@ int main(void)unsigned long addr, index;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + value =0xBCDEF389 ; p = &value; addr = (unsigned long )p;
tests/tcg/mipsel/test_dsp_r1_madd.c +2 -0
@@ -8,6 +8,8 @@ int main()int acho, aclo;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + achi =0x05 ; acli =0xB4CB ; rs =0x01 ;
tests/tcg/mipsel/test_dsp_r1_maddu.c +2 -0
@@ -8,6 +8,8 @@ int main()int acho, aclo;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + achi =0x05 ; acli =0xB4CB ; rs =0x01 ;
tests/tcg/mipsel/test_dsp_r1_maq_s_w_phl.c +2 -0
@@ -10,6 +10,8 @@ int main()int resulth, resultl;int resdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + achi =0x00000005 ; acli =0x0000B4CB ; rs =0xFF060000 ;
tests/tcg/mipsel/test_dsp_r1_maq_s_w_phr.c +2 -0
@@ -10,6 +10,8 @@ int main()int resulth, resultl;int resdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + achi =0x00000005 ; acli =0x0000B4CB ; rs =0x0000FF06 ;
tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phl.c +2 -0
@@ -10,6 +10,8 @@ int main()int resulth, resultl;int resdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + achi =0x00000000 ; acli =0x0000B4CB ; rs =0xFF060000 ;
tests/tcg/mipsel/test_dsp_r1_maq_sa_w_phr.c +2 -0
@@ -10,6 +10,8 @@ int main()int resulth, resultl;int resdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + achi =0x00000000 ; acli =0x0000B4CB ; rs =0x0000FF06 ;
tests/tcg/mipsel/test_dsp_r1_mfhi.c +2 -0
@@ -6,6 +6,8 @@ int main()int achi, acho;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + achi =0x004433 ; result =0x004433 ;
tests/tcg/mipsel/test_dsp_r1_mflo.c +2 -0
@@ -6,6 +6,8 @@ int main()int acli, aclo;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + acli =0x004433 ; result =0x004433 ;
tests/tcg/mipsel/test_dsp_r1_modsub.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xFFFFFFFF ; rt =0x000000FF ; result =0xFFFFFF00 ;
tests/tcg/mipsel/test_dsp_r1_msub.c +2 -0
@@ -7,6 +7,8 @@ int main()int acho, aclo;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x00BBAACC ; rt =0x0B1C3D2F ; achi =0x00004433 ;
tests/tcg/mipsel/test_dsp_r1_msubu.c +2 -0
@@ -7,6 +7,8 @@ int main()int acho, aclo;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x00BBAACC ; rt =0x0B1C3D2F ; achi =0x00004433 ;
tests/tcg/mipsel/test_dsp_r1_mthi.c +2 -0
@@ -6,6 +6,8 @@ int main()int achi, acho;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + achi =0x004433 ; result =0x004433 ;
tests/tcg/mipsel/test_dsp_r1_mthlip.c +2 -0
@@ -6,6 +6,8 @@ int main()int rs, ach, acl, dsp;int result, resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + dsp =0x07 ; ach =0x05 ; acl =0xB4CB ;
tests/tcg/mipsel/test_dsp_r1_mtlo.c +2 -0
@@ -6,6 +6,8 @@ int main()int acli, aclo;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + acli =0x004433 ; result =0x004433 ;
tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phl.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x80001234 ; rt =0x80001234 ; result =0x7FFFFFFF ;
tests/tcg/mipsel/test_dsp_r1_muleq_s_w_phr.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x8000 ; rt =0x8000 ; result =0x7FFFFFFF ;
tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbl.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x80001234 ; rt =0x80004321 ; result =0xFFFF0000 ;
tests/tcg/mipsel/test_dsp_r1_muleu_s_ph_qbr.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x8000 ; rt =0x80004321 ; result =0xFFFF0000 ;
tests/tcg/mipsel/test_dsp_r1_mulq_rs_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x80001234 ; rt =0x80004321 ; result =0x7FFF098C ;
tests/tcg/mipsel/test_dsp_r1_mult.c +2 -0
@@ -6,6 +6,8 @@ int main()int rs, rt, ach, acl;int result, resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x00FFBBAA ; rt =0x4B231000 ; resulth =0x4b0f01 ;
tests/tcg/mipsel/test_dsp_r1_multu.c +2 -0
@@ -6,6 +6,8 @@ int main()int rs, rt, ach, acl;int result, resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x00FFBBAA ; rt =0x4B231000 ; resulth =0x4b0f01 ;
tests/tcg/mipsel/test_dsp_r1_packrl_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x56788765 ;
tests/tcg/mipsel/test_dsp_r1_pick_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; dsp =0x0A000000 ;
tests/tcg/mipsel/test_dsp_r1_pick_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; dsp =0x0f000000 ;
tests/tcg/mipsel/test_dsp_r1_preceq_w_phl.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0x87650000 ;
tests/tcg/mipsel/test_dsp_r1_preceq_w_phr.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0x43210000 ;
tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbl.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0x43803280 ;
tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbla.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0x43802180 ;
tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbr.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0x21801080 ;
tests/tcg/mipsel/test_dsp_r1_precequ_ph_qbra.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0x32801080 ;
tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbl.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0x00870065 ;
tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbla.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0x00870043 ;
tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbr.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0x00430021 ;
tests/tcg/mipsel/test_dsp_r1_preceu_ph_qbra.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0x00650021 ;
tests/tcg/mipsel/test_dsp_r1_precrq_ph_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x12348765 ;
tests/tcg/mipsel/test_dsp_r1_precrq_qb_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x12568743 ;
tests/tcg/mipsel/test_dsp_r1_precrq_rs_ph_w.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x12348765 ;
tests/tcg/mipsel/test_dsp_r1_precrqu_s_qb_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87657FFF ; result =0x24AC00FF ;
tests/tcg/mipsel/test_dsp_r1_raddu_w_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; result =0x114 ;
tests/tcg/mipsel/test_dsp_r1_rddsp.c +2 -0
@@ -7,6 +7,8 @@ int main()int ccond_i, outflag_i, efi_i, c_i, scount_i, pos_i;int ccond_o, outflag_o, efi_o, c_o, scount_o, pos_o; + __asm("wrdsp $zero, 0x3f\n\t" ); + ccond_i =0x0000000C ;/* 4 */ outflag_i =0x0000001B ;/* 3 */ efi_i =0x00000001 ;/* 5 */
tests/tcg/mipsel/test_dsp_r1_repl_ph.c +2 -0
@@ -5,6 +5,8 @@ int main() {int rd, result; + __asm("wrdsp $zero, 0x3f\n\t" ); + result =0x01BF01BF ; __asm ("repl.ph %0, 0x1BF\n\t"
tests/tcg/mipsel/test_dsp_r1_repl_qb.c +2 -0
@@ -5,6 +5,8 @@ int main() {int rd, result; + __asm("wrdsp $zero, 0x3f\n\t" ); + result =0xBFBFBFBF ; __asm ("repl.qb %0, 0xBF\n\t"
tests/tcg/mipsel/test_dsp_r1_replv_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x12345678 ; result =0x56785678 ; __asm
tests/tcg/mipsel/test_dsp_r1_replv_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x12345678 ; result =0x78787878 ; __asm
tests/tcg/mipsel/test_dsp_r1_shilo.c +2 -0
@@ -6,6 +6,8 @@ int main()int ach, acl;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0xBBAACCFF ; acl =0x1C3B001D ;
tests/tcg/mipsel/test_dsp_r1_shilov.c +2 -0
@@ -6,6 +6,8 @@ int main()int rs, ach, acl;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x0F ; ach =0xBBAACCFF ; acl =0x1C3B001D ;
tests/tcg/mipsel/test_dsp_r1_shll_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x12345678 ; result =0xA000C000 ; resultdsp =1 ;
tests/tcg/mipsel/test_dsp_r1_shll_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0x87654321 ; resultdsp =0x00 ;
tests/tcg/mipsel/test_dsp_r1_shll_s_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x12345678 ; result =0x7FFF7FFF ; resultdsp =0x01 ;
tests/tcg/mipsel/test_dsp_r1_shll_s_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x82345678 ; result =0x82345678 ; resultdsp =0x00 ;
tests/tcg/mipsel/test_dsp_r1_shllv_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x0 ; rt =0x12345678 ; result =0x12345678 ;
tests/tcg/mipsel/test_dsp_r1_shllv_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x03 ; rt =0x87654321 ; result =0x38281808 ;
tests/tcg/mipsel/test_dsp_r1_shllv_s_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x0 ; rt =0x12345678 ; result =0x12345678 ;
tests/tcg/mipsel/test_dsp_r1_shllv_s_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x0B ; rt =0x12345678 ; result =0x7FFFFFFF ;
tests/tcg/mipsel/test_dsp_r1_shra_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0xF0EC0864 ;
tests/tcg/mipsel/test_dsp_r1_shra_r_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0xF0ED0864 ;
tests/tcg/mipsel/test_dsp_r1_shra_r_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x87654321 ; result =0xF0ECA864 ;
tests/tcg/mipsel/test_dsp_r1_shrav_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x03 ; rt =0x87654321 ; result =0xF0EC0864 ;
tests/tcg/mipsel/test_dsp_r1_shrav_r_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x03 ; rt =0x87654321 ; result =0xF0ED0864 ;
tests/tcg/mipsel/test_dsp_r1_shrav_r_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x03 ; rt =0x87654321 ; result =0xF0ECA864 ;
tests/tcg/mipsel/test_dsp_r1_shrl_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x12345678 ; result =0x00010203 ;
tests/tcg/mipsel/test_dsp_r1_shrlv_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x05 ; rt =0x12345678 ; result =0x00010203 ;
tests/tcg/mipsel/test_dsp_r1_subq_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x77777777 ; rt =0x67654321 ; result =0x10123456 ;
tests/tcg/mipsel/test_dsp_r1_subq_s_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x7FFF1357 ;
tests/tcg/mipsel/test_dsp_r1_subq_s_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x7FFFFFFF ;
tests/tcg/mipsel/test_dsp_r1_subu_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x8BCF1357 ;
tests/tcg/mipsel/test_dsp_r1_subu_s_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x00001357 ;
tests/tcg/mipsel/test_dsp_r1_wrdsp.c +2 -0
@@ -7,6 +7,8 @@ int main()int ccond_i, outflag_i, efi_i, c_i, scount_i, pos_i;int ccond_o, outflag_o, efi_o, c_o, scount_o, pos_o; + __asm("wrdsp $zero, 0x3f\n\t" ); + ccond_i =0x000000BC ;/* 4 */ outflag_i =0x0000001B ;/* 3 */ efi_i =0x00000001 ;/* 5 */
tests/tcg/mipsel/test_dsp_r2_absq_s_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int input, result, dsp;int hope; + __asm("wrdsp $zero, 0x3f\n\t" ); + input =0x701BA35E ; hope =0x701B5D5E ;
tests/tcg/mipsel/test_dsp_r2_addqh_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x706A13FE ; rt =0x13065174 ; result =0x41B832B9 ;
tests/tcg/mipsel/test_dsp_r2_addqh_r_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x706A13FE ; rt =0x13065174 ; result =0x41B832B9 ;
tests/tcg/mipsel/test_dsp_r2_addqh_r_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x00000010 ; rt =0x00000001 ; result =0x00000009 ;
tests/tcg/mipsel/test_dsp_r2_addqh_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x00000010 ; rt =0x00000001 ; result =0x00000008 ;
tests/tcg/mipsel/test_dsp_r2_addu_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x00FF00FF ; rt =0x00010001 ; result =0x01000100 ;
tests/tcg/mipsel/test_dsp_r2_addu_s_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x00FE00FE ; rt =0x00020001 ; result =0x010000FF ;
tests/tcg/mipsel/test_dsp_r2_adduh_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xFF0055AA ; rt =0x0113421B ; result =0x80094B62 ;
tests/tcg/mipsel/test_dsp_r2_adduh_r_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xFF0055AA ; rt =0x01112211 ; result =0x80093C5E ;
tests/tcg/mipsel/test_dsp_r2_append.c +2 -0
@@ -6,6 +6,8 @@ int main()int rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xFF0055AA ; rt =0x0113421B ; result =0x02268436 ;
tests/tcg/mipsel/test_dsp_r2_balign.c +2 -0
@@ -6,6 +6,8 @@ int main()int rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xFF0055AA ; rt =0x0113421B ; result =0x13421BFF ;
tests/tcg/mipsel/test_dsp_r2_cmpgdu_eq_qb.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x11777066 ; rt =0x55AA70FF ; result =0x02 ;
tests/tcg/mipsel/test_dsp_r2_cmpgdu_le_qb.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x11777066 ; rt =0x55AA70FF ; result =0x0F ;
tests/tcg/mipsel/test_dsp_r2_cmpgdu_lt_qb.c +2 -0
@@ -7,6 +7,8 @@ int main()int dsp;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x11777066 ; rt =0x55AA70FF ; result =0x0D ;
tests/tcg/mipsel/test_dsp_r2_dpa_w_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =5 ;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x00FF00FF ; rt =0x00010002 ; resulth =0x05 ;
tests/tcg/mipsel/test_dsp_r2_dpaqx_s_w_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =5 ;int resulth, resultl, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x800000FF ; rt =0x00018000 ; resulth =0x05 ;
tests/tcg/mipsel/test_dsp_r2_dpaqx_sa_w_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach, acl;int resulth, resultl, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x00000005 ; acl =0x00000005 ; rs =0x00FF00FF ;
tests/tcg/mipsel/test_dsp_r2_dpax_w_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =5 ;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x00FF00FF ; rt =0x00010002 ; resulth =0x05 ;
tests/tcg/mipsel/test_dsp_r2_dps_w_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =5 ;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x00FF00FF ; rt =0x00010002 ; resulth =0x04 ;
tests/tcg/mipsel/test_dsp_r2_dpsqx_s_w_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =5 ;int resulth, resultl, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xBC0123AD ; rt =0x01643721 ; resulth =0x00000005 ;
tests/tcg/mipsel/test_dsp_r2_dpsqx_sa_w_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =5 ;int resulth, resultl, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xBC0123AD ; rt =0x01643721 ; resulth =0x00 ;
tests/tcg/mipsel/test_dsp_r2_dpsx_w_ph.c +2 -0
@@ -7,6 +7,8 @@ int main()int ach =5 , acl =5 ;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0xBC0123AD ; rt =0x01643721 ; resulth =0x05 ;
tests/tcg/mipsel/test_dsp_r2_mul_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x03FB1234 ; rt =0x0BCC4321 ; result =0xF504F4B4 ;
tests/tcg/mipsel/test_dsp_r2_mul_s_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x03FB1234 ; rt =0x0BCC4321 ; result =0x7fff7FFF ;
tests/tcg/mipsel/test_dsp_r2_mulq_rs_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x80001234 ; rt =0x80004321 ; result =0x7FFFAAAB ;
tests/tcg/mipsel/test_dsp_r2_mulq_s_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x80000000 ; rt =0x0ffc0000 ; result =0xF0040000 ;
tests/tcg/mipsel/test_dsp_r2_mulq_s_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x80001234 ; rt =0x80004321 ; result =0x7FFFAAAB ;
tests/tcg/mipsel/test_dsp_r2_mulsa_w_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rs, rt, ach, acl;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0x00BBDDCC ; rs =0x80001234 ;
tests/tcg/mipsel/test_dsp_r2_mulsaq_s_w_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rs, rt, ach, acl;int resulth, resultl; + __asm("wrdsp $zero, 0x3f\n\t" ); + ach =0x05 ; acl =0x00BBDDCC ; rs =0x80001234 ;
tests/tcg/mipsel/test_dsp_r2_precr_qb_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x34786521 ;
tests/tcg/mipsel/test_dsp_r2_precr_sra_ph_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x43215678 ;
tests/tcg/mipsel/test_dsp_r2_precr_sra_r_ph_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x43215678 ;
tests/tcg/mipsel/test_dsp_r2_prepend.c +2 -0
@@ -6,6 +6,8 @@ int main()int rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x87654321 ;
tests/tcg/mipsel/test_dsp_r2_shra_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x12345678 ; result =0x02060A0F ;
tests/tcg/mipsel/test_dsp_r2_shra_r_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x12345678 ; result =0x02070B0F ;
tests/tcg/mipsel/test_dsp_r2_shrav_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x03 ; rt =0x12345678 ; result =0x02060A0F ;
tests/tcg/mipsel/test_dsp_r2_shrav_r_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x03 ; rt =0x12345678 ; result =0x02070B0F ;
tests/tcg/mipsel/test_dsp_r2_shrl_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rt =0x12345678 ; result =0x009102B3 ;
tests/tcg/mipsel/test_dsp_r2_shrlv_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x05 ; rt =0x12345678 ; result =0x009102B3 ;
tests/tcg/mipsel/test_dsp_r2_subqh_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x456709AB ;
tests/tcg/mipsel/test_dsp_r2_subqh_r_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x456809AC ;
tests/tcg/mipsel/test_dsp_r2_subqh_r_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x456789AC ;
tests/tcg/mipsel/test_dsp_r2_subqh_w.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0x456789AB ;
tests/tcg/mipsel/test_dsp_r2_subu_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x87654321 ; rt =0x11111111 ; result =0x76543210 ;
tests/tcg/mipsel/test_dsp_r2_subu_s_ph.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt, dsp;int result, resultdsp; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x87654321 ; rt =0x12345678 ; result =0x75310000 ;
tests/tcg/mipsel/test_dsp_r2_subuh_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0xC5E7092B ;
tests/tcg/mipsel/test_dsp_r2_subuh_r_qb.c +2 -0
@@ -6,6 +6,8 @@ int main()int rd, rs, rt;int result; + __asm("wrdsp $zero, 0x3f\n\t" ); + rs =0x12345678 ; rt =0x87654321 ; result =0xC6E80A2C ;
Signature · 1 line
2.55.0
PATCH 2/4 tests/tcg/mips: Group DSP tests
In reply to Philippe Mathieu-DaudéAlthough meson parallelize build, building the 159 tests is overkill. Keep the per-opcode files unchanged, but add 8 new files for each group of instructions:
- arith: add, subtract, absq, modsub, raddu
- cmp: cmp, cmpu, cmpgu, cmpgdu, pick
- dot: dpa/dps, maq, madd/msub, mult, mulsa
- mul: muleq, muleu, mulq, mul
- acc: ext*, shilo, mthlip, mfhi/mflo/mthi/mtlo
- shift: shll, shra, shrl and their variants
- pack: prece*, precr*, packrl, repl, append/prepend/balign, bitrev, insv
- ctrl: lbux/lhx/lwx, bposge32, rddsp/wrdsp
The tests still call assert() so the first failure aborts the whole group but we can still identify the opcode in the assert message.
Drop the unuseful hello-world file.
--- 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_main.c | 6 - tests/tcg/mipsel/test_dsp_shift.c | 120 +++++++++++++++++++ tests/tcg/mipsel/meson.build | 168 ++------------------------ 10 files changed, 883 insertions(+), 166 deletions(-) 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
tests/tcg/mipsel/test_dsp_acc.c new file +105 -0
@@ -0,0 +1,105 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS DSP ASE tests: accumulator access and extract */ + +#define main test_dsp_r1_extp +#include "test_dsp_r1_extp.c" +#undef main + +#define main test_dsp_r1_extpdp +#include "test_dsp_r1_extpdp.c" +#undef main + +#define main test_dsp_r1_extpdpv +#include "test_dsp_r1_extpdpv.c" +#undef main + +#define main test_dsp_r1_extpv +#include "test_dsp_r1_extpv.c" +#undef main + +#define main test_dsp_r1_extr_r_w +#include "test_dsp_r1_extr_r_w.c" +#undef main + +#define main test_dsp_r1_extr_rs_w +#include "test_dsp_r1_extr_rs_w.c" +#undef main + +#define main test_dsp_r1_extr_s_h +#include "test_dsp_r1_extr_s_h.c" +#undef main + +#define main test_dsp_r1_extr_w +#include "test_dsp_r1_extr_w.c" +#undef main + +#define main test_dsp_r1_extrv_r_w +#include "test_dsp_r1_extrv_r_w.c" +#undef main + +#define main test_dsp_r1_extrv_rs_w +#include "test_dsp_r1_extrv_rs_w.c" +#undef main + +#define main test_dsp_r1_extrv_s_h +#include "test_dsp_r1_extrv_s_h.c" +#undef main + +#define main test_dsp_r1_extrv_w +#include "test_dsp_r1_extrv_w.c" +#undef main + +#define main test_dsp_r1_mfhi +#include "test_dsp_r1_mfhi.c" +#undef main + +#define main test_dsp_r1_mflo +#include "test_dsp_r1_mflo.c" +#undef main + +#define main test_dsp_r1_mthi +#include "test_dsp_r1_mthi.c" +#undef main + +#define main test_dsp_r1_mthlip +#include "test_dsp_r1_mthlip.c" +#undef main + +#define main test_dsp_r1_mtlo +#include "test_dsp_r1_mtlo.c" +#undef main + +#define main test_dsp_r1_shilo +#include "test_dsp_r1_shilo.c" +#undef main + +#define main test_dsp_r1_shilov +#include "test_dsp_r1_shilov.c" +#undef main + +int main (void ) +{ +int ret =0 ; + + ret |=test_dsp_r1_extp (); + ret |=test_dsp_r1_extpdp (); + ret |=test_dsp_r1_extpdpv (); + ret |=test_dsp_r1_extpv (); + ret |=test_dsp_r1_extr_r_w (); + ret |=test_dsp_r1_extr_rs_w (); + ret |=test_dsp_r1_extr_s_h (); + ret |=test_dsp_r1_extr_w (); + ret |=test_dsp_r1_extrv_r_w (); + ret |=test_dsp_r1_extrv_rs_w (); + ret |=test_dsp_r1_extrv_s_h (); + ret |=test_dsp_r1_extrv_w (); + ret |=test_dsp_r1_mfhi (); + ret |=test_dsp_r1_mflo (); + ret |=test_dsp_r1_mthi (); + ret |=test_dsp_r1_mthlip (); + ret |=test_dsp_r1_mtlo (); + ret |=test_dsp_r1_shilo (); + ret |=test_dsp_r1_shilov (); + +return ret; +}
tests/tcg/mipsel/test_dsp_arith.c new file +175 -0
175 lines not on this page · raw message
tests/tcg/mipsel/test_dsp_cmp.c new file +80 -0
80 lines not on this page · raw message
tests/tcg/mipsel/test_dsp_ctrl.c new file +40 -0
@@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS DSP ASE tests: indexed load and DSPControl access */ + +#define main test_dsp_r1_bposge32 +#include "test_dsp_r1_bposge32.c" +#undef main + +#define main test_dsp_r1_lbux +#include "test_dsp_r1_lbux.c" +#undef main + +#define main test_dsp_r1_lhx +#include "test_dsp_r1_lhx.c" +#undef main + +#define main test_dsp_r1_lwx +#include "test_dsp_r1_lwx.c" +#undef main + +#define main test_dsp_r1_rddsp +#include "test_dsp_r1_rddsp.c" +#undef main + +#define main test_dsp_r1_wrdsp +#include "test_dsp_r1_wrdsp.c" +#undef main + +int main (void ) +{ +int ret =0 ; + + ret |=test_dsp_r1_bposge32 (); + ret |=test_dsp_r1_lbux (); + ret |=test_dsp_r1_lhx (); + ret |=test_dsp_r1_lwx (); + ret |=test_dsp_r1_rddsp (); + ret |=test_dsp_r1_wrdsp (); + +return ret; +}
tests/tcg/mipsel/test_dsp_dot.c new file +150 -0
150 lines not on this page · raw message
tests/tcg/mipsel/test_dsp_mul.c new file +60 -0
60 lines not on this page · raw message
tests/tcg/mipsel/test_dsp_pack.c new file +145 -0
145 lines not on this page · raw message
tests/tcg/mipsel/test_dsp_r1_main.c deleted +0 -6
@@ -1,6 +0,0 @@ -#include <stdio.h> - -int main () -{ -printf ("hello world\n" ); -}
tests/tcg/mipsel/test_dsp_shift.c new file +120 -0
120 lines not on this page · raw message
tests/tcg/mipsel/meson.build +8 -160
174 lines not on this page · raw message
Signature · 1 line
2.55.0
PATCH 3/4 tests/tcg/mips: Group Release 6 tests
In reply to Philippe Mathieu-DaudéAlthough meson parallelize build, building the 32 tests is overkill. Keep the per-opcode files unchanged, but add 5 new files for each group of instructions:
- logic: and, nor, or, xor
- bitopts: bitswap, dbitswap, clo, clz, dclo, dclz
- multiply: mul, muh, mulu, muhu, dmul, dmuh, dmulu, dmuhu
- shift: sllv, srav, srlv, dsllv, dsrav, dsrlv
- crc: crc32b/h/w/d, crc32cb/ch/cw/cd
These tests return a status instead of calling assert(), so one failing test doesn't stop the rest of its group (except if crashing on an illegal instruction).
--- 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/mips64/meson.build | 37 ++------------- 6 files changed, 247 insertions(+), 32 deletions(-) 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
tests/tcg/mips64/test_mips64r6_bitops.c new file +46 -0
@@ -0,0 +1,46 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS64R6 tests: bit count and bit swap */ + +#define main test_mips64r6_bitswap +#include "test_mips64r6_bitswap.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dbitswap +#include "test_mips64r6_dbitswap.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_clo +#include "test_mips64r6_clo.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_clz +#include "test_mips64r6_clz.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dclo +#include "test_mips64r6_dclo.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_dclz +#include "test_mips64r6_dclz.c" +#undef main +#undef TEST_COUNT_TOTAL + +int main (void ) +{ +int ret =0 ; + + ret |=test_mips64r6_bitswap (); + ret |=test_mips64r6_dbitswap (); + ret |=test_mips64r6_clo (); + ret |=test_mips64r6_clz (); + ret |=test_mips64r6_dclo (); + ret |=test_mips64r6_dclz (); + +return ret ?1 :0 ; +}
tests/tcg/mips64/test_mips64r6_crc.c new file +58 -0
58 lines not on this page · raw message
tests/tcg/mips64/test_mips64r6_logic.c new file +34 -0
@@ -0,0 +1,34 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS64R6 tests: logical */ + +#define main test_mips64r6_and +#include "test_mips64r6_and.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_nor +#include "test_mips64r6_nor.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_or +#include "test_mips64r6_or.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_mips64r6_xor +#include "test_mips64r6_xor.c" +#undef main +#undef TEST_COUNT_TOTAL + +int main (void ) +{ +int ret =0 ; + + ret |=test_mips64r6_and (); + ret |=test_mips64r6_nor (); + ret |=test_mips64r6_or (); + ret |=test_mips64r6_xor (); + +return ret ?1 :0 ; +}
tests/tcg/mips64/test_mips64r6_multiply.c new file +58 -0
58 lines not on this page · raw message
tests/tcg/mips64/test_mips64r6_shift.c new file +46 -0
46 lines not on this page · raw message
tests/tcg/mips64/meson.build +5 -32
@@ -27,38 +27,11 @@ endif tests = [] tests_mips64r6 = [ - '../mips64/test_mips64r6_and.c', - '../mips64/test_mips64r6_bitswap.c', - '../mips64/test_mips64r6_clo.c', - '../mips64/test_mips64r6_clz.c', - '../mips64/test_mips64r6_crc32b.c', - '../mips64/test_mips64r6_crc32cb.c', - '../mips64/test_mips64r6_crc32cd.c', - '../mips64/test_mips64r6_crc32ch.c', - '../mips64/test_mips64r6_crc32cw.c', - '../mips64/test_mips64r6_crc32d.c', - '../mips64/test_mips64r6_crc32h.c', - '../mips64/test_mips64r6_crc32w.c', - '../mips64/test_mips64r6_dbitswap.c', - '../mips64/test_mips64r6_dclo.c', - '../mips64/test_mips64r6_dclz.c', - '../mips64/test_mips64r6_dmuh.c', - '../mips64/test_mips64r6_dmuhu.c', - '../mips64/test_mips64r6_dmul.c', - '../mips64/test_mips64r6_dmulu.c', - '../mips64/test_mips64r6_dsllv.c', - '../mips64/test_mips64r6_dsrav.c', - '../mips64/test_mips64r6_dsrlv.c', - '../mips64/test_mips64r6_muh.c', - '../mips64/test_mips64r6_muhu.c', - '../mips64/test_mips64r6_mul.c', - '../mips64/test_mips64r6_mulu.c', - '../mips64/test_mips64r6_nor.c', - '../mips64/test_mips64r6_or.c', - '../mips64/test_mips64r6_sllv.c', - '../mips64/test_mips64r6_srav.c', - '../mips64/test_mips64r6_srlv.c', - '../mips64/test_mips64r6_xor.c', + '../mips64/test_mips64r6_bitops.c', + '../mips64/test_mips64r6_crc.c', + '../mips64/test_mips64r6_logic.c', + '../mips64/test_mips64r6_multiply.c', + '../mips64/test_mips64r6_shift.c', ] foreach src: tests_mips64r6
Signature · 1 line
2.55.0
PATCH 4/4 tests/tcg/mips: Group MSA tests
In reply to Philippe Mathieu-DaudéAlthough meson parallelize build, building 822 test executables (274 tests * 3 for each target) is overkill. Keep the per-opcode files unchanged, but add 17 new files for each group of instructions:
- int-subtract
- int-add
- int-max-min
- int-compare
- shift
- int-dot-product
- int-average
- interleave
- int-divide + int-modulo
- pack
- int-multiply
- fixed-multiply
- bit-set
- bit-count
- bit-move
- float-max-min
- logic + move
This reduce to 51 executables.
--- .../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/mips/meson.build | 291 +----------------- 18 files changed, 1831 insertions(+), 274 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
tests/tcg/mips/user/ase/msa/test_msa_group_bit_count.c new file +82 -0
@@ -0,0 +1,82 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS MSA tests: Bit Count */ + +#define main test_msa_nloc_b +#include "bit-count/test_msa_nloc_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nloc_d +#include "bit-count/test_msa_nloc_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nloc_h +#include "bit-count/test_msa_nloc_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nloc_w +#include "bit-count/test_msa_nloc_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nlzc_b +#include "bit-count/test_msa_nlzc_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nlzc_d +#include "bit-count/test_msa_nlzc_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nlzc_h +#include "bit-count/test_msa_nlzc_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nlzc_w +#include "bit-count/test_msa_nlzc_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pcnt_b +#include "bit-count/test_msa_pcnt_b.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pcnt_d +#include "bit-count/test_msa_pcnt_d.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pcnt_h +#include "bit-count/test_msa_pcnt_h.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_pcnt_w +#include "bit-count/test_msa_pcnt_w.c" +#undef main +#undef TEST_COUNT_TOTAL + +int main (void ) +{ +int ret =0 ; + + ret |=test_msa_nloc_b (); + ret |=test_msa_nloc_d (); + ret |=test_msa_nloc_h (); + ret |=test_msa_nloc_w (); + ret |=test_msa_nlzc_b (); + ret |=test_msa_nlzc_d (); + ret |=test_msa_nlzc_h (); + ret |=test_msa_nlzc_w (); + ret |=test_msa_pcnt_b (); + ret |=test_msa_pcnt_d (); + ret |=test_msa_pcnt_h (); + ret |=test_msa_pcnt_w (); + +return ret ?1 :0 ; +}
tests/tcg/mips/user/ase/msa/test_msa_group_bit_move.c new file +76 -0
76 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_bit_set.c new file +82 -0
82 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_fixed_multiply.c new file +82 -0
82 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_float_max_min.c new file +58 -0
58 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_int_add.c new file +166 -0
166 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_int_average.c new file +106 -0
106 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_int_compare.c new file +130 -0
130 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_int_div_mod.c new file +106 -0
106 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_int_dot_product.c new file +118 -0
118 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_int_max_min.c new file +154 -0
154 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_int_multiply.c new file +82 -0
82 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_int_subtract.c new file +214 -0
214 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_interleave.c new file +106 -0
106 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_logic.c new file +40 -0
@@ -0,0 +1,40 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* MIPS MSA tests: Logic and Move */ + +#define main test_msa_and_v +#include "logic/test_msa_and_v.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_nor_v +#include "logic/test_msa_nor_v.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_or_v +#include "logic/test_msa_or_v.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_xor_v +#include "logic/test_msa_xor_v.c" +#undef main +#undef TEST_COUNT_TOTAL + +#define main test_msa_move_v +#include "move/test_msa_move_v.c" +#undef main +#undef TEST_COUNT_TOTAL + +int main (void ) +{ +int ret =0 ; + + ret |=test_msa_and_v (); + ret |=test_msa_nor_v (); + ret |=test_msa_or_v (); + ret |=test_msa_xor_v (); + ret |=test_msa_move_v (); + +return ret ?1 :0 ; +}
tests/tcg/mips/user/ase/msa/test_msa_group_pack.c new file +82 -0
82 lines not on this page · raw message
tests/tcg/mips/user/ase/msa/test_msa_group_shift.c new file +130 -0
130 lines not on this page · raw message
tests/tcg/mips/meson.build +17 -274
295 lines not on this page · raw message
Signature · 1 line
2.55.0
Quoted 11 lines · Philippe Mathieu-Daudé
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_64docker 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
Quoted 17 lines · Pierrick Bouvier
Quoted 11 lines · Philippe Mathieu-Daudé
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_64docker 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 testsThat'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.
Quoted 7 lines
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.
Quoted 21 lines · Philippe Mathieu-Daudé
Quoted 20 lines · Pierrick Bouvier
Quoted 11 lines · Philippe Mathieu-Daudé
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_64docker 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 testsThat'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.
Quoted 8 lines
Quoted 4 lines
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.
Quoted 1 line
I'll rework patch 2 (indeed 1 is then unnecessary) and respin, thanks.
Quoted 27 lines · Pierrick Bouvier
Quoted 26 lines · Philippe Mathieu-Daudé
Quoted 24 lines · Pierrick Bouvier
Quoted 11 lines · Philippe Mathieu-Daudé
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_64docker 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 testsThat'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.
Quoted 5 lines
Quoted 3 lines
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.
Quoted 3 lines
Quoted 1 line
I'll rework patch 2 (indeed 1 is then unnecessary) and respin, thanks.