Skip to content

Commit 7571340

Browse files
author
florian
committed
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
1 parent 4abedd8 commit 7571340

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

configure.ac

+4-1
Original file line numberDiff line numberDiff line change
@@ -2260,7 +2260,10 @@ AM_CONDITIONAL(BUILD_FMA_TESTS, test x$ac_have_as_fma = xyes)
22602260
AC_MSG_CHECKING([if amd64 assembler knows the MPX instructions])
22612261

22622262
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
2263-
asm ("bndmov %bnd0,(%rsp)")
2263+
do {
2264+
asm ("bndmov %bnd0,(%rsp)");
2265+
asm ("bndldx 3(%rbx,%rdx), %bnd2");
2266+
} while (0)
22642267
]])], [
22652268
ac_have_as_mpx=yes
22662269
AC_MSG_RESULT([yes])

0 commit comments

Comments
 (0)