aboutsummaryrefslogtreecommitdiffstats
path: root/ref_vld1_lane.c
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@st.com>2016-08-24 18:02:41 +0200
committerChristophe Lyon <christophe.lyon@linaro.org>2016-08-24 18:18:10 +0200
commitd98beba6c8fa7b38fb62cb799c9c7de355937cf3 (patch)
tree55ed738873e970ac1f115e87fb151fb50399f300 /ref_vld1_lane.c
parentc1cc7826d74587e0dc1c855810633a219b161ab3 (diff)
downloadplatform_external_arm-neon-tests-d98beba6c8fa7b38fb62cb799c9c7de355937cf3.tar.gz
platform_external_arm-neon-tests-d98beba6c8fa7b38fb62cb799c9c7de355937cf3.tar.bz2
platform_external_arm-neon-tests-d98beba6c8fa7b38fb62cb799c9c7de355937cf3.zip
Make sure FP16 tests are enabled only if the target actually supports them.
This implies checking __ARM_FP or __ARM_NEON_FP16_INTRINSICS to account for different compilers.
Diffstat (limited to 'ref_vld1_lane.c')
-rw-r--r--ref_vld1_lane.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ref_vld1_lane.c b/ref_vld1_lane.c
index f4a9af6..9736748 100644
--- a/ref_vld1_lane.c
+++ b/ref_vld1_lane.c
@@ -47,12 +47,12 @@ void exec_vld1_lane (void)
/* With ARM RVCT, we need to declare variables before any executable
statement */
DECL_VARIABLE_ALL_VARIANTS(vector);
-#if defined(__ARM_FP16_FORMAT_IEEE)
+#if defined(__ARM_FP16_FORMAT_IEEE) && ( ((__ARM_FP & 0x2) != 0) || ((__ARM_NEON_FP16_INTRINSICS & 1) != 0) )
DECL_VARIABLE(vector, float, 16, 4);
DECL_VARIABLE(vector, float, 16, 8);
#endif
DECL_VARIABLE_ALL_VARIANTS(vector_src);
-#if defined(__ARM_FP16_FORMAT_IEEE)
+#if defined(__ARM_FP16_FORMAT_IEEE) && ( ((__ARM_FP & 0x2) != 0) || ((__ARM_NEON_FP16_INTRINSICS & 1) != 0) )
DECL_VARIABLE(vector_src, float, 16, 4);
DECL_VARIABLE(vector_src, float, 16, 8);
#endif
@@ -68,7 +68,7 @@ void exec_vld1_lane (void)
ARRAY(buffer_src, poly, 8, 8);
ARRAY(buffer_src, poly, 16, 4);
ARRAY(buffer_src, float, 32, 2);
-#if defined(__ARM_FP16_FORMAT_IEEE)
+#if defined(__ARM_FP16_FORMAT_IEEE) && ( ((__ARM_FP & 0x2) != 0) || ((__ARM_NEON_FP16_INTRINSICS & 1) != 0) )
ARRAY(buffer_src, float, 16, 4);
#endif
@@ -83,7 +83,7 @@ void exec_vld1_lane (void)
ARRAY(buffer_src, poly, 8, 16);
ARRAY(buffer_src, poly, 16, 8);
ARRAY(buffer_src, float, 32, 4);
-#if defined(__ARM_FP16_FORMAT_IEEE)
+#if defined(__ARM_FP16_FORMAT_IEEE) && ( ((__ARM_FP & 0x2) != 0) || ((__ARM_NEON_FP16_INTRINSICS & 1) != 0) )
ARRAY(buffer_src, float, 16, 8);
#endif
@@ -101,7 +101,7 @@ 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 defined(__ARM_FP16_FORMAT_IEEE)
+#if defined(__ARM_FP16_FORMAT_IEEE) && ( ((__ARM_FP & 0x2) != 0) || ((__ARM_NEON_FP16_INTRINSICS & 1) != 0) )
TEST_VLD1_LANE(, float, f, 16, 4, 2);
#endif
@@ -116,7 +116,7 @@ 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 defined(__ARM_FP16_FORMAT_IEEE)
+#if defined(__ARM_FP16_FORMAT_IEEE) && ( ((__ARM_FP & 0x2) != 0) || ((__ARM_NEON_FP16_INTRINSICS & 1) != 0) )
TEST_VLD1_LANE(q, float, f, 16, 8, 5);
#endif