diff mbox

[i386] FSGSBASE for AMD bdver3

Message ID EB4625145972F94C9680D8CADD651615446D0033@sausexdag06.amd.com
State New
Headers show

Commit Message

Gopalasubramanian, Ganesh May 13, 2013, 11:54 a.m. UTC
Hi 

The patch enables FSGSBASE instruction generation for AMD bdver3 architectures.

"make -k check" passes.

Is it OK for upstream?

Regards
Ganesh

Comments

Uros Bizjak May 13, 2013, 12:19 p.m. UTC | #1
On Mon, May 13, 2013 at 1:54 PM, Gopalasubramanian, Ganesh
<Ganesh.Gopalasubramanian@amd.com> wrote:

> The patch enables FSGSBASE instruction generation for AMD bdver3 architectures.
>
> "make -k check" passes.
>
> Is it OK for upstream?

OK. Please also check for missing PTA_PRFCHW and PTA_FXSR for AMD
processors in processor_alias_table.

Thanks,
Uros.
Gopalasubramanian, Ganesh May 15, 2013, 7:03 a.m. UTC | #2
Thank you Uros!

Patch for FSGSBASE instruction generation for AMD bdver3 committed to trunk (rr198916).

Regards
Ganesh

-----Original Message-----
From: Uros Bizjak [mailto:ubizjak@gmail.com] 
Sent: Monday, May 13, 2013 5:50 PM
To: Gopalasubramanian, Ganesh
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH,i386] FSGSBASE for AMD bdver3

On Mon, May 13, 2013 at 1:54 PM, Gopalasubramanian, Ganesh <Ganesh.Gopalasubramanian@amd.com> wrote:

> The patch enables FSGSBASE instruction generation for AMD bdver3 architectures.
>
> "make -k check" passes.
>
> Is it OK for upstream?

OK. Please also check for missing PTA_PRFCHW and PTA_FXSR for AMD processors in processor_alias_table.

Thanks,
Uros.
diff mbox

Patch

Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog       (revision 198821)
+++ gcc/ChangeLog       (working copy)
@@ -1,3 +1,8 @@ 
+2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
+
+        * config/i386/i386.c (processor_alias_table): Add instruction
+        FSGSBASE for AMD bdver3 architecture.
+
 2013-05-13  Martin Jambor  <mjambor@suse.cz>

        PR middle-end/42371
Index: gcc/config/i386/i386.c
===================================================================
--- gcc/config/i386/i386.c      (revision 198821)
+++ gcc/config/i386/i386.c      (working copy)
@@ -3000,7 +3000,7 @@ 
        | PTA_SSE4_2 | PTA_AES | PTA_PCLMUL | PTA_AVX
        | PTA_XOP | PTA_LWP | PTA_BMI | PTA_TBM | PTA_F16C
        | PTA_FMA | PTA_PRFCHW | PTA_FXSR | PTA_XSAVE
-       | PTA_XSAVEOPT},
+       | PTA_XSAVEOPT | PTA_FSGSBASE},
       {"btver1", PROCESSOR_BTVER1, CPU_GENERIC64,
        PTA_64BIT | PTA_MMX |  PTA_SSE  | PTA_SSE2 | PTA_SSE3
        | PTA_SSSE3 | PTA_SSE4A |PTA_ABM | PTA_CX16 | PTA_PRFCHW