aboutsummaryrefslogtreecommitdiffstats
path: root/ref_vld1_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_vld1_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_vld1_lane.c')
-rw-r--r--ref_vld1_lane.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/ref_vld1_lane.c b/ref_vld1_lane.c
index cad2123..903cc19 100644
--- a/ref_vld1_lane.c
+++ b/ref_vld1_lane.c
@@ -47,7 +47,15 @@ void exec_vld1_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
DECL_VARIABLE_ALL_VARIANTS(vector_src);
+#if __ARM_NEON_FP16_INTRINSICS
+ DECL_VARIABLE(vector_src, float, 16, 4);
+ DECL_VARIABLE(vector_src, float, 16, 8);
+#endif
ARRAY(buffer_src, int, 8, 8);
ARRAY(buffer_src, int, 16, 4);
@@ -60,6 +68,9 @@ void exec_vld1_lane (void)
ARRAY(buffer_src, poly, 8, 8);
ARRAY(buffer_src, poly, 16, 4);
ARRAY(buffer_src, float, 32, 2);
+#if __ARM_NEON_FP16_INTRINSICS
+ ARRAY(buffer_src, float, 16, 4);
+#endif
ARRAY(buffer_src, int, 8, 16);
ARRAY(buffer_src, int, 16, 8);
@@ -72,6 +83,9 @@ void exec_vld1_lane (void)
ARRAY(buffer_src, poly, 8, 16);
ARRAY(buffer_src, poly, 16, 8);
ARRAY(buffer_src, float, 32, 4);
+#if __ARM_NEON_FP16_INTRINSICS
+ ARRAY(buffer_src, float, 16, 8);
+#endif
clean_results ();
@@ -87,6 +101,9 @@ void exec_vld1_lane (void)
TEST_VLD1_LANE(, poly, p, 8, 8, 7);
TEST_VLD1_LANE(, poly, p, 16, 4, 3);
TEST_VLD1_LANE(, float, f, 32, 2, 1);
+#if __ARM_NEON_FP16_INTRINSICS
+ TEST_VLD1_LANE(, float, f, 16, 4, 2);
+#endif
TEST_VLD1_LANE(q, int, s, 8, 16, 15);
TEST_VLD1_LANE(q, int, s, 16, 8, 5);
@@ -99,6 +116,9 @@ void exec_vld1_lane (void)
TEST_VLD1_LANE(q, poly, p, 8, 16, 12);
TEST_VLD1_LANE(q, poly, p, 16, 8, 6);
TEST_VLD1_LANE(q, float, f, 32, 4, 2);
+#if __ARM_NEON_FP16_INTRINSICS
+ TEST_VLD1_LANE(q, float, f, 16, 8, 5);
+#endif
#ifndef __CC_ARM
/* Check runtime assertions. With RVCT, the check is performed at