From: Julian Seward Date: Sun, 12 Jul 2009 13:19:04 +0000 (+0000) Subject: Fix identification of sse3 on amd64s. Previously it was identifying X-Git-Tag: svn/VALGRIND_3_5_0~413 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e1b7a5bd5cd16cdd9db3a35f56a6853c8fe057c;p=thirdparty%2Fvalgrind.git Fix identification of sse3 on amd64s. Previously it was identifying ssse3, not sse3 (sigh). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10434 --- diff --git a/coregrind/m_machine.c b/coregrind/m_machine.c index 19b7a2f6e9..1061112592 100644 --- a/coregrind/m_machine.c +++ b/coregrind/m_machine.c @@ -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