aboutsummaryrefslogtreecommitdiff
path: root/ref_vget_low.c
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@st.com>2013-04-11 15:05:18 +0200
committerChristophe Lyon <christophe.lyon@st.com>2013-04-11 15:05:18 +0200
commit34adaf63011ec336c8fa4594c6bba1c59840e167 (patch)
tree421db32a0477c74f47a6e51f040cfd60f6db5936 /ref_vget_low.c
parent91ae809096ef1dae9756ada87efe475ce79e4bb5 (diff)
downloadarm-neon-tests-34adaf63011ec336c8fa4594c6bba1c59840e167.tar.gz
Added support for half-precision (fp16) variants.
Diffstat (limited to 'ref_vget_low.c')
-rw-r--r--ref_vget_low.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ref_vget_low.c b/ref_vget_low.c
index 5925ada..88f1f7c 100644
--- a/ref_vget_low.c
+++ b/ref_vget_low.c
@@ -44,9 +44,16 @@ void exec_vget_low (void)
statement */
DECL_VARIABLE_64BITS_VARIANTS(vector64);
DECL_VARIABLE_128BITS_VARIANTS(vector128);
+#if __ARM_NEON_FP16_INTRINSICS
+ DECL_VARIABLE(vector64, float, 16, 4);
+ DECL_VARIABLE(vector128, float, 16, 8);
+#endif
TEST_MACRO_128BITS_VARIANTS_2_5(TEST_VLOAD, vector128, buffer);
TEST_VLOAD(vector128, buffer, q, float, f, 32, 4);
+#if __ARM_NEON_FP16_INTRINSICS
+ TEST_VLOAD(vector128, buffer, q, float, f, 16, 8);
+#endif
clean_results ();
@@ -61,6 +68,9 @@ void exec_vget_low (void)
TEST_VGET_LOW(poly, p, 8, 8, 16);
TEST_VGET_LOW(poly, p, 16, 4, 8);
TEST_VGET_LOW(float, f, 32, 2, 4);
+#if __ARM_NEON_FP16_INTRINSICS
+ TEST_VGET_LOW(float, f, 16, 4, 8);
+#endif
dump_results_hex (TEST_MSG);
}