mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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:
parent
1f8929d241
commit
8e6fe6b8ba
260 changed files with 1492 additions and 736 deletions
|
@ -30,11 +30,13 @@
|
|||
#define PRINT_RESULTS 0
|
||||
|
||||
|
||||
static inline int32_t check_results(const char *instruction_name,
|
||||
const uint32_t test_count,
|
||||
const double elapsed_time,
|
||||
const uint64_t *b128_result,
|
||||
const uint64_t *b128_expect)
|
||||
static inline int32_t check_results_128(const char *isa_ase_name,
|
||||
const char *group_name,
|
||||
const char *instruction_name,
|
||||
const uint32_t test_count,
|
||||
const double elapsed_time,
|
||||
const uint64_t *b128_result,
|
||||
const uint64_t *b128_expect)
|
||||
{
|
||||
#if PRINT_RESULTS
|
||||
uint32_t ii;
|
||||
|
@ -56,7 +58,8 @@ static inline int32_t check_results(const char *instruction_name,
|
|||
uint32_t pass_count = 0;
|
||||
uint32_t fail_count = 0;
|
||||
|
||||
printf("%s: ", instruction_name);
|
||||
printf("| %-10s \t| %-20s\t| %-16s \t|",
|
||||
isa_ase_name, group_name, instruction_name);
|
||||
for (i = 0; i < test_count; i++) {
|
||||
if ((b128_result[2 * i] == b128_expect[2 * i]) &&
|
||||
(b128_result[2 * i + 1] == b128_expect[2 * i + 1])) {
|
||||
|
@ -66,7 +69,7 @@ static inline int32_t check_results(const char *instruction_name,
|
|||
}
|
||||
}
|
||||
|
||||
printf("\tPASS: %3d \tFAIL: %3d \telapsed time: %5.2f ms\n",
|
||||
printf(" PASS: %3d \t| FAIL: %3d \t| elapsed time: %5.2f ms \t|\n",
|
||||
pass_count, fail_count, elapsed_time);
|
||||
|
||||
if (fail_count > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue