[llvm-commits] XOP Feature flag

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Thu Dec 1 14:49:52 PST 2011


On Thu, Dec 1, 2011 at 8:17 PM, Jan Sjodin <jan_sjodin at yahoo.com> wrote:
> Patch to add XOP feature.

       if (IsAMD && ((ECX >> 16) & 0x1)) {
         HasFMA4 = true;
         ToggleFeature(X86::FeatureFMA4);
+        HasXOP = true;
+        ToggleFeature(X86::FeatureXOP);

Out of curiosity: is it possible to have a amd processor with FMA4 but
without XOP or vice-versa?
LGTM, please apply!

-- 
Bruno Cardoso Lopes
http://www.brunocardoso.cc



More information about the llvm-commits mailing list