aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRagesh Radhakrishnan <ragesh.r@linaro.org>2013-10-14 19:45:58 +0530
committerRagesh Radhakrishnan <ragesh.r@linaro.org>2013-12-04 16:24:56 +0530
commit8d8f68709d8ec730f14de15fd1f8192f1a5f7163 (patch)
tree23aad4821b0690055090dea21cb2e0fa44b5e8ab
parent98a449c942bf6bd3c0fc30f7dfd5c89a8fe649d7 (diff)
downloadlibjpeg-turbo-8d8f68709d8ec730f14de15fd1f8192f1a5f7163.tar.gz
Add aarch64 neon support check
Add small neon code snipet to check the compiler neon support in acinclude.m4
-rw-r--r--acinclude.m433
1 files changed, 33 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 70e2555..8ebfbc5 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -180,3 +180,36 @@ AC_DEFUN([AC_CHECK_COMPATIBLE_ARM_ASSEMBLER_IFELSE],[
$2
fi
])
+
+AC_DEFUN([AC_CHECK_COMPATIBLE_ARM64_ASSEMBLER_IFELSE],[
+ ac_good_gnu_arm_assembler=no
+ ac_save_CC="$CC"
+ ac_save_CFLAGS="$CFLAGS"
+ CFLAGS="$CCASFLAGS -x assembler-with-cpp"
+ CC="$CCAS"
+ AC_COMPILE_IFELSE([[
+ .text
+ movi v0.16b, #100]], ac_good_gnu_arm_assembler=yes)
+
+ ac_use_gas_preprocessor=no
+ if test "x$ac_good_gnu_arm_assembler" = "xno" ; then
+ CC="gas-preprocessor.pl $CCAS"
+ AC_COMPILE_IFELSE([[
+ .text
+ movi v0.16b, #100]], ac_use_gas_preprocessor=yes)
+ fi
+ CFLAGS="$ac_save_CFLAGS"
+ CC="$ac_save_CC"
+
+ if test "x$ac_use_gas_preprocessor" = "xyes" ; then
+ CCAS="gas-preprocessor.pl $CCAS"
+ AC_SUBST([CCAS])
+ ac_good_gnu_arm_assembler=yes
+ fi
+
+ if test "x$ac_good_gnu_arm_assembler" = "xyes" ; then
+ $1
+ else
+ $2
+ fi
+])