tests/tcg: target/mips: Include isa/ase and group name in test output

For better appearance and usefullnes, include ISA/ASE name and
instruction group name in the output of tests. For example, all
this data will be displayed for FMAX_A.W test:

| MSA       | Float Max Min       | FMAX_A.W    |
| PASS:  80 | FAIL:   0 | elapsed time: 0.16 ms |

(the data will be displayed in one row; they are presented here in two
rows not to exceed the width of the commit message)

Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com>
Message-Id: <1561031359-6727-2-git-send-email-aleksandar.markovic@rt-rk.com>
This commit is contained in:
Aleksandar Markovic 2019-06-20 13:49:17 +02:00
parent 1f8929d241
commit 8e6fe6b8ba
260 changed files with 1492 additions and 736 deletions

View file

@ -33,7 +33,9 @@
int32_t main(void)
{
char *instruction_name = "BCLR.B";
char *isa_ase_name = "MSA";
char *group_name = "Bit Set";
char *instruction_name = "BCLR.B";
int32_t ret;
uint32_t i, j;
struct timeval start, end;
@ -148,8 +150,9 @@ int32_t main(void)
elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0;
elapsed_time += (end.tv_usec - start.tv_usec) / 1000.0;
ret = check_results(instruction_name, TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
ret = check_results_128(isa_ase_name, group_name, instruction_name,
TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
return ret;
}

View file

@ -33,7 +33,9 @@
int32_t main(void)
{
char *instruction_name = "BCLR.D";
char *isa_ase_name = "MSA";
char *group_name = "Bit Set";
char *instruction_name = "BCLR.D";
int32_t ret;
uint32_t i, j;
struct timeval start, end;
@ -148,8 +150,9 @@ int32_t main(void)
elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0;
elapsed_time += (end.tv_usec - start.tv_usec) / 1000.0;
ret = check_results(instruction_name, TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
ret = check_results_128(isa_ase_name, group_name, instruction_name,
TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
return ret;
}

View file

@ -33,7 +33,9 @@
int32_t main(void)
{
char *instruction_name = "BCLR.H";
char *isa_ase_name = "MSA";
char *group_name = "Bit Set";
char *instruction_name = "BCLR.H";
int32_t ret;
uint32_t i, j;
struct timeval start, end;
@ -148,8 +150,9 @@ int32_t main(void)
elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0;
elapsed_time += (end.tv_usec - start.tv_usec) / 1000.0;
ret = check_results(instruction_name, TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
ret = check_results_128(isa_ase_name, group_name, instruction_name,
TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
return ret;
}

View file

@ -33,7 +33,9 @@
int32_t main(void)
{
char *instruction_name = "BCLR.W";
char *isa_ase_name = "MSA";
char *group_name = "Bit Set";
char *instruction_name = "BCLR.W";
int32_t ret;
uint32_t i, j;
struct timeval start, end;
@ -148,8 +150,9 @@ int32_t main(void)
elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0;
elapsed_time += (end.tv_usec - start.tv_usec) / 1000.0;
ret = check_results(instruction_name, TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
ret = check_results_128(isa_ase_name, group_name, instruction_name,
TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
return ret;
}

View file

@ -33,7 +33,9 @@
int32_t main(void)
{
char *instruction_name = "BNEG.B";
char *isa_ase_name = "MSA";
char *group_name = "Bit Set";
char *instruction_name = "BNEG.B";
int32_t ret;
uint32_t i, j;
struct timeval start, end;
@ -148,8 +150,9 @@ int32_t main(void)
elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0;
elapsed_time += (end.tv_usec - start.tv_usec) / 1000.0;
ret = check_results(instruction_name, TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
ret = check_results_128(isa_ase_name, group_name, instruction_name,
TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
return ret;
}

View file

@ -33,7 +33,9 @@
int32_t main(void)
{
char *instruction_name = "BNEG.D";
char *isa_ase_name = "MSA";
char *group_name = "Bit Set";
char *instruction_name = "BNEG.D";
int32_t ret;
uint32_t i, j;
struct timeval start, end;
@ -148,8 +150,9 @@ int32_t main(void)
elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0;
elapsed_time += (end.tv_usec - start.tv_usec) / 1000.0;
ret = check_results(instruction_name, TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
ret = check_results_128(isa_ase_name, group_name, instruction_name,
TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
return ret;
}

View file

@ -33,7 +33,9 @@
int32_t main(void)
{
char *instruction_name = "BNEG.H";
char *isa_ase_name = "MSA";
char *group_name = "Bit Set";
char *instruction_name = "BNEG.H";
int32_t ret;
uint32_t i, j;
struct timeval start, end;
@ -148,8 +150,9 @@ int32_t main(void)
elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0;
elapsed_time += (end.tv_usec - start.tv_usec) / 1000.0;
ret = check_results(instruction_name, TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
ret = check_results_128(isa_ase_name, group_name, instruction_name,
TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
return ret;
}

View file

@ -33,7 +33,9 @@
int32_t main(void)
{
char *instruction_name = "BNEG.W";
char *isa_ase_name = "MSA";
char *group_name = "Bit Set";
char *instruction_name = "BNEG.W";
int32_t ret;
uint32_t i, j;
struct timeval start, end;
@ -148,8 +150,9 @@ int32_t main(void)
elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0;
elapsed_time += (end.tv_usec - start.tv_usec) / 1000.0;
ret = check_results(instruction_name, TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
ret = check_results_128(isa_ase_name, group_name, instruction_name,
TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
return ret;
}

View file

@ -33,7 +33,9 @@
int32_t main(void)
{
char *instruction_name = "BSET.B";
char *isa_ase_name = "MSA";
char *group_name = "Bit Set";
char *instruction_name = "BSET.B";
int32_t ret;
uint32_t i, j;
struct timeval start, end;
@ -148,8 +150,9 @@ int32_t main(void)
elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0;
elapsed_time += (end.tv_usec - start.tv_usec) / 1000.0;
ret = check_results(instruction_name, TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
ret = check_results_128(isa_ase_name, group_name, instruction_name,
TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
return ret;
}

View file

@ -33,7 +33,9 @@
int32_t main(void)
{
char *instruction_name = "BSET.D";
char *isa_ase_name = "MSA";
char *group_name = "Bit Set";
char *instruction_name = "BSET.D";
int32_t ret;
uint32_t i, j;
struct timeval start, end;
@ -148,8 +150,9 @@ int32_t main(void)
elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0;
elapsed_time += (end.tv_usec - start.tv_usec) / 1000.0;
ret = check_results(instruction_name, TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
ret = check_results_128(isa_ase_name, group_name, instruction_name,
TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
return ret;
}

View file

@ -33,7 +33,9 @@
int32_t main(void)
{
char *instruction_name = "BSET.H";
char *isa_ase_name = "MSA";
char *group_name = "Bit Set";
char *instruction_name = "BSET.H";
int32_t ret;
uint32_t i, j;
struct timeval start, end;
@ -148,8 +150,9 @@ int32_t main(void)
elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0;
elapsed_time += (end.tv_usec - start.tv_usec) / 1000.0;
ret = check_results(instruction_name, TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
ret = check_results_128(isa_ase_name, group_name, instruction_name,
TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
return ret;
}

View file

@ -33,7 +33,9 @@
int32_t main(void)
{
char *instruction_name = "BSET.W";
char *isa_ase_name = "MSA";
char *group_name = "Bit Set";
char *instruction_name = "BSET.W";
int32_t ret;
uint32_t i, j;
struct timeval start, end;
@ -148,8 +150,9 @@ int32_t main(void)
elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0;
elapsed_time += (end.tv_usec - start.tv_usec) / 1000.0;
ret = check_results(instruction_name, TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
ret = check_results_128(isa_ase_name, group_name, instruction_name,
TEST_COUNT_TOTAL, elapsed_time,
&b128_result[0][0], &b128_expect[0][0]);
return ret;
}