aboutsummaryrefslogtreecommitdiffstats
path: root/ref_vcombine.c
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2014-09-02 16:51:20 +0200
committerChristophe Lyon <christophe.lyon@linaro.org>2014-09-02 16:51:20 +0200
commit94f99bc9c70ca4050967a80532e5e048f14ab869 (patch)
tree5b0e83094acaa1b9b5c7afea801b3fb74a2684f5 /ref_vcombine.c
parent03135ebc0e0ee8bab0634654c01d9bc16d260afb (diff)
downloadplatform_external_arm-neon-tests-94f99bc9c70ca4050967a80532e5e048f14ab869.tar.gz
platform_external_arm-neon-tests-94f99bc9c70ca4050967a80532e5e048f14ab869.tar.bz2
platform_external_arm-neon-tests-94f99bc9c70ca4050967a80532e5e048f14ab869.zip
Fix detection of FP16 support: test __ARM_FP16_FORMAT_IEEE instead of __ARM_NEON_FP16_INTRINSICS.
Diffstat (limited to 'ref_vcombine.c')
-rw-r--r--ref_vcombine.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ref_vcombine.c b/ref_vcombine.c
index 1d9f61b..570c2c5 100644
--- a/ref_vcombine.c
+++ b/ref_vcombine.c
@@ -46,7 +46,7 @@ void exec_vcombine (void)
DECL_VARIABLE_64BITS_VARIANTS(vector64_a);
DECL_VARIABLE_64BITS_VARIANTS(vector64_b);
DECL_VARIABLE_128BITS_VARIANTS(vector128);
-#if __ARM_NEON_FP16_INTRINSICS
+#if defined(__ARM_FP16_FORMAT_IEEE)
DECL_VARIABLE(vector64_a, float, 16, 4);
DECL_VARIABLE(vector64_b, float, 16, 4);
DECL_VARIABLE(vector64_b_init, uint, 16, 4);
@@ -55,7 +55,7 @@ void exec_vcombine (void)
TEST_MACRO_64BITS_VARIANTS_2_5(TEST_VLOAD, vector64_a, buffer);
TEST_VLOAD(vector64_a, buffer, , float, f, 32, 2);
-#if __ARM_NEON_FP16_INTRINSICS
+#if defined(__ARM_FP16_FORMAT_IEEE)
TEST_VLOAD(vector64_a, buffer, , float, f, 16, 4);
#endif
@@ -71,7 +71,7 @@ void exec_vcombine (void)
TEST_VDUP(vector64_b, , poly, p, 16, 4, 0x66);
TEST_VDUP(vector64_b, , float, f, 32, 2, 3.3f);
-#if __ARM_NEON_FP16_INTRINSICS
+#if defined(__ARM_FP16_FORMAT_IEEE)
/* There is no vdup_n_f16, so we need another initialization
method. */
TEST_VDUP(vector64_b_init, , uint, u, 16, 4, 0x4b80 /* 15 */);
@@ -92,7 +92,7 @@ void exec_vcombine (void)
TEST_VCOMBINE(poly, p, 8, 8, 16);
TEST_VCOMBINE(poly, p, 16, 4, 8);
TEST_VCOMBINE(float, f, 32, 2, 4);
-#if __ARM_NEON_FP16_INTRINSICS
+#if defined(__ARM_FP16_FORMAT_IEEE)
TEST_VCOMBINE(float, f, 16, 4, 8);
#endif