]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix identification of sse3 on amd64s. Previously it was identifying
authorJulian Seward <jseward@acm.org>
Sun, 12 Jul 2009 13:19:04 +0000 (13:19 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 12 Jul 2009 13:19:04 +0000 (13:19 +0000)
ssse3, not sse3 (sigh).

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

coregrind/m_machine.c

index 19b7a2f6e9b9cd60948ac5134dccf6a81eee89ab..1061112592c2a7f1479f1c854e26f0e3765f2fe8 100644 (file)
@@ -414,7 +414,7 @@ Bool VG_(machine_get_hwcaps)( void )
 
      have_sse1 = (edx & (1<<25)) != 0; /* True => have sse insns */
      have_sse2 = (edx & (1<<26)) != 0; /* True => have sse2 insns */
-     have_sse3 = (ecx & (1<<9)) != 0;  /* True => have sse3 insns */
+     have_sse3 = (ecx & (1<<0)) != 0;  /* True => have sse3 insns */
 
      /* cmpxchg8b is a minimum requirement now; if we don't have it we
         must simply give up.  But all CPUs since Pentium-I have it, so