configure: Use as_check for the main check for whether NEON is supported
This requires adding the "-c" flag to ASFLAGS before doing the check. This also makes sure to validate the gas-preprocessor is functional for MSVC configurations, by testing whether the "cmeq" instruction can be assembled at this point.
This commit is contained in:
@@ -1005,13 +1005,12 @@ if [ $asm = auto -a $ARCH = ARM ] ; then
|
||||
fi
|
||||
|
||||
if [ $asm = auto -a $ARCH = AARCH64 ] ; then
|
||||
if [ $compiler = CL ] && cpp_check '' '' 'defined(_M_ARM64)' ; then
|
||||
define HAVE_AARCH64
|
||||
define HAVE_NEON
|
||||
elif cc_check '' '' '__asm__("cmeq v0.8h, v0.8h, #0");' ; then
|
||||
define HAVE_AARCH64
|
||||
define HAVE_NEON
|
||||
if [ $compiler != CL ] ; then
|
||||
ASFLAGS="$ASFLAGS -c"
|
||||
fi
|
||||
if as_check "cmeq v0.8h, v0.8h, #0" ; then
|
||||
define HAVE_AARCH64
|
||||
define HAVE_NEON
|
||||
else
|
||||
echo "no NEON support, try adding -mfpu=neon to CFLAGS"
|
||||
echo "If you really want to run on such a CPU, configure with --disable-asm."
|
||||
|
||||
Reference in New Issue
Block a user