提交 63136410 authored 作者: Steve Underwood's avatar Steve Underwood

Fixed poor checking for ARM NEON

上级 9480f417
......@@ -20,8 +20,8 @@ ac_cv_symbol_arm_neon="no"
case "${ax_cv_c_compiler_vendor}" in
gnu)
save_CFLAGS="${CFLAGS}"
CFLAGS="${CFLAGS} -mfpu=neon"
AC_COMPILE_IFELSE(
CFLAGS="${CFLAGS} -mfpu=neon -mfloat-abi=hard"
AC_RUN_IFELSE(
[AC_LANG_PROGRAM(
[
#include <inttypes.h>
......@@ -33,7 +33,7 @@ gnu)
}
],
[
int32x4_t z;
volatile int32x4_t z;
int16_t x[[8]];
int16_t y[[8]];
z = testfunc(x, y);
......@@ -45,6 +45,9 @@ gnu)
COMP_VENDOR_CXXFLAGS="-mfpu=neon $COMP_VENDOR_CXXFLAGS"
ac_cv_symbol_arm_neon="yes"],
[AC_MSG_RESULT([no])],
dnl Assume "no" if cross-compiling
[AC_MSG_RESULT([no])]
)
CFLAGS="${save_CFLAGS}"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论