diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2014-06-03 22:47:52 +0200 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2014-06-03 22:47:52 +0200 |
commit | 4a6e5cc95176769664bc9e56d4e7c92b7a2fc816 (patch) | |
tree | 614baf4a3939bd6a255da33aebf5cd12a43e8021 /ref_vqshrun_n.c | |
parent | fad316adcad1edd1cbb1e01769768abcffcb1070 (diff) | |
download | platform_external_arm-neon-tests-4a6e5cc95176769664bc9e56d4e7c92b7a2fc816.tar.gz platform_external_arm-neon-tests-4a6e5cc95176769664bc9e56d4e7c92b7a2fc816.tar.bz2 platform_external_arm-neon-tests-4a6e5cc95176769664bc9e56d4e7c92b7a2fc816.zip |
Renamed Neon overflow to Neon cumulative saturation, since it's the real name.
Diffstat (limited to 'ref_vqshrun_n.c')
-rw-r--r-- | ref_vqshrun_n.c | 29 |
1 files changed, 15 insertions, 14 deletions
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); |