diff options
author | Christophe Lyon <christophe.lyon@st.com> | 2016-08-24 18:02:41 +0200 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2016-08-24 18:18:10 +0200 |
commit | d98beba6c8fa7b38fb62cb799c9c7de355937cf3 (patch) | |
tree | 55ed738873e970ac1f115e87fb151fb50399f300 /ref_vcreate.c | |
parent | c1cc7826d74587e0dc1c855810633a219b161ab3 (diff) | |
download | arm-neon-tests-d98beba6c8fa7b38fb62cb799c9c7de355937cf3.tar.gz |
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_vcreate.c')
-rw-r--r-- | ref_vcreate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ref_vcreate.c b/ref_vcreate.c index e11cceb..cfd50d7 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 defined(__ARM_FP16_FORMAT_IEEE) +#if defined(__ARM_FP16_FORMAT_IEEE) && ( ((__ARM_FP & 0x2) != 0) || ((__ARM_NEON_FP16_INTRINSICS & 1) != 0) ) 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 defined(__ARM_FP16_FORMAT_IEEE) +#if defined(__ARM_FP16_FORMAT_IEEE) && ( ((__ARM_FP & 0x2) != 0) || ((__ARM_NEON_FP16_INTRINSICS & 1) != 0) ) 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 defined(__ARM_FP16_FORMAT_IEEE) +#if defined(__ARM_FP16_FORMAT_IEEE) && ( ((__ARM_FP & 0x2) != 0) || ((__ARM_NEON_FP16_INTRINSICS & 1) != 0) ) 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 defined(__ARM_FP16_FORMAT_IEEE) +#if defined(__ARM_FP16_FORMAT_IEEE) && ( ((__ARM_FP & 0x2) != 0) || ((__ARM_NEON_FP16_INTRINSICS & 1) != 0) ) TEST_VCREATE(float, f, 16, 4); #endif TEST_VCREATE(int, s, 64, 1); |