Bug 1298569 - Part 1. Add NEON_FLAGS for arm32. r=glandium
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Sat, 27 Aug 2016 14:23:22 +0900
changeset 355318 3356000cec59f979f5d4aa384854343a8d184484
parent 355264 a387818ed08a57cc9d292c19dbd0a66f37ee94c3
child 355319 90ae9a8843ec7ddcf88eaa3c626ae705492f5609
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1298569
milestone51.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1298569 - Part 1. Add NEON_FLAGS for arm32. r=glandium aarch64 doesn't require compiler flag when using NEON. To use NEON on aarch64 with BUILD_ARM_NEON, we should move NEON's flags to NEON_FLAGS like SSE2_FLAGS. MozReview-Commit-ID: PGDjcHdTfH
build/autoconf/arch.m4
--- a/build/autoconf/arch.m4
+++ b/build/autoconf/arch.m4
@@ -197,16 +197,17 @@ if test -n "$all_flags"; then
     if test -n "$thumb_flag"; then
         LDFLAGS="$LDFLAGS $thumb_flag"
     fi
 fi
 
 AC_SUBST(MOZ_THUMB2)
 
 if test "$CPU_ARCH" = "arm"; then
+  NEON_FLAGS="-mfpu=neon"
   AC_MSG_CHECKING(for ARM SIMD support in compiler)
   # We try to link so that this also fails when
   # building with LTO.
   AC_TRY_LINK([],
                  [asm("uqadd8 r1, r1, r2");],
                  result="yes", result="no")
   AC_MSG_RESULT("$result")
   if test "$result" = "yes"; then
@@ -243,10 +244,11 @@ if test "$CPU_ARCH" = "arm"; then
   fi
 
 fi # CPU_ARCH = arm
 
 AC_SUBST(HAVE_ARM_SIMD)
 AC_SUBST(HAVE_ARM_NEON)
 AC_SUBST(BUILD_ARM_NEON)
 AC_SUBST(ARM_ARCH)
+AC_SUBST_LIST(NEON_FLAGS)
 
 ])