diff options
author | Aleksandar Markovic <amarkovic@wavecomp.com> | 2019-06-20 13:49:18 +0200 |
---|---|---|
committer | Aleksandar Markovic <amarkovic@wavecomp.com> | 2019-06-21 11:30:36 +0200 |
commit | f9fa196bd7c5c4e0e29583dc7b77019f6dbf5dc0 (patch) | |
tree | afc822e8fa25fe81fc470ce1f0de73aa043cd112 /tests | |
parent | 8e6fe6b8bab4716b4adf99a9ab52eaa82464b37e (diff) |
tests/tcg: target/mips: Amend tests for MSA pack instructions
Add tests for cases when destination register is the same as one
of source registers.
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com>
Message-Id: <1561031359-6727-3-git-send-email-aleksandar.markovic@rt-rk.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tcg/mips/include/wrappers_msa.h | 24 | ||||
-rw-r--r-- | tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_b.c | 58 | ||||
-rw-r--r-- | tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_d.c | 58 | ||||
-rw-r--r-- | tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_h.c | 58 | ||||
-rw-r--r-- | tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_w.c | 58 | ||||
-rw-r--r-- | tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_b.c | 58 | ||||
-rw-r--r-- | tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_d.c | 58 | ||||
-rw-r--r-- | tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_h.c | 58 | ||||
-rw-r--r-- | tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_w.c | 58 | ||||
-rw-r--r-- | tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_b.c | 58 | ||||
-rw-r--r-- | tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_d.c | 58 | ||||
-rw-r--r-- | tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_h.c | 58 | ||||
-rw-r--r-- | tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_w.c | 58 |
13 files changed, 708 insertions, 12 deletions
diff --git a/tests/tcg/mips/include/wrappers_msa.h b/tests/tcg/mips/include/wrappers_msa.h index 5d28cb531a..9570aa8998 100644 --- a/tests/tcg/mips/include/wrappers_msa.h +++ b/tests/tcg/mips/include/wrappers_msa.h @@ -555,19 +555,43 @@ DO_MSA__WD__WS_WT(XOR_V, xor.v) */ DO_MSA__WD__WS_WT(PCKEV_B, pckev.b) +DO_MSA__WD__WD_WT(PCKEV_B__DDT, pckev.b) +DO_MSA__WD__WS_WD(PCKEV_B__DSD, pckev.b) DO_MSA__WD__WS_WT(PCKEV_H, pckev.h) +DO_MSA__WD__WD_WT(PCKEV_H__DDT, pckev.h) +DO_MSA__WD__WS_WD(PCKEV_H__DSD, pckev.h) DO_MSA__WD__WS_WT(PCKEV_W, pckev.w) +DO_MSA__WD__WD_WT(PCKEV_W__DDT, pckev.w) +DO_MSA__WD__WS_WD(PCKEV_W__DSD, pckev.w) DO_MSA__WD__WS_WT(PCKEV_D, pckev.d) +DO_MSA__WD__WD_WT(PCKEV_D__DDT, pckev.d) +DO_MSA__WD__WS_WD(PCKEV_D__DSD, pckev.d) DO_MSA__WD__WS_WT(PCKOD_B, pckod.b) +DO_MSA__WD__WD_WT(PCKOD_B__DDT, pckod.b) +DO_MSA__WD__WS_WD(PCKOD_B__DSD, pckod.b) DO_MSA__WD__WS_WT(PCKOD_H, pckod.h) +DO_MSA__WD__WD_WT(PCKOD_H__DDT, pckod.h) +DO_MSA__WD__WS_WD(PCKOD_H__DSD, pckod.h) DO_MSA__WD__WS_WT(PCKOD_W, pckod.w) +DO_MSA__WD__WD_WT(PCKOD_W__DDT, pckod.w) +DO_MSA__WD__WS_WD(PCKOD_W__DSD, pckod.w) DO_MSA__WD__WS_WT(PCKOD_D, pckod.d) +DO_MSA__WD__WD_WT(PCKOD_D__DDT, pckod.d) +DO_MSA__WD__WS_WD(PCKOD_D__DSD, pckod.d) DO_MSA__WD__WS_WT(VSHF_B, vshf.b) +DO_MSA__WD__WD_WT(VSHF_B__DDT, vshf.b) +DO_MSA__WD__WS_WD(VSHF_B__DSD, vshf.b) DO_MSA__WD__WS_WT(VSHF_H, vshf.h) +DO_MSA__WD__WD_WT(VSHF_H__DDT, vshf.h) +DO_MSA__WD__WS_WD(VSHF_H__DSD, vshf.h) DO_MSA__WD__WS_WT(VSHF_W, vshf.w) +DO_MSA__WD__WD_WT(VSHF_W__DDT, vshf.w) +DO_MSA__WD__WS_WD(VSHF_W__DSD, vshf.w) DO_MSA__WD__WS_WT(VSHF_D, vshf.d) +DO_MSA__WD__WD_WT(VSHF_D__DDT, vshf.d) +DO_MSA__WD__WS_WD(VSHF_D__DSD, vshf.d) /* diff --git a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_b.c b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_b.c index 70cef5b104..4a4c9d6c64 100644 --- a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_b.c +++ b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_b.c @@ -28,7 +28,7 @@ #define TEST_COUNT_TOTAL ( \ (PATTERN_INPUTS_SHORT_COUNT) * (PATTERN_INPUTS_SHORT_COUNT) + \ - (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) + 3 * (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) int32_t main(void) @@ -123,6 +123,38 @@ int32_t main(void) { 0xf71a3ffcbe639308ULL, 0xf1d842a04f4d314eULL, }, { 0xd8ff2b145aaacf80ULL, 0xf1d842a04f4d314eULL, }, { 0xf1d842a04f4d314eULL, 0xf1d842a04f4d314eULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 80 */ + { 0x00000000fc000000ULL, 0x000015000000001aULL, }, + { 0x0000000014000000ULL, 0x0000ab00000000ffULL, }, + { 0x00000000a0000000ULL, 0x0000a900000000d8ULL, }, + { 0x000040000000000cULL, 0x9300003f00120000ULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000800000000014ULL, 0x9300003f00120000ULL, }, + { 0x00004e00000000a0ULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0x8800000000fee6aaULL, }, /* 88 */ + { 0x0000000000000000ULL, 0xfb000000001500aaULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x0000000000000000ULL, 0x7000000000a916aaULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 96 */ + { 0x00000800000000fcULL, 0x6200007be64b0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeccULL, }, + { 0x00006a0000550000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae63ULL, }, + { 0x0000be0000c70000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 104 */ + { 0x00000800000000fcULL, 0xcf00002bae270000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x00005a00008b0000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x31000042168d0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae4dULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, }; reset_msa_registers(); @@ -145,6 +177,30 @@ int32_t main(void) } } + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKEV_B__DDT(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + ((RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKEV_B__DSD(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + (2 * (RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + gettimeofday(&end, NULL); elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0; diff --git a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_d.c b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_d.c index 8a1d18f42a..67df606aac 100644 --- a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_d.c +++ b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_d.c @@ -28,7 +28,7 @@ #define TEST_COUNT_TOTAL ( \ (PATTERN_INPUTS_SHORT_COUNT) * (PATTERN_INPUTS_SHORT_COUNT) + \ - (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) + 3 * (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) int32_t main(void) @@ -123,6 +123,38 @@ int32_t main(void) { 0xfbbe00634d93c708ULL, 0x704f164d5e31e24eULL, }, { 0xac5aaeaab9cf8b80ULL, 0x704f164d5e31e24eULL, }, { 0x704f164d5e31e24eULL, 0x704f164d5e31e24eULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 80 */ + { 0x00000000fc000000ULL, 0x000015000000001aULL, }, + { 0x0000000014000000ULL, 0x0000ab00000000ffULL, }, + { 0x00000000a0000000ULL, 0x0000a900000000d8ULL, }, + { 0x000040000000000cULL, 0x9300003f00120000ULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000800000000014ULL, 0x9300003f00120000ULL, }, + { 0x00004e00000000a0ULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0x8800000000fee6aaULL, }, /* 88 */ + { 0x0000000000000000ULL, 0xfb000000001500aaULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x0000000000000000ULL, 0x7000000000a916aaULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 96 */ + { 0x00000800000000fcULL, 0x6200007be64b0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeccULL, }, + { 0x00006a0000550000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae63ULL, }, + { 0x0000be0000c70000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 104 */ + { 0x00000800000000fcULL, 0xcf00002bae270000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x00005a00008b0000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x31000042168d0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae4dULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, }; reset_msa_registers(); @@ -145,6 +177,30 @@ int32_t main(void) } } + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKEV_D__DDT(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + ((RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKEV_D__DSD(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + (2 * (RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + gettimeofday(&end, NULL); elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0; diff --git a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_h.c b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_h.c index c8636ba5f9..22d043cf49 100644 --- a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_h.c +++ b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_h.c @@ -28,7 +28,7 @@ #define TEST_COUNT_TOTAL ( \ (PATTERN_INPUTS_SHORT_COUNT) * (PATTERN_INPUTS_SHORT_COUNT) + \ - (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) + 3 * (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) int32_t main(void) @@ -123,6 +123,38 @@ int32_t main(void) { 0xbb1a52fc0063c708ULL, 0x88d8e2a0164de24eULL, }, { 0xc6ff2514aeaa8b80ULL, 0x88d8e2a0164de24eULL, }, { 0x88d8e2a0164de24eULL, 0x88d8e2a0164de24eULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 80 */ + { 0x00000000fc000000ULL, 0x000015000000001aULL, }, + { 0x0000000014000000ULL, 0x0000ab00000000ffULL, }, + { 0x00000000a0000000ULL, 0x0000a900000000d8ULL, }, + { 0x000040000000000cULL, 0x9300003f00120000ULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000800000000014ULL, 0x9300003f00120000ULL, }, + { 0x00004e00000000a0ULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0x8800000000fee6aaULL, }, /* 88 */ + { 0x0000000000000000ULL, 0xfb000000001500aaULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x0000000000000000ULL, 0x7000000000a916aaULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 96 */ + { 0x00000800000000fcULL, 0x6200007be64b0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeccULL, }, + { 0x00006a0000550000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae63ULL, }, + { 0x0000be0000c70000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 104 */ + { 0x00000800000000fcULL, 0xcf00002bae270000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x00005a00008b0000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x31000042168d0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae4dULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, }; reset_msa_registers(); @@ -145,6 +177,30 @@ int32_t main(void) } } + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKEV_H__DDT(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + ((RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKEV_H__DSD(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + (2 * (RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + gettimeofday(&end, NULL); elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0; diff --git a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_w.c b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_w.c index 7ceab05732..1a9c2df2b8 100644 --- a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_w.c +++ b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckev_w.c @@ -28,7 +28,7 @@ #define TEST_COUNT_TOTAL ( \ (PATTERN_INPUTS_SHORT_COUNT) * (PATTERN_INPUTS_SHORT_COUNT) + \ - (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) + 3 * (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) int32_t main(void) @@ -123,6 +123,38 @@ int32_t main(void) { 0x153f52fc4d93c708ULL, 0xa942e2a05e31e24eULL, }, { 0xab2b2514b9cf8b80ULL, 0xa942e2a05e31e24eULL, }, { 0xa942e2a05e31e24eULL, 0xa942e2a05e31e24eULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 80 */ + { 0x00000000fc000000ULL, 0x000015000000001aULL, }, + { 0x0000000014000000ULL, 0x0000ab00000000ffULL, }, + { 0x00000000a0000000ULL, 0x0000a900000000d8ULL, }, + { 0x000040000000000cULL, 0x9300003f00120000ULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000800000000014ULL, 0x9300003f00120000ULL, }, + { 0x00004e00000000a0ULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0x8800000000fee6aaULL, }, /* 88 */ + { 0x0000000000000000ULL, 0xfb000000001500aaULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x0000000000000000ULL, 0x7000000000a916aaULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 96 */ + { 0x00000800000000fcULL, 0x6200007be64b0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeccULL, }, + { 0x00006a0000550000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae63ULL, }, + { 0x0000be0000c70000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 104 */ + { 0x00000800000000fcULL, 0xcf00002bae270000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x00005a00008b0000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x31000042168d0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae4dULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, }; reset_msa_registers(); @@ -145,6 +177,30 @@ int32_t main(void) } } + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKEV_W__DDT(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + ((RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKEV_W__DSD(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + (2 * (RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + gettimeofday(&end, NULL); elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0; diff --git a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_b.c b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_b.c index b6f5e08958..15ef3776ec 100644 --- a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_b.c +++ b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_b.c @@ -28,7 +28,7 @@ #define TEST_COUNT_TOTAL ( \ (PATTERN_INPUTS_SHORT_COUNT) * (PATTERN_INPUTS_SHORT_COUNT) + \ - (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) + 3 * (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) int32_t main(void) @@ -123,6 +123,38 @@ int32_t main(void) { 0x12bb1552fb004dc7ULL, 0x8d88a9e270165ee2ULL, }, { 0x27c6ab25acaeb98bULL, 0x8d88a9e270165ee2ULL, }, { 0x8d88a9e270165ee2ULL, 0x8d88a9e270165ee2ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 80 */ + { 0x00000000fc000000ULL, 0x000015000000001aULL, }, + { 0x0000000014000000ULL, 0x0000ab00000000ffULL, }, + { 0x00000000a0000000ULL, 0x0000a900000000d8ULL, }, + { 0x000040000000000cULL, 0x9300003f00120000ULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000800000000014ULL, 0x9300003f00120000ULL, }, + { 0x00004e00000000a0ULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0x8800000000fee6aaULL, }, /* 88 */ + { 0x0000000000000000ULL, 0xfb000000001500aaULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x0000000000000000ULL, 0x7000000000a916aaULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 96 */ + { 0x00000800000000fcULL, 0x6200007be64b0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeccULL, }, + { 0x00006a0000550000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae63ULL, }, + { 0x0000be0000c70000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 104 */ + { 0x00000800000000fcULL, 0xcf00002bae270000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x00005a00008b0000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x31000042168d0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae4dULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, }; reset_msa_registers(); @@ -145,6 +177,30 @@ int32_t main(void) } } + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKOD_B__DDT(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + ((RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKOD_B__DSD(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + (2 * (RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + gettimeofday(&end, NULL); elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0; diff --git a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_d.c b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_d.c index c4b2386431..e3997cd9a5 100644 --- a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_d.c +++ b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_d.c @@ -28,7 +28,7 @@ #define TEST_COUNT_TOTAL ( \ (PATTERN_INPUTS_SHORT_COUNT) * (PATTERN_INPUTS_SHORT_COUNT) + \ - (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) + 3 * (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) int32_t main(void) @@ -123,6 +123,38 @@ int32_t main(void) { 0x12f7bb1a153f52fcULL, 0x8df188d8a942e2a0ULL, }, { 0x27d8c6ffab2b2514ULL, 0x8df188d8a942e2a0ULL, }, { 0x8df188d8a942e2a0ULL, 0x8df188d8a942e2a0ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 80 */ + { 0x00000000fc000000ULL, 0x000015000000001aULL, }, + { 0x0000000014000000ULL, 0x0000ab00000000ffULL, }, + { 0x00000000a0000000ULL, 0x0000a900000000d8ULL, }, + { 0x000040000000000cULL, 0x9300003f00120000ULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000800000000014ULL, 0x9300003f00120000ULL, }, + { 0x00004e00000000a0ULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0x8800000000fee6aaULL, }, /* 88 */ + { 0x0000000000000000ULL, 0xfb000000001500aaULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x0000000000000000ULL, 0x7000000000a916aaULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 96 */ + { 0x00000800000000fcULL, 0x6200007be64b0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeccULL, }, + { 0x00006a0000550000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae63ULL, }, + { 0x0000be0000c70000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 104 */ + { 0x00000800000000fcULL, 0xcf00002bae270000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x00005a00008b0000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x31000042168d0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae4dULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, }; reset_msa_registers(); @@ -145,6 +177,30 @@ int32_t main(void) } } + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKOD_D__DDT(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + ((RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKOD_D__DSD(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + (2 * (RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + gettimeofday(&end, NULL); elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0; diff --git a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_h.c b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_h.c index 36329e7158..2a29ac0faf 100644 --- a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_h.c +++ b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_h.c @@ -28,7 +28,7 @@ #define TEST_COUNT_TOTAL ( \ (PATTERN_INPUTS_SHORT_COUNT) * (PATTERN_INPUTS_SHORT_COUNT) + \ - (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) + 3 * (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) int32_t main(void) @@ -123,6 +123,38 @@ int32_t main(void) { 0x12f7153ffbbe4d93ULL, 0x8df1a942704f5e31ULL, }, { 0x27d8ab2bac5ab9cfULL, 0x8df1a942704f5e31ULL, }, { 0x8df1a942704f5e31ULL, 0x8df1a942704f5e31ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 80 */ + { 0x00000000fc000000ULL, 0x000015000000001aULL, }, + { 0x0000000014000000ULL, 0x0000ab00000000ffULL, }, + { 0x00000000a0000000ULL, 0x0000a900000000d8ULL, }, + { 0x000040000000000cULL, 0x9300003f00120000ULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000800000000014ULL, 0x9300003f00120000ULL, }, + { 0x00004e00000000a0ULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0x8800000000fee6aaULL, }, /* 88 */ + { 0x0000000000000000ULL, 0xfb000000001500aaULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x0000000000000000ULL, 0x7000000000a916aaULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 96 */ + { 0x00000800000000fcULL, 0x6200007be64b0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeccULL, }, + { 0x00006a0000550000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae63ULL, }, + { 0x0000be0000c70000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 104 */ + { 0x00000800000000fcULL, 0xcf00002bae270000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x00005a00008b0000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x31000042168d0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae4dULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, }; reset_msa_registers(); @@ -145,6 +177,30 @@ int32_t main(void) } } + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKOD_H__DDT(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + ((RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKOD_H__DSD(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + (2 * (RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + gettimeofday(&end, NULL); elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0; diff --git a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_w.c b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_w.c index 3bc4223770..a3fbe25c6e 100644 --- a/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_w.c +++ b/tests/tcg/mips/user/ase/msa/pack/test_msa_pckod_w.c @@ -28,7 +28,7 @@ #define TEST_COUNT_TOTAL ( \ (PATTERN_INPUTS_SHORT_COUNT) * (PATTERN_INPUTS_SHORT_COUNT) + \ - (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) + 3 * (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) int32_t main(void) @@ -123,6 +123,38 @@ int32_t main(void) { 0x12f7bb1afbbe0063ULL, 0x8df188d8704f164dULL, }, { 0x27d8c6ffac5aaeaaULL, 0x8df188d8704f164dULL, }, { 0x8df188d8704f164dULL, 0x8df188d8704f164dULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 80 */ + { 0x00000000fc000000ULL, 0x000015000000001aULL, }, + { 0x0000000014000000ULL, 0x0000ab00000000ffULL, }, + { 0x00000000a0000000ULL, 0x0000a900000000d8ULL, }, + { 0x000040000000000cULL, 0x9300003f00120000ULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000800000000014ULL, 0x9300003f00120000ULL, }, + { 0x00004e00000000a0ULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0x8800000000fee6aaULL, }, /* 88 */ + { 0x0000000000000000ULL, 0xfb000000001500aaULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x0000000000000000ULL, 0x7000000000a916aaULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 96 */ + { 0x00000800000000fcULL, 0x6200007be64b0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeccULL, }, + { 0x00006a0000550000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae63ULL, }, + { 0x0000be0000c70000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 104 */ + { 0x00000800000000fcULL, 0xcf00002bae270000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x00005a00008b0000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x31000042168d0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae4dULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, }; reset_msa_registers(); @@ -145,6 +177,30 @@ int32_t main(void) } } + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKOD_W__DDT(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + ((RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_PCKOD_W__DSD(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + (2 * (RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + gettimeofday(&end, NULL); elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0; diff --git a/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_b.c b/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_b.c index 16f63c2e31..eedb7d845b 100644 --- a/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_b.c +++ b/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_b.c @@ -28,7 +28,7 @@ #define TEST_COUNT_TOTAL ( \ (PATTERN_INPUTS_SHORT_COUNT) * (PATTERN_INPUTS_SHORT_COUNT) + \ - (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) + 3 * (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) int32_t main(void) @@ -123,6 +123,38 @@ int32_t main(void) { 0x0000000000000000ULL, 0x0000000000000000ULL, }, { 0x8080808080808080ULL, 0x8080808080808080ULL, }, { 0x0000000000000000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 80 */ + { 0x00000000fc000000ULL, 0x000015000000001aULL, }, + { 0x0000000014000000ULL, 0x0000ab00000000ffULL, }, + { 0x00000000a0000000ULL, 0x0000a900000000d8ULL, }, + { 0x000040000000000cULL, 0x9300003f00120000ULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000800000000014ULL, 0x9300003f00120000ULL, }, + { 0x00004e00000000a0ULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0x8800000000fee6aaULL, }, /* 88 */ + { 0x0000000000000000ULL, 0xfb000000001500aaULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x0000000000000000ULL, 0x7000000000a916aaULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 96 */ + { 0x00000800000000fcULL, 0x6200007be64b0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeccULL, }, + { 0x00006a0000550000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae63ULL, }, + { 0x0000be0000c70000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 104 */ + { 0x00000800000000fcULL, 0xcf00002bae270000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x00005a00008b0000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x31000042168d0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae4dULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, }; reset_msa_registers(); @@ -145,6 +177,30 @@ int32_t main(void) } } + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_VSHF_B__DDT(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + ((RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_VSHF_B__DSD(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + (2 * (RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + gettimeofday(&end, NULL); elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0; diff --git a/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_d.c b/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_d.c index 5033b63d2d..85a8f0de73 100644 --- a/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_d.c +++ b/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_d.c @@ -28,7 +28,7 @@ #define TEST_COUNT_TOTAL ( \ (PATTERN_INPUTS_SHORT_COUNT) * (PATTERN_INPUTS_SHORT_COUNT) + \ - (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) + 3 * (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) int32_t main(void) @@ -123,6 +123,38 @@ int32_t main(void) { 0x0000000000000000ULL, 0x0000000000000000ULL, }, { 0xac5aaeaab9cf8b80ULL, 0xac5aaeaab9cf8b80ULL, }, { 0x0000000000000000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 80 */ + { 0x00000000fc000000ULL, 0x000015000000001aULL, }, + { 0x0000000014000000ULL, 0x0000ab00000000ffULL, }, + { 0x00000000a0000000ULL, 0x0000a900000000d8ULL, }, + { 0x000040000000000cULL, 0x9300003f00120000ULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000800000000014ULL, 0x9300003f00120000ULL, }, + { 0x00004e00000000a0ULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0x8800000000fee6aaULL, }, /* 88 */ + { 0x0000000000000000ULL, 0xfb000000001500aaULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x0000000000000000ULL, 0x7000000000a916aaULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 96 */ + { 0x00000800000000fcULL, 0x6200007be64b0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeccULL, }, + { 0x00006a0000550000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae63ULL, }, + { 0x0000be0000c70000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 104 */ + { 0x00000800000000fcULL, 0xcf00002bae270000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x00005a00008b0000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x31000042168d0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae4dULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, }; reset_msa_registers(); @@ -145,6 +177,30 @@ int32_t main(void) } } + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_VSHF_D__DDT(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + ((RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_VSHF_D__DSD(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + (2 * (RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + gettimeofday(&end, NULL); elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0; diff --git a/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_h.c b/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_h.c index 7de1f36b77..8d416bc60b 100644 --- a/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_h.c +++ b/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_h.c @@ -28,7 +28,7 @@ #define TEST_COUNT_TOTAL ( \ (PATTERN_INPUTS_SHORT_COUNT) * (PATTERN_INPUTS_SHORT_COUNT) + \ - (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) + 3 * (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) int32_t main(void) @@ -123,6 +123,38 @@ int32_t main(void) { 0x0000000000000000ULL, 0x0000000000000000ULL, }, { 0x8b808b808b808b80ULL, 0x8b808b808b808b80ULL, }, { 0x0000000000000000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 80 */ + { 0x00000000fc000000ULL, 0x000015000000001aULL, }, + { 0x0000000014000000ULL, 0x0000ab00000000ffULL, }, + { 0x00000000a0000000ULL, 0x0000a900000000d8ULL, }, + { 0x000040000000000cULL, 0x9300003f00120000ULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000800000000014ULL, 0x9300003f00120000ULL, }, + { 0x00004e00000000a0ULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0x8800000000fee6aaULL, }, /* 88 */ + { 0x0000000000000000ULL, 0xfb000000001500aaULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x0000000000000000ULL, 0x7000000000a916aaULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 96 */ + { 0x00000800000000fcULL, 0x6200007be64b0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeccULL, }, + { 0x00006a0000550000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae63ULL, }, + { 0x0000be0000c70000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 104 */ + { 0x00000800000000fcULL, 0xcf00002bae270000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x00005a00008b0000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x31000042168d0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae4dULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, }; reset_msa_registers(); @@ -145,6 +177,30 @@ int32_t main(void) } } + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_VSHF_H__DDT(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + ((RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_VSHF_H__DSD(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + (2 * (RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + gettimeofday(&end, NULL); elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0; diff --git a/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_w.c b/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_w.c index c19fb72aa2..fd8f02dbd4 100644 --- a/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_w.c +++ b/tests/tcg/mips/user/ase/msa/pack/test_msa_vshf_w.c @@ -28,7 +28,7 @@ #define TEST_COUNT_TOTAL ( \ (PATTERN_INPUTS_SHORT_COUNT) * (PATTERN_INPUTS_SHORT_COUNT) + \ - (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) + 3 * (RANDOM_INPUTS_SHORT_COUNT) * (RANDOM_INPUTS_SHORT_COUNT)) int32_t main(void) @@ -123,6 +123,38 @@ int32_t main(void) { 0x0000000000000000ULL, 0x0000000000000000ULL, }, { 0xb9cf8b80b9cf8b80ULL, 0xb9cf8b80b9cf8b80ULL, }, { 0x0000000000000000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 80 */ + { 0x00000000fc000000ULL, 0x000015000000001aULL, }, + { 0x0000000014000000ULL, 0x0000ab00000000ffULL, }, + { 0x00000000a0000000ULL, 0x0000a900000000d8ULL, }, + { 0x000040000000000cULL, 0x9300003f00120000ULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000800000000014ULL, 0x9300003f00120000ULL, }, + { 0x00004e00000000a0ULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0x8800000000fee6aaULL, }, /* 88 */ + { 0x0000000000000000ULL, 0xfb000000001500aaULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x0000000000000000ULL, 0x7000000000a916aaULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 96 */ + { 0x00000800000000fcULL, 0x6200007be64b0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeccULL, }, + { 0x00006a0000550000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x9300003f00120000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae63ULL, }, + { 0x0000be0000c70000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, /* 104 */ + { 0x00000800000000fcULL, 0xcf00002bae270000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abaeaaULL, }, + { 0x00005a00008b0000ULL, 0x0000000000000000ULL, }, + { 0x000000000c000000ULL, 0x0000fe000000005eULL, }, + { 0x00000800000000fcULL, 0x31000042168d0000ULL, }, + { 0x0000000000000000ULL, 0xac00000000abae4dULL, }, + { 0x00004f0000e20000ULL, 0x0000000000000000ULL, }, }; reset_msa_registers(); @@ -145,6 +177,30 @@ int32_t main(void) } } + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_VSHF_W__DDT(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + ((RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + + for (i = 0; i < RANDOM_INPUTS_SHORT_COUNT; i++) { + for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { + do_msa_VSHF_W__DSD(b128_random[i], b128_random[j], + b128_result[ + ((PATTERN_INPUTS_SHORT_COUNT) * + (PATTERN_INPUTS_SHORT_COUNT)) + + (2 * (RANDOM_INPUTS_SHORT_COUNT) * + (RANDOM_INPUTS_SHORT_COUNT)) + + RANDOM_INPUTS_SHORT_COUNT * i + j]); + } + } + gettimeofday(&end, NULL); elapsed_time = (end.tv_sec - start.tv_sec) * 1000.0; |