[llvm-commits] XOP Feature flag

Jan Sjodin jan_sjodin at yahoo.com
Fri Dec 2 07:18:06 PST 2011


Committed revision 145682.


Thanks!


- Jan

----- Original Message -----
> From: Bruno Cardoso Lopes <bruno.cardoso at gmail.com>
> To: Jan Sjodin <jan_sjodin at yahoo.com>
> Cc: "llvm-commits at cs.uiuc.edu" <llvm-commits at cs.uiuc.edu>
> Sent: Thursday, December 1, 2011 5:49 PM
> Subject: Re: [llvm-commits] XOP Feature flag
> 
> 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