From a7463c34448cbbd6d5262532b4baec78e27931ea Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 3 Jun 2012 21:56:22 +0000 Subject: [PATCH] Make AES and PCLMUL features imply SSE2 as that's needed to get the right types defined. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157906 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Targets.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index b52baba22b..b6e71fb85e 100644 --- a/lib/Basic/Targets.cpp +++ b/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; -- 2.50.1