]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add 'aesdec' to the set of insns checked for assembler level SSE4.2
authorJulian Seward <jseward@acm.org>
Sun, 22 Jul 2012 11:10:08 +0000 (11:10 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 22 Jul 2012 11:10:08 +0000 (11:10 +0000)
support (Rich Coe) and tidy up a couple of other bits of assembly by
giving them trashed-register lists.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12772

configure.in

index c7878c70eca8ad9b1e0cc5cface682565e21f74d..cefb4285136c337cc96fb16487f52f85d0473dc0 100644 (file)
@@ -1695,7 +1695,7 @@ AC_MSG_CHECKING([if x86/amd64 assembler supports 'lzcnt'])
 
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
   do {                  
-      __asm__ __volatile__("lzcnt %rax,%rax");
+      __asm__ __volatile__("lzcnt %%rax,%%rax" : : : "rax");
   } while (0)
 ]])], [
   ac_have_as_lzcnt=yes
@@ -1718,7 +1718,9 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
    __asm__ __volatile__(
       "crc32q %%r15,%%r15" : : : "r15" );
    __asm__ __volatile__(
-      "pblendvb (%rcx), %xmm11"); }
+      "pblendvb (%%rcx), %%xmm11" : : : "memory", "xmm11"); 
+   __asm__ __volatile__(
+      "aesdec %%xmm2, %%xmm1" : : : "xmm2", "xmm1"); }
   while (0)
 ]])], [
 ac_have_as_sse42=yes
@@ -1762,7 +1764,7 @@ AC_MSG_CHECKING([if x86/amd64 assembler knows the MOVBE insn])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
   do { long long int x; 
    __asm__ __volatile__(
-      "movbe (%%rsp), %%r15" : : : "r15" ); }
+      "movbe (%%rsp), %%r15" : : : "memory", "r15" ); }
   while (0)
 ]])], [
 ac_have_as_movbe=yes