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>
This commit is contained in:
Aleksandar Markovic 2019-06-20 13:49:18 +02:00
parent 8e6fe6b8ba
commit f9fa196bd7
13 changed files with 708 additions and 12 deletions

View File

@ -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)
/*

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;