From 8e1b7a5bd5cd16cdd9db3a35f56a6853c8fe057c Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Sun, 12 Jul 2009 13:19:04 +0000 Subject: [PATCH] Fix identification of sse3 on amd64s. Previously it was identifying ssse3, not sse3 (sigh). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10434 --- coregrind/m_machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3