aboutsummaryrefslogtreecommitdiff
path: root/ref_vcreate.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_vcreate.c
parent03135ebc0e0ee8bab0634654c01d9bc16d260afb (diff)
downloadarm-neon-tests-94f99bc9c70ca4050967a80532e5e048f14ab869.tar.gz
Fix detection of FP16 support: test __ARM_FP16_FORMAT_IEEE instead of __ARM_NEON_FP16_INTRINSICS.
Diffstat (limited to 'ref_vcreate.c')
-rw-r--r--ref_vcreate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ref_vcreate.c b/ref_vcreate.c
index 6192879..e11cceb 100644
--- a/ref_vcreate.c
+++ b/ref_vcreate.c
@@ -63,7 +63,7 @@ FNNAME (INSN_NAME)
DECL_VAL(val, uint, 64, 1);
DECL_VAL(val, poly, 8, 8);
DECL_VAL(val, poly, 16, 4);
-#if __ARM_NEON_FP16_INTRINSICS
+#if defined(__ARM_FP16_FORMAT_IEEE)
DECL_VAL(val, float, 16, 4);
#endif
@@ -72,7 +72,7 @@ FNNAME (INSN_NAME)
DECL_VARIABLE(vector_res, int, 32, 2);
DECL_VARIABLE(vector_res, int, 64, 1);
DECL_VARIABLE(vector_res, float, 32, 2);
-#if __ARM_NEON_FP16_INTRINSICS
+#if defined(__ARM_FP16_FORMAT_IEEE)
DECL_VARIABLE(vector_res, float, 16, 4);
#endif
DECL_VARIABLE(vector_res, uint, 8, 8);
@@ -90,7 +90,7 @@ FNNAME (INSN_NAME)
VECT_VAR(val, int, 32, 2) = 0x123456789abcdef0LL;
VECT_VAR(val, int, 64, 1) = 0x123456789abcdef0LL;
VECT_VAR(val, float, 32, 2) = 0x123456789abcdef0LL;
-#if __ARM_NEON_FP16_INTRINSICS
+#if defined(__ARM_FP16_FORMAT_IEEE)
VECT_VAR(val, float, 16, 4) = 0x123456789abcdef0LL;
#endif
VECT_VAR(val, uint, 8, 8) = 0x123456789abcdef0ULL;
@@ -104,7 +104,7 @@ FNNAME (INSN_NAME)
TEST_VCREATE(int, s, 16, 4);
TEST_VCREATE(int, s, 32, 2);
TEST_VCREATE(float, f, 32, 2);
-#if __ARM_NEON_FP16_INTRINSICS
+#if defined(__ARM_FP16_FORMAT_IEEE)
TEST_VCREATE(float, f, 16, 4);
#endif
TEST_VCREATE(int, s, 64, 1);