diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2014-09-02 16:51:20 +0200 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2014-09-02 16:51:20 +0200 |
commit | 94f99bc9c70ca4050967a80532e5e048f14ab869 (patch) | |
tree | 5b0e83094acaa1b9b5c7afea801b3fb74a2684f5 /ref_vreinterpret.c | |
parent | 03135ebc0e0ee8bab0634654c01d9bc16d260afb (diff) | |
download | platform_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_vreinterpret.c')
-rw-r--r-- | ref_vreinterpret.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ref_vreinterpret.c b/ref_vreinterpret.c index e4da704..894431d 100644 --- a/ref_vreinterpret.c +++ b/ref_vreinterpret.c @@ -59,7 +59,7 @@ void exec_vreinterpret (void) VECT_VAR(vector_res, T1, W, N)); \ DUMP_FP(TEST_MSG, T1, W, N, PRIx##W); -#if __ARM_NEON_FP16_INTRINSICS +#if defined(__ARM_FP16_FORMAT_IEEE) #define TEST_VREINTERPRET_FP16(Q, T1, T2, W, N, TS1, TS2, WS, NS) \ VECT_VAR(vector_res, T1, W, N) = \ vreinterpret##Q##_##T2##W##_##TS2##WS(VECT_VAR(vector, TS1, WS, NS)); \ @@ -72,7 +72,7 @@ void exec_vreinterpret (void) statement */ DECL_VARIABLE_ALL_VARIANTS(vector); DECL_VARIABLE_ALL_VARIANTS(vector_res); -#if __ARM_NEON_FP16_INTRINSICS +#if defined(__ARM_FP16_FORMAT_IEEE) DECL_VARIABLE(vector, float, 16, 4); DECL_VARIABLE(vector_res, float, 16, 4); DECL_VARIABLE(vector, float, 16, 8); @@ -86,7 +86,7 @@ void exec_vreinterpret (void) TEST_MACRO_ALL_VARIANTS_2_5(TEST_VLOAD, vector, buffer); TEST_VLOAD(vector, buffer, , float, f, 32, 2); TEST_VLOAD(vector, buffer, q, float, f, 32, 4); -#if __ARM_NEON_FP16_INTRINSICS +#if defined(__ARM_FP16_FORMAT_IEEE) TEST_VLOAD(vector, buffer, , float, f, 16, 4); TEST_VLOAD(vector, buffer, q, float, f, 16, 8); #endif @@ -342,7 +342,7 @@ void exec_vreinterpret (void) TEST_VREINTERPRET_POLY(q, poly, p, 8, 16, float, f, 32, 4); TEST_VREINTERPRET_POLY(q, poly, p, 16, 8, float, f, 32, 4); -#if __ARM_NEON_FP16_INTRINSICS +#if defined(__ARM_FP16_FORMAT_IEEE) /* vreinterpret_f16_xx */ TEST_VREINTERPRET_FP16(, float, f, 16, 4, int, s, 8, 8); TEST_VREINTERPRET_FP16(, float, f, 16, 4, int, s, 16, 4); |