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 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/configure.ac b/configure.ac
index 1198677..1298b29 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2260,7 +2260,10 @@
 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])