aboutsummaryrefslogtreecommitdiffstats
path: root/ref_vst1_lane.c
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@st.com>2013-04-11 15:05:18 +0200
committerChristophe Lyon <christophe.lyon@st.com>2013-04-11 15:05:18 +0200
commit34adaf63011ec336c8fa4594c6bba1c59840e167 (patch)
tree421db32a0477c74f47a6e51f040cfd60f6db5936 /ref_vst1_lane.c
parent91ae809096ef1dae9756ada87efe475ce79e4bb5 (diff)
downloadplatform_external_arm-neon-tests-34adaf63011ec336c8fa4594c6bba1c59840e167.tar.gz
platform_external_arm-neon-tests-34adaf63011ec336c8fa4594c6bba1c59840e167.tar.bz2
platform_external_arm-neon-tests-34adaf63011ec336c8fa4594c6bba1c59840e167.zip
Added support for half-precision (fp16) variants.
Diffstat (limited to 'ref_vst1_lane.c')
-rw-r--r--ref_vst1_lane.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ref_vst1_lane.c b/ref_vst1_lane.c
index a5ed6d4..e1c3479 100644
--- a/ref_vst1_lane.c
+++ b/ref_vst1_lane.c
@@ -43,6 +43,10 @@ void exec_vst1_lane (void)
/* With ARM RVCT, we need to declare variables before any executable
statement */
DECL_VARIABLE_ALL_VARIANTS(vector);
+#if __ARM_NEON_FP16_INTRINSICS
+ DECL_VARIABLE(vector, float, 16, 4);
+ DECL_VARIABLE(vector, float, 16, 8);
+#endif
clean_results ();
@@ -58,6 +62,9 @@ void exec_vst1_lane (void)
TEST_VST1_LANE(, poly, p, 8, 8, 6);
TEST_VST1_LANE(, poly, p, 16, 4, 2);
TEST_VST1_LANE(, float, f, 32, 2, 1);
+#if __ARM_NEON_FP16_INTRINSICS
+ TEST_VST1_LANE(, float, f, 16, 4, 2);
+#endif
TEST_VST1_LANE(q, int, s, 8, 16, 15);
TEST_VST1_LANE(q, int, s, 16, 8, 5);
@@ -70,6 +77,9 @@ void exec_vst1_lane (void)
TEST_VST1_LANE(q, poly, p, 8, 16, 10);
TEST_VST1_LANE(q, poly, p, 16, 8, 4);
TEST_VST1_LANE(q, float, f, 32, 4, 1);
+#if __ARM_NEON_FP16_INTRINSICS
+ TEST_VST1_LANE(q, float, f, 16, 8, 5);
+#endif
dump_results_hex (TEST_MSG);
}