From fdfca22bda4e8b711ea9d95f764a689864b19c71 Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 17 Jan 2012 13:16:50 +0000 Subject: [PATCH] Improve configure for SSE 4.2 detection. Fixes #271438 git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12340 a5019735-40e9-0310-863c-91ae7b9d1cf9 --- NEWS | 1 + configure.in | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 449c67a4e..ed402d165 100644 --- a/NEWS +++ b/NEWS @@ -30,6 +30,7 @@ where XXXXXX is the bug number as listed below. 247386 make perf does not run all performance tests 270796 s390x: Removed broken support for the TS insn +271438 Fix configure for proper SSE4.2 detection 276993 fix mremap 'no thrash checks' 281482 valgrind's memcheck incorrect byte allocation count in realloc() for silly argument 283413 Fix wrong sanity check diff --git a/configure.in b/configure.in index c0bd64cf5..d0a4ee7cb 100644 --- a/configure.in +++ b/configure.in @@ -1557,7 +1557,9 @@ AC_MSG_CHECKING([if x86/amd64 assembler speaks SSE4.2]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ do { long long int x; __asm__ __volatile__( - "crc32q %%r15,%%r15" : : : "r15" ); } + "crc32q %%r15,%%r15" : : : "r15" ); + __asm__ __volatile__( + "pblendvb (%rcx), %xmm11"); } while (0) ]])], [ ac_have_as_sse42=yes -- 2.34.1