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

Benjamin Kramer benny.kra at googlemail.com
Wed Jan 4 06:36:57 PST 2012


Author: d0k
Date: Wed Jan  4 08:36:57 2012
New Revision: 147531

URL: http://llvm.org/viewvc/llvm-project?rev=147531&view=rev
Log:
Penryn doesn't support sse4.2, don't enable it in the first place.

While the code took care of disabling the sse42 flag it didn't know
about popcnt. This broke -march=native on penryn.

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=147531&r1=147530&r2=147531&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Jan  4 08:36:57 2012
@@ -1568,8 +1568,7 @@
     break;
   case CK_Penryn:
     setFeatureEnabled(Features, "mmx", true);
-    setFeatureEnabled(Features, "sse4", true);
-    Features["sse42"] = false;
+    setFeatureEnabled(Features, "sse4.1", true);
     break;
   case CK_Atom:
     setFeatureEnabled(Features, "mmx", true);





More information about the cfe-commits mailing list