Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Carsten Munk <carsten.munk@jollamobile.com>
- Loading branch information
Carsten Munk
committed
Feb 13, 2013
1 parent
e8bd596
commit 7b07436
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff -ru llvm-3.1.src/lib/Target/X86/X86Subtarget.cpp llvm-3.1.src-noavxsse4/lib/Target/X86/X86Subtarget.cpp | ||
--- llvm-3.1.src/lib/Target/X86/X86Subtarget.cpp 2012-06-12 14:35:17.000000000 +0200 | ||
+++ llvm-3.1.src-noavxsse4/lib/Target/X86/X86Subtarget.cpp 2013-02-13 14:01:46.918216857 +0100 | ||
@@ -194,10 +194,11 @@ | ||
if ((EDX >> 26) & 1) { X86SSELevel = SSE2; ToggleFeature(X86::FeatureSSE2); } | ||
if (ECX & 0x1) { X86SSELevel = SSE3; ToggleFeature(X86::FeatureSSE3); } | ||
if ((ECX >> 9) & 1) { X86SSELevel = SSSE3; ToggleFeature(X86::FeatureSSSE3);} | ||
+#if 0 | ||
if ((ECX >> 19) & 1) { X86SSELevel = SSE41; ToggleFeature(X86::FeatureSSE41);} | ||
if ((ECX >> 20) & 1) { X86SSELevel = SSE42; ToggleFeature(X86::FeatureSSE42);} | ||
if ((ECX >> 28) & 1) { X86SSELevel = AVX; ToggleFeature(X86::FeatureAVX); } | ||
- | ||
+#endif | ||
bool IsIntel = memcmp(text.c, "GenuineIntel", 12) == 0; | ||
bool IsAMD = !IsIntel && memcmp(text.c, "AuthenticAMD", 12) == 0; | ||
|
||
@@ -301,6 +302,7 @@ | ||
HasBMI = true; | ||
ToggleFeature(X86::FeatureBMI); | ||
} | ||
+#if 0 | ||
if (IsIntel && ((EBX >> 5) & 0x1)) { | ||
X86SSELevel = AVX2; | ||
ToggleFeature(X86::FeatureAVX2); | ||
@@ -309,6 +311,7 @@ | ||
HasBMI2 = true; | ||
ToggleFeature(X86::FeatureBMI2); | ||
} | ||
+#endif | ||
} | ||
} | ||
} |