[cfe-commits] r157906 - /cfe/trunk/lib/Basic/Targets.cpp
Craig Topper
craig.topper at gmail.com
Sun Jun 3 14:56:22 PDT 2012
Author: ctopper
Date: Sun Jun 3 16:56:22 2012
New Revision: 157906
URL: http://llvm.org/viewvc/llvm-project?rev=157906&view=rev
Log:
Make AES and PCLMUL features imply SSE2 as that's needed to get the right types defined.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=157906&r1=157905&r2=157906&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Sun Jun 3 16:56:22 2012
@@ -1747,9 +1747,9 @@
else if (Name == "3dnowa")
Features["mmx"] = Features["3dnow"] = Features["3dnowa"] = true;
else if (Name == "aes")
- Features["aes"] = true;
+ Features["sse"] = Features["sse2"] = Features["aes"] = true;
else if (Name == "pclmul")
- Features["pclmul"] = true;
+ Features["sse"] = Features["sse2"] = Features["pclmul"] = true;
else if (Name == "avx")
Features["mmx"] = Features["sse"] = Features["sse2"] = Features["sse3"] =
Features["ssse3"] = Features["sse41"] = Features["sse42"] =
@@ -1787,7 +1787,8 @@
Features["sse4a"] = false;
else if (Name == "sse2")
Features["sse2"] = Features["sse3"] = Features["ssse3"] =
- Features["sse41"] = Features["sse42"] = Features["sse4a"] = false;
+ Features["sse41"] = Features["sse42"] = Features["sse4a"] =
+ Features["aes"] = Features["pclmul"] = false;
else if (Name == "sse3")
Features["sse3"] = Features["ssse3"] = Features["sse41"] =
Features["sse42"] = Features["sse4a"] = false;
More information about the cfe-commits
mailing list