Patchwork enable fma4 for bdver2

login
register
mail settings
Submitter Quentin Neill
Date Nov. 8, 2011, 3:28 a.m.
Message ID <CAEhygDp6R8BoHROvUJoVn2Ln=3GhJQ10syHd_A-asMfcfWQYpA@mail.gmail.com>
Download mbox | patch
Permalink /patch/124256/
State New
Headers show

Comments

Quentin Neill - Nov. 8, 2011, 3:28 a.m.
Hi,

This patch turns on FMA4 for the AMD BDVER2 processor.

Okay for trunk if no regressions?
Richard Henderson - Nov. 8, 2011, 9:53 p.m.
On 11/07/2011 07:28 PM, Quentin Neill wrote:
> +       Add FMA4 to bdver2.
> +       * config/i386/i386.c (ix86_option_override_internal): Add FMA4
> to bdver2.

Ok.


r~
Quentin Neill - Feb. 6, 2012, 3:32 p.m.
On Tue, Nov 8, 2011 at 3:53 PM, Richard Henderson <rth@redhat.com> wrote:
>
> On 11/07/2011 07:28 PM, Quentin Neill wrote:
> > +       Add FMA4 to bdver2.
> > +       * config/i386/i386.c (ix86_option_override_internal): Add FMA4
> > to bdver2.
>
> Ok.
>
>
> r~

This patch was okay'd in stage 3 but was never committed.

Okay to commit to trunk today?

[reposting to gcc-patches due to invalid mime-type, sorry for the duplicate]
Quentin Neill - Feb. 6, 2012, 7:56 p.m.
On Mon, Feb 6, 2012 at 9:32 AM, Quentin Neill
<quentin.neill.gnu@gmail.com> wrote:
> On Tue, Nov 8, 2011 at 3:53 PM, Richard Henderson <rth@redhat.com> wrote:
>>
>> On 11/07/2011 07:28 PM, Quentin Neill wrote:
>> > +       Add FMA4 to bdver2.
>> > +       * config/i386/i386.c (ix86_option_override_internal): Add FMA4
>> > to bdver2.
>>
>> Ok.
>>
>>
>> r~
>
> This patch was okay'd in stage 3 but was never committed.
>
> Okay to commit to trunk today?

Actually, it will need to wait for 4.8, nevermind.

Patch

Index: ChangeLog
===================================================================
--- ChangeLog   (revision 181147)
+++ ChangeLog   (working copy)
@@ -1,3 +1,8 @@ 
+2011-11-07  Quentin Neill  <quentin.neill@amd.com>
+
+       Add FMA4 to bdver2.
+       * config/i386/i386.c (ix86_option_override_internal): Add FMA4
to bdver2.
+
 2011-11-07  Richard Henderson  <rth@redhat.com>

        * optabs.h (OTI_sync_compare_and_swap, OTI_sync_lock_test_and_set,
Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c  (revision 181147)
+++ config/i386/i386.c  (working copy)
@@ -3044,7 +3044,7 @@  ix86_option_override_internal (bool main
       {"bdver2", PROCESSOR_BDVER2, CPU_BDVER2,
        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},
       {"btver1", PROCESSOR_BTVER1, CPU_GENERIC64,