[cfe-commits] r137905 - /cfe/trunk/lib/Basic/Targets.cpp

Chandler Carruth chandlerc at google.com
Wed Aug 17 18:23:11 PDT 2011


On Wed, Aug 17, 2011 at 5:07 PM, Bruno Cardoso Lopes <
bruno.cardoso at gmail.com> wrote:

> Author: bruno
> Date: Wed Aug 17 19:07:03 2011
> New Revision: 137905
>
> URL: http://llvm.org/viewvc/llvm-project?rev=137905&view=rev
> Log:
> "-mavx" should also enable all other SSE levels.
>

Related to this, someone recently noticed that with GCC -msse* appears to
imply -mmmx. It doesn't on Clang. Should it?


>
> 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=137905&r1=137904&r2=137905&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/Basic/Targets.cpp (original)
> +++ cfe/trunk/lib/Basic/Targets.cpp Wed Aug 17 19:07:03 2011
> @@ -1284,7 +1284,8 @@
>     else if (Name == "aes")
>       Features["aes"] = true;
>     else if (Name == "avx")
> -      Features["avx"] = true;
> +      Features["avx"] = Features["sse"] = Features["sse2"] =
> Features["sse3"] =
> +        Features["ssse3"] = Features["sse41"] = Features["sse42"] = true;
>   } else {
>     if (Name == "mmx")
>       Features["mmx"] = Features["3dnow"] = Features["3dnowa"] = false;
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110817/e5474eec/attachment.html>


More information about the cfe-commits mailing list