aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_s_b.c
diff options
context:
space:
mode:
authorAleksandar Markovic <amarkovic@wavecomp.com>2019-06-06 18:27:18 +0200
committerAleksandar Markovic <amarkovic@wavecomp.com>2019-06-07 11:53:07 +0200
commitca693d1c9271e27e8a02cd11a5bb3248cbbcf420 (patch)
tree54f5c3ed423b9170a4629591a538cf040855ee56 /tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_s_b.c
parentb7c6798220b6a9106a1028ea858acb3332db56d9 (diff)
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>
Diffstat (limited to 'tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_s_b.c')
-rw-r--r--tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_s_b.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_s_b.c b/tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_s_b.c
index e241b8b1b1..a7f4de9260 100644
--- a/tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_s_b.c
+++ b/tests/tcg/mips/user/ase/msa/int-add/test_msa_adds_s_b.c
@@ -125,6 +125,8 @@ int32_t main(void)
{ 0x7f7f2c7f7f62c47fULL, 0x80e280b0807fc480ULL, },
};
+ reset_msa_registers();
+
gettimeofday(&start, NULL);
for (i = 0; i < PATTERN_INPUTS_SHORT_COUNT; i++) {