This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [google][4.6]Add new target builtin to check for amdfam15h processors (issue5535046)


On Tue, Jan 10, 2012 at 3:31 PM, Diego Novillo <dnovillo@google.com> wrote:
> On 12-01-10 17:11 , Sriraman Tallam wrote:
>>
>> This patch adds a new target builtin, __builtin_cpu_is_amdfam15, to check
>> for AMD Family 15h processors.
>>
>> Â Â Â Â* i386-cpuinfo.c (__cpu_is_amdfam15): New member in __cpu_model
>> struct.
>> Â Â Â Â(get_amd_cpu): Check for family 15h processors.
>> Â Â Â Â(cpu_indicator_init): Adjust model and family for AMD processors.
>> Â Â Â ÂRefactor code.
>>
>> Â Â Â Â* i386.c (IX86_BUILTIN_CPU_IS_AMDFAM15): New enum value.
>> Â Â Â Â(fold_builtin_cpu): Process IX86_BUILTIN_CPU_IS_AMDFAM15.
>> Â Â Â Â(ix86_init_platform_type_builtins): Make new builtin
>> _builtin_cpu_is_amdfam15.
>> Â Â Â Â(ix86_expand_builtin): Expand IX86_BUILTIN_CPU_IS_AMDFAM15.
>> Â Â Â Â* testsuite/gcc.target/builtin_target.c (fn1): Call
>> __builtin_cpu_is_amdfam15.
>
>
> Any reason why this is not applicable for upstream 4.6?

Yes because the upstream GCC does not have those builtins yet.

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]