From 4a6e5cc95176769664bc9e56d4e7c92b7a2fc816 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Tue, 3 Jun 2014 22:47:52 +0200 Subject: Renamed Neon overflow to Neon cumulative saturation, since it's the real name. --- ref_vqshrun_n.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'ref_vqshrun_n.c') diff --git a/ref_vqshrun_n.c b/ref_vqshrun_n.c index bdf47bb..d746af6 100644 --- a/ref_vqshrun_n.c +++ b/ref_vqshrun_n.c @@ -40,15 +40,15 @@ THE SOFTWARE. FNNAME (INSN) { /* Basic test: y=vqshrun_n(x,v), then store the result. */ -#define TEST_VQSHRUN_N2(INSN, T1, T2, W, W2, N, V) \ - Set_Neon_Overflow(0); \ - VECT_VAR(vector_res, uint, W2, N) = \ - INSN##_##T2##W(VECT_VAR(vector, T1, W, N), \ - V); \ - vst1_u##W2(VECT_VAR(result, uint, W2, N), \ - VECT_VAR(vector_res, uint, W2, N)); \ - dump_neon_overflow(TEST_MSG, xSTR(INSN##_##T2##W), \ - xSTR(T1), W, N) +#define TEST_VQSHRUN_N2(INSN, T1, T2, W, W2, N, V) \ + Set_Neon_Cumulative_Sat(0); \ + VECT_VAR(vector_res, uint, W2, N) = \ + INSN##_##T2##W(VECT_VAR(vector, T1, W, N), \ + V); \ + vst1_u##W2(VECT_VAR(result, uint, W2, N), \ + VECT_VAR(vector_res, uint, W2, N)); \ + dump_neon_cumulative_sat(TEST_MSG, xSTR(INSN##_##T2##W), \ + xSTR(T1), W, N) /* Two auxliary macros are necessary to expand INSN */ #define TEST_VQSHRUN_N1(INSN, T1, T2, W, W2, N, V) \ @@ -78,7 +78,8 @@ FNNAME (INSN) TEST_VDUP(vector, q, int, s, 64, 2, -4); /* Choose shift amount arbitrarily */ - fprintf(ref_file, "\n%s overflow output:\n", TEST_MSG " (negative input)"); + fprintf(ref_file, "\n%s cumulative saturation output:\n", + TEST_MSG " (negative input)"); TEST_VQSHRUN_N(int, s, 16, 8, 8, 3); TEST_VQSHRUN_N(int, s, 32, 16, 4, 4); TEST_VQSHRUN_N(int, s, 64, 32, 2, 2); @@ -92,13 +93,13 @@ FNNAME (INSN) TEST_VDUP(vector, q, int, s, 64, 2, 0x7FFFFFFFFFFFFFFFLL); /* shift by 1 */ - fprintf(ref_file, "\n%s overflow output:\n", - TEST_MSG " (check saturation/overflow)"); + fprintf(ref_file, "\n%s cumulative saturation output:\n", + TEST_MSG " (check cumulative saturation)"); TEST_VQSHRUN_N(int, s, 16, 8, 8, 1); TEST_VQSHRUN_N(int, s, 32, 16, 4, 1); TEST_VQSHRUN_N(int, s, 64, 32, 2, 1); - dump_results_hex2 (TEST_MSG, " (check saturation/overflow)"); + dump_results_hex2 (TEST_MSG, " (check cumulative saturation)"); /* Fill input vector with positive values, to check normal case */ TEST_VDUP(vector, q, int, s, 16, 8, 0x1234); @@ -106,7 +107,7 @@ FNNAME (INSN) TEST_VDUP(vector, q, int, s, 64, 2, 0xDEADBEEF); /* shift arbitrary amount */ - fprintf(ref_file, "\n%s overflow output:\n", TEST_MSG); + fprintf(ref_file, "\n%s cumulative saturation output:\n", TEST_MSG); TEST_VQSHRUN_N(int, s, 16, 8, 8, 6); TEST_VQSHRUN_N(int, s, 32, 16, 4, 7); TEST_VQSHRUN_N(int, s, 64, 32, 2, 8); -- cgit v1.2.3