From 5ea4e32525e2e367352b23e38021f9b43672a980 Mon Sep 17 00:00:00 2001 From: Florian Krohm Date: Fri, 12 Dec 2014 17:44:36 +0000 Subject: [PATCH] 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 --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]) -- 2.47.3