tests/tcg: target/mips: Add utility function reset_msa_registers()
commitca693d1c9271e27e8a02cd11a5bb3248cbbcf420
authorAleksandar Markovic <amarkovic@wavecomp.com>
Thu, 6 Jun 2019 16:27:18 +0000 (6 18:27 +0200)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Fri, 7 Jun 2019 09:53:07 +0000 (7 11:53 +0200)
tree54f5c3ed423b9170a4629591a538cf040855ee56
parentb7c6798220b6a9106a1028ea858acb3332db56d9
tests/tcg: target/mips: Add utility function reset_msa_registers()

Add function reset_msa_registers() and utilize it in each MSA test.
This is needed to ensure independency of test results on the state of
MSA registers before test execution. This also allows for correction
of tests for VSHF* instructions, that are now independent on the
previous state of MSA registers.

Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com>
Message-Id: <1559838440-9866-9-git-send-email-aleksandar.markovic@rt-rk.com>
227 files changed:
tests/tcg/mips/include/wrappers_msa.h
tests/tcg/mips/user/ase/msa/bit-count/test_msa_nloc_b.c
tests/tcg/mips/user/ase/msa/bit-count/test_msa_nloc_d.c
tests/tcg/mips/user/ase/msa/bit-count/test_msa_nloc_h.c
tests/tcg/mips/user/ase/msa/bit-count/test_msa_nloc_w.c
tests/tcg/mips/user/ase/msa/bit-count/test_msa_nlzc_b.c
tests/tcg/mips/user/ase/msa/bit-count/test_msa_nlzc_d.c
tests/tcg/mips/user/ase/msa/bit-count/test_msa_nlzc_h.c
tests/tcg/mips/user/ase/msa/bit-count/test_msa_nlzc_w.c
tests/tcg/mips/user/ase/msa/bit-count/test_msa_pcnt_b.c
tests/tcg/mips/user/ase/msa/bit-count/test_msa_pcnt_d.c
tests/tcg/mips/user/ase/msa/bit-count/test_msa_pcnt_h.c
tests/tcg/mips/user/ase/msa/bit-count/test_msa_pcnt_w.c
tests/tcg/mips/user/ase/msa/bit-set/test_msa_bclr_b.c
tests/tcg/mips/user/ase/msa/bit-set/test_msa_bclr_d.c
tests/tcg/mips/user/ase/msa/bit-set/test_msa_bclr_h.c
tests/tcg/mips/user/ase/msa/bit-set/test_msa_bclr_w.c
tests/tcg/mips/user/ase/msa/bit-set/test_msa_bneg_b.c
tests/tcg/mips/user/ase/msa/bit-set/test_msa_bneg_d.c
tests/tcg/mips/user/ase/msa/bit-set/test_msa_bneg_h.c
tests/tcg/mips/user/ase/msa/bit-set/test_msa_bneg_w.c
tests/tcg/mips/user/ase/msa/bit-set/test_msa_bset_b.c
tests/tcg/mips/user/ase/msa/bit-set/test_msa_bset_d.c
tests/tcg/mips/user/ase/msa/bit-set/test_msa_bset_h.c
tests/tcg/mips/user/ase/msa/bit-set/test_msa_bset_w.c
tests/tcg/mips/user/ase/msa/fixed-multiply/test_msa_mul_q_h.c
tests/tcg/mips/user/ase/msa/fixed-multiply/test_msa_mul_q_w.c
tests/tcg/mips/user/ase/msa/fixed-multiply/test_msa_mulr_q_h.c
tests/tcg/mips/user/ase/msa/fixed-multiply/test_msa_mulr_q_w.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_add_a_b.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_add_a_d.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_add_a_h.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_add_a_w.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_a_b.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_a_d.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_a_h.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_a_w.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_s_b.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_s_d.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_s_h.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_s_w.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_u_b.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_u_d.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_u_h.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_u_w.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_addv_b.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_addv_d.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_addv_h.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_addv_w.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_hadd_s_d.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_hadd_s_h.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_hadd_s_w.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_hadd_u_d.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_hadd_u_h.c
tests/tcg/mips/user/ase/msa/int-add/test_msa_hadd_u_w.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_ave_s_b.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_ave_s_d.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_ave_s_h.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_ave_s_w.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_ave_u_b.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_ave_u_d.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_ave_u_h.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_ave_u_w.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_aver_s_b.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_aver_s_d.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_aver_s_h.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_aver_s_w.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_aver_u_b.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_aver_u_d.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_aver_u_h.c
tests/tcg/mips/user/ase/msa/int-average/test_msa_aver_u_w.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_ceq_b.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_ceq_d.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_ceq_h.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_ceq_w.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_s_b.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_s_d.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_s_h.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_s_w.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_u_b.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_u_d.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_u_h.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_cle_u_w.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_s_b.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_s_d.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_s_h.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_s_w.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_u_b.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_u_d.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_u_h.c
tests/tcg/mips/user/ase/msa/int-compare/test_msa_clt_u_w.c
tests/tcg/mips/user/ase/msa/int-divide/test_msa_div_s_b.c
tests/tcg/mips/user/ase/msa/int-divide/test_msa_div_s_d.c
tests/tcg/mips/user/ase/msa/int-divide/test_msa_div_s_h.c
tests/tcg/mips/user/ase/msa/int-divide/test_msa_div_s_w.c
tests/tcg/mips/user/ase/msa/int-divide/test_msa_div_u_b.c
tests/tcg/mips/user/ase/msa/int-divide/test_msa_div_u_d.c
tests/tcg/mips/user/ase/msa/int-divide/test_msa_div_u_h.c
tests/tcg/mips/user/ase/msa/int-divide/test_msa_div_u_w.c
tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dotp_s_d.c
tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dotp_s_h.c
tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dotp_s_w.c
tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dotp_u_d.c
tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dotp_u_h.c
tests/tcg/mips/user/ase/msa/int-dot-product/test_msa_dotp_u_w.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_a_b.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_a_d.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_a_h.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_a_w.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_s_b.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_s_d.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_s_h.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_s_w.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_u_b.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_u_d.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_u_h.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_max_u_w.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_a_b.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_a_d.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_a_h.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_a_w.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_s_b.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_s_d.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_s_h.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_s_w.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_u_b.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_u_d.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_u_h.c
tests/tcg/mips/user/ase/msa/int-max-min/test_msa_min_u_w.c
tests/tcg/mips/user/ase/msa/int-modulo/test_msa_mod_s_b.c
tests/tcg/mips/user/ase/msa/int-modulo/test_msa_mod_s_d.c
tests/tcg/mips/user/ase/msa/int-modulo/test_msa_mod_s_h.c
tests/tcg/mips/user/ase/msa/int-modulo/test_msa_mod_s_w.c
tests/tcg/mips/user/ase/msa/int-modulo/test_msa_mod_u_b.c
tests/tcg/mips/user/ase/msa/int-modulo/test_msa_mod_u_d.c
tests/tcg/mips/user/ase/msa/int-modulo/test_msa_mod_u_h.c
tests/tcg/mips/user/ase/msa/int-modulo/test_msa_mod_u_w.c
tests/tcg/mips/user/ase/msa/int-multiply/test_msa_mulv_b.c
tests/tcg/mips/user/ase/msa/int-multiply/test_msa_mulv_d.c
tests/tcg/mips/user/ase/msa/int-multiply/test_msa_mulv_h.c
tests/tcg/mips/user/ase/msa/int-multiply/test_msa_mulv_w.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_asub_s_b.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_asub_s_d.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_asub_s_h.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_asub_s_w.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_asub_u_b.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_asub_u_d.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_asub_u_h.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_asub_u_w.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_hsub_s_d.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_hsub_s_h.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_hsub_s_w.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_hsub_u_d.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_hsub_u_h.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_hsub_u_w.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subs_s_b.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subs_s_d.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subs_s_h.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subs_s_w.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subs_u_b.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subs_u_d.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subs_u_h.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subs_u_w.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subsus_u_b.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subsus_u_d.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subsus_u_h.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subsus_u_w.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subsuu_s_b.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subsuu_s_d.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subsuu_s_h.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subsuu_s_w.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subv_b.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subv_d.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subv_h.c
tests/tcg/mips/user/ase/msa/int-subtract/test_msa_subv_w.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvev_b.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvev_d.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvev_h.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvev_w.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvl_b.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvl_d.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvl_h.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvl_w.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvod_b.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvod_d.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvod_h.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvod_w.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvr_b.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvr_d.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvr_h.c
tests/tcg/mips/user/ase/msa/interleave/test_msa_ilvr_w.c
tests/tcg/mips/user/ase/msa/logic/test_msa_and_v.c
tests/tcg/mips/user/ase/msa/logic/test_msa_nor_v.c
tests/tcg/mips/user/ase/msa/logic/test_msa_or_v.c
tests/tcg/mips/user/ase/msa/logic/test_msa_xor_v.c
tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_b.c
tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_d.c
tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_h.c
tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_w.c
tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_b.c
tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_d.c
tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_h.c
tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_w.c
tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_b.c
tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_d.c
tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_h.c
tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_w.c
tests/tcg/mips/user/ase/msa/shift/test_msa_sll_b.c
tests/tcg/mips/user/ase/msa/shift/test_msa_sll_d.c
tests/tcg/mips/user/ase/msa/shift/test_msa_sll_h.c
tests/tcg/mips/user/ase/msa/shift/test_msa_sll_w.c
tests/tcg/mips/user/ase/msa/shift/test_msa_sra_b.c
tests/tcg/mips/user/ase/msa/shift/test_msa_sra_d.c
tests/tcg/mips/user/ase/msa/shift/test_msa_sra_h.c
tests/tcg/mips/user/ase/msa/shift/test_msa_sra_w.c
tests/tcg/mips/user/ase/msa/shift/test_msa_srar_b.c
tests/tcg/mips/user/ase/msa/shift/test_msa_srar_d.c
tests/tcg/mips/user/ase/msa/shift/test_msa_srar_h.c
tests/tcg/mips/user/ase/msa/shift/test_msa_srar_w.c
tests/tcg/mips/user/ase/msa/shift/test_msa_srl_b.c
tests/tcg/mips/user/ase/msa/shift/test_msa_srl_d.c
tests/tcg/mips/user/ase/msa/shift/test_msa_srl_h.c
tests/tcg/mips/user/ase/msa/shift/test_msa_srl_w.c
tests/tcg/mips/user/ase/msa/shift/test_msa_srlr_b.c
tests/tcg/mips/user/ase/msa/shift/test_msa_srlr_d.c
tests/tcg/mips/user/ase/msa/shift/test_msa_srlr_h.c
tests/tcg/mips/user/ase/msa/shift/test_msa_srlr_w.c