diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-06-03 21:56:22 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-06-03 21:56:22 +0000 |
commit | a7463c34448cbbd6d5262532b4baec78e27931ea (patch) | |
tree | 131d73ac6e001d0a49b8e73d8fa83fe54e0ddf23 /lib/Basic/Targets.cpp | |
parent | bd8a18db67232edf1ca95d6f2fbf193900138b29 (diff) |
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
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 7 |
1 files 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<bool> &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<bool> &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; |