Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2365)

Issue 5535046: [google][4.6]Add new target builtin to check for amdfam15h processors

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by Sriraman
Modified:
12 years, 3 months ago
Reviewers:
davidxl, Diego Novillo, pinskia
CC:
michiel.vermeulen_amd.com, gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/branches/google/gcc-4_6/
Visibility:
Public.

Patch Set 1 #

Total comments: 2

Patch Set 2 : [google][4.6]Add new target builtin to check for amdfam15h processors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -49 lines) Patch
M gcc/config/i386/i386.c View 5 chunks +44 lines, -24 lines 0 comments Download
M gcc/testsuite/gcc.target/i386/builtin_target.c View 1 1 chunk +4 lines, -0 lines 0 comments Download
M libgcc/config/i386/i386-cpuinfo.c View 1 6 chunks +46 lines, -25 lines 0 comments Download

Messages

Total messages: 9
Sriraman
This patch adds a new target builtin, __builtin_cpu_is_amdfam15, to check for AMD Family 15h processors. ...
12 years, 3 months ago (2012-01-10 22:11:52 UTC) #1
Diego Novillo
On 12-01-10 17:11 , Sriraman Tallam wrote: > This patch adds a new target builtin, ...
12 years, 3 months ago (2012-01-10 23:31:45 UTC) #2
pinskia_gmail.com
On Tue, Jan 10, 2012 at 3:31 PM, Diego Novillo <dnovillo@google.com> wrote: > On 12-01-10 ...
12 years, 3 months ago (2012-01-10 23:33:18 UTC) #3
Diego Novillo
On 12-01-10 18:33 , Andrew Pinski wrote: > On Tue, Jan 10, 2012 at 3:31 ...
12 years, 3 months ago (2012-01-10 23:34:49 UTC) #4
Sriraman
On Tue, Jan 10, 2012 at 3:33 PM, Andrew Pinski <pinskia@gmail.com> wrote: > On Tue, ...
12 years, 3 months ago (2012-01-10 23:39:14 UTC) #5
davidxl
http://codereview.appspot.com/5535046/diff/1/gcc/config/i386/i386.c File gcc/config/i386/i386.c (right): http://codereview.appspot.com/5535046/diff/1/gcc/config/i386/i386.c#newcode26032 gcc/config/i386/i386.c:26032: + M_AMDFAM15, Maybe better to change 10 to 10H, ...
12 years, 3 months ago (2012-01-11 00:05:01 UTC) #6
Sriraman
New patch uploaded with the changes. * i386.c (IX86_BUILTIN_CPU_IS_AMDFAM15H_BDVER1): New enum value. (IX86_BUILTIN_CPU_IS_AMDFAM15H_BDVER2): New enum ...
12 years, 3 months ago (2012-01-11 20:06:14 UTC) #7
davidxl
Good for google branches. Please re-submit the combined runtime support patch to trunk for review. ...
12 years, 3 months ago (2012-01-11 23:51:16 UTC) #8
Sriraman
12 years, 3 months ago (2012-01-12 00:18:50 UTC) #9
Submitted to google 4.6 branch.

On Wed, Jan 11, 2012 at 3:51 PM, Xinliang David Li <davidxl@google.com> wrote:
> Good for google branches.
>
> Please re-submit the combined runtime support patch to trunk for review.

Will do.

Thanks,
-Sri.

>
> thanks,
>
> David
>
> On Wed, Jan 11, 2012 at 12:06 PM,  <tmsriram@google.com> wrote:
>> New patch uploaded with the changes.
>>
>>
>>        * i386.c (IX86_BUILTIN_CPU_IS_AMDFAM15H_BDVER1): New enum value.
>>        (IX86_BUILTIN_CPU_IS_AMDFAM15H_BDVER2): New enum value.
>>        (IX86_BUILTIN_CPU_IS_AMDFAM10H): Rename IX86_BUILTIN_CPU_IS_AMDFAM10.
>>        (IX86_BUILTIN_CPU_IS_AMDFAM10H_BARCELONA): Rename
>> IX86_BUILTIN_CPU_IS_AMDFAM10_BARCELONA.
>>        (IX86_BUILTIN_CPU_IS_AMDFAM10H_SHANGHAI): Rename
>> IX86_BUILTIN_CPU_IS_AMDFAM10_SHANGHAI.
>>        (IX86_BUILTIN_CPU_IS_AMDFAM10H_ISTANBUL): Rename
>> IX86_BUILTIN_CPU_IS_AMDFAM10_ISTANBUL.
>>        (fold_builtin_cpu): Process IX86_BUILTIN_CPU_IS_AMDFAM15H_BDVER1
>>        and IX86_BUILTIN_CPU_IS_AMDFAM15H_BDVER2.
>>        (M_AMDFAM10H): Rename M_AMDFAM10.
>>        (M_AMDFAM10H_BARCELONA): Rename M_AMDFAM10_BARCELONA.
>>        (M_AMDFAM10H_SHANGHAI): Rename M_AMDFAM10_SHANGHAI.
>>        (M_AMDFAM10H_ISTANBUL): Rename M_AMDFAM10_ISTANBUL.
>>        (ix86_init_platform_type_builtins): Make new builtins
>> __builtin_cpu_is_amdfam15_bdver1
>>        and __builtin_cpu_is_amdfam15_bdver2.
>>        (ix86_expand_builtin): Expand IX86_BUILTIN_CPU_IS_AMDFAM15_BDVER1 and
>>        IX86_BUILTIN_CPU_IS_AMDFAM15_BDVER2.
>>        * testsuite/gcc.target/builtin_target.c (fn1): Call new builtins.
>>
>>        * i386-cpuinfo.c (__cpu_is_amdfam15h_bdver1): New member in
>> __cpu_model
>> struct.
>>        (__cpu_is_amdfam15h_bdver2): New member in __cpu_model struct.
>>        (__cpu_model): Rename __cpu_is_amdfam10 to __cpu_is_amdfam10h.
>>        Rename __cpu_is_amdfam10_barcelona to __cpu_is_amdfam10h_barcelona.
>>        Rename __cpu_is_amdfam10_shanghai to __cpu_is_amdfam10h_shanghai.
>>        Rename __cpu_is_amdfam10_istanbul to __cpu_is_amdfam10h_istanbul.
>>
>>        (get_amd_cpu): Check for family 15h processors.
>>        (cpu_indicator_init): Adjust model and family for AMD processors.
>>        Refactor code.
>>
>>
>> Thanks,
>> -Sri.
>>
>>
>> On 2012/01/11 00:05:01, davidxl wrote:
>>>
>>> http://codereview.appspot.com/5535046/diff/1/gcc/config/i386/i386.c
>>> File gcc/config/i386/i386.c (right):
>>
>>
>>
>>
http://codereview.appspot.com/5535046/diff/1/gcc/config/i386/i386.c#newcode26032
>>>
>>> gcc/config/i386/i386.c:26032: +    M_AMDFAM15,
>>> Maybe better to change 10 to 10H, and 15 to 15H in the name as the
>>
>> number is
>>>
>>> hex.
>>
>>
>>> Why not split the enum for family 15h into M_AMDFAM15H_BDVER1 and
>>
>> .._BVER2?
>>
>>
>>
http://codereview.appspot.com/5535046/diff/1/libgcc/config/i386/i386-cpuinfo.c
>>>
>>> File libgcc/config/i386/i386-cpuinfo.c (right):
>>
>>
>>
>>
http://codereview.appspot.com/5535046/diff/1/libgcc/config/i386/i386-cpuinfo....
>>>
>>> libgcc/config/i386/i386-cpuinfo.c:102: break;
>>> No family15h model encoding?
>>
>>
>>
>>
>> http://codereview.appspot.com/5535046/
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b