This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [google][4.6]Add new target builtin to check for amdfam15h processors (issue5535046)
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Diego Novillo <dnovillo at google dot com>
- Cc: Sriraman Tallam <tmsriram at google dot com>, reply at codereview dot appspotmail dot com, davidxl at google dot com, michiel dot vermeulen at amd dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 10 Jan 2012 15:33:18 -0800
- Subject: Re: [google][4.6]Add new target builtin to check for amdfam15h processors (issue5535046)
- References: <20120110221151.38368B21A3@azwildcat.mtv.corp.google.com> <4F0CCA5F.5040709@google.com>
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