diff mbox

[i386] Enable FMA4 for AMD bdver3

Message ID EB4625145972F94C9680D8CADD6516155C2362BF@SATLEXDAG02.amd.com
State New
Headers show

Commit Message

Gopalasubramanian, Ganesh Oct. 16, 2013, 6:28 a.m. UTC
Hi 

The below patch enables FMA4 for AMD bdver3 architectures.

"make -k check" passes.

Is it OK for upstream?

Regards
Ganesh

Comments

Uros Bizjak Oct. 16, 2013, 7 a.m. UTC | #1
On Wed, Oct 16, 2013 at 8:28 AM, Gopalasubramanian, Ganesh
<Ganesh.Gopalasubramanian@amd.com> wrote:

> The below patch enables FMA4 for AMD bdver3 architectures.
>
> "make -k check" passes.
>
> +2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
> +
> +       * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
> +       for AMD bdver3.
> +

OK for mainline and 4.8 branch (for 4.8.2 if approved by Jakub,
otherwise please wait for branch to open).

Thanks,
Uros.
Jakub Jelinek Oct. 16, 2013, 7:11 a.m. UTC | #2
On Wed, Oct 16, 2013 at 09:00:58AM +0200, Uros Bizjak wrote:
> On Wed, Oct 16, 2013 at 8:28 AM, Gopalasubramanian, Ganesh
> <Ganesh.Gopalasubramanian@amd.com> wrote:
> 
> > The below patch enables FMA4 for AMD bdver3 architectures.
> >
> > "make -k check" passes.
> >
> > +2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
> > +
> > +       * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
> > +       for AMD bdver3.
> > +
> 
> OK for mainline and 4.8 branch (for 4.8.2 if approved by Jakub,
> otherwise please wait for branch to open).

4.8.2 is already rolling, so too late for that.

	Jakub
Gopalasubramanian, Ganesh Oct. 16, 2013, 10:01 a.m. UTC | #3
> 4.8.2 is already rolling, so too late for that.

Is 4.8 branch (gcc/branches/gcc-4_8-branch) open?
If yes, shall I commit these changes?

Regards
Ganesh

-----Original Message-----
From: Jakub Jelinek [mailto:jakub@redhat.com] 
Sent: Wednesday, October 16, 2013 12:41 PM
To: Uros Bizjak
Cc: Gopalasubramanian, Ganesh; gcc-patches@gcc.gnu.org
Subject: Re: [PATCH,i386] Enable FMA4 for AMD bdver3

On Wed, Oct 16, 2013 at 09:00:58AM +0200, Uros Bizjak wrote:
> On Wed, Oct 16, 2013 at 8:28 AM, Gopalasubramanian, Ganesh 
> <Ganesh.Gopalasubramanian@amd.com> wrote:
> 
> > The below patch enables FMA4 for AMD bdver3 architectures.
> >
> > "make -k check" passes.
> >
> > +2013-10-16 Ganesh Gopalasubramanian  
> > +<Ganesh.Gopalasubramanian@amd.com>
> > +
> > +       * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
> > +       for AMD bdver3.
> > +
> 
> OK for mainline and 4.8 branch (for 4.8.2 if approved by Jakub, 
> otherwise please wait for branch to open).

4.8.2 is already rolling, so too late for that.

	Jakub
diff mbox

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fb5b267..cbb5311 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@ 
+2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
+
+       * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
+       for AMD bdver3.
+
 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>

        * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index b5796db..c24ce36 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -3104,7 +3104,7 @@  ix86_option_override_internal (bool main_args_p,
       {"bdver3", PROCESSOR_BDVER3, CPU_BDVER3,
        PTA_64BIT | PTA_MMX | PTA_SSE | PTA_SSE2 | PTA_SSE3
        | PTA_SSE4A | PTA_CX16 | PTA_ABM | PTA_SSSE3 | PTA_SSE4_1
-       | PTA_SSE4_2 | PTA_AES | PTA_PCLMUL | PTA_AVX
+       | PTA_SSE4_2 | PTA_AES | PTA_PCLMUL | PTA_AVX | PTA_FMA4
        | PTA_XOP | PTA_LWP | PTA_BMI | PTA_TBM | PTA_F16C
        | PTA_FMA | PTA_PRFCHW | PTA_FXSR | PTA_XSAVE
        | PTA_XSAVEOPT | PTA_FSGSBASE},