none/tests/amd64/avx-1: Make it explicit that this test uses the vpclmulqdq instruction

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12821
This commit is contained in:
Bart Van Assche 2012-08-03 19:37:02 +00:00
parent ebc9830bb1
commit a36fc3e178
2 changed files with 26 additions and 1 deletions

View File

@ -1694,6 +1694,31 @@ AC_MSG_RESULT([no])
AM_CONDITIONAL(BUILD_PCLMULQDQ_TESTS, test x$ac_have_as_pclmulqdq = xyes)
# does the x86/amd64 assembler understand the VPCLMULQDQ instruction?
# Note, this doesn't generate a C-level symbol. It generates a
# automake-level symbol (BUILD_VPCLMULQDQ_TESTS), used in test Makefile.am's
AC_MSG_CHECKING([if x86/amd64 assembler supports 'vpclmulqdq'])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
do {
/*
* Carry-less multiplication of xmm1 with xmm2 and store the result in
* xmm3. The immediate is used to determine which quadwords of xmm1 and
* xmm2 should be used.
*/
__asm__ __volatile__(
"vpclmulqdq \$0,%%xmm1,%%xmm2,%%xmm3" : : : );
} while (0)
]])], [
ac_have_as_vpclmulqdq=yes
AC_MSG_RESULT([yes])
], [
ac_have_as_vpclmulqdq=no
AC_MSG_RESULT([no])
])
AM_CONDITIONAL(BUILD_VPCLMULQDQ_TESTS, test x$ac_have_as_vpclmulqdq = xyes)
# does the x86/amd64 assembler understand the LZCNT instruction?
# Note, this doesn't generate a C-level symbol. It generates a
# automake-level symbol (BUILD_LZCNT_TESTS), used in test Makefile.am's

View File

@ -105,7 +105,7 @@ if BUILD_SSE42_TESTS
pcmpstr64w pcmpxstrx64w
endif
if BUILD_AVX_TESTS
if BUILD_PCLMULQDQ_TESTS
if BUILD_VPCLMULQDQ_TESTS
check_PROGRAMS += avx-1
endif
endif