From 1e9e01fabf0a7d9a8fd84317c0aa86aefd03bb0f Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 3 Jun 2012 21:56:22 +0000 Subject: Make AES and PCLMUL features imply SSE2 as that's needed to get the right types defined. llvm-svn: 157906 --- clang/lib/Basic/Targets.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'clang/lib') diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index b52baba22bb..b6e71fb85e4 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -1747,9 +1747,9 @@ bool X86TargetInfo::setFeatureEnabled(llvm::StringMap &Features, 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 @@ bool X86TargetInfo::setFeatureEnabled(llvm::StringMap &Features, 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; -- cgit v1.2.3