From: Florian Krohm Date: Fri, 12 Dec 2014 17:44:36 +0000 (+0000) Subject: Update detection of tool-chain support for MPX insns X-Git-Tag: svn/VALGRIND_3_11_0~781 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ea4e32525e2e367352b23e38021f9b43672a980;p=thirdparty%2Fvalgrind.git Update detection of tool-chain support for MPX insns to better work for older assemblers. Pertains to BZ #339542. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14805 --- diff --git a/configure.ac b/configure.ac index 11986775dc..1298b293c2 100644 --- a/configure.ac +++ b/configure.ac @@ -2260,7 +2260,10 @@ AM_CONDITIONAL(BUILD_FMA_TESTS, test x$ac_have_as_fma = xyes) AC_MSG_CHECKING([if amd64 assembler knows the MPX instructions]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ - asm ("bndmov %bnd0,(%rsp)") + do { + asm ("bndmov %bnd0,(%rsp)"); + asm ("bndldx 3(%rbx,%rdx), %bnd2"); + } while (0) ]])], [ ac_have_as_mpx=yes AC_MSG_RESULT([yes])