|
From: <sv...@va...> - 2014-12-12 17:44:47
|
Author: florian
Date: Fri Dec 12 17:44:36 2014
New Revision: 14805
Log:
Update detection of tool-chain support for MPX insns
to better work for older assemblers.
Pertains to BZ #339542.
Modified:
trunk/configure.ac
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Fri Dec 12 17:44:36 2014
@@ -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])
|