This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH,i386] fma,fma4 and xop flags
Thank you Uros, Richard!
I will confirm the test results in couple off days.
Regards
Ganesh
-----Original Message-----
From: Uros Bizjak [mailto:ubizjak@gmail.com]
Sent: Saturday, August 11, 2012 3:54 AM
To: Richard Henderson
Cc: Gopalasubramanian, Ganesh; gcc-patches@gcc.gnu.org
Subject: Re: [PATCH,i386] fma,fma4 and xop flags
On Fri, Aug 10, 2012 at 10:02 PM, Richard Henderson <rth@redhat.com> wrote:
> On 2012-08-10 12:59, Uros Bizjak wrote:
>> Actually, this is the problem you are trying to solve. The fma4
>> patterns are defined before fma3, so gcc prefers these.
>
> The Real Problem is that they should not be separate patterns.
> They should be a single pattern that selects alternatives via the
> enabled isa.
2012-08-11 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (isa): Add fma and fma4.
(enabled): Handle fma and fma4.
* config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
(*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
(*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
(*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
(*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
(*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN.
I will wait a couple of days before backporting patches to 4.7, so please Ganesh, test mainline if everything is OK.
BTW: With this patch, we can enable PTA_FMA4 for bdver2 target.
Uros.
- References:
- [PATCH,i386] fma,fma4 and xop flags
- From: Ganesh.Gopalasubramanian
- Re: [PATCH,i386] fma,fma4 and xop flags
- RE: [PATCH,i386] fma,fma4 and xop flags
- From: Gopalasubramanian, Ganesh
- Re: [PATCH,i386] fma,fma4 and xop flags
- Re: [PATCH,i386] fma,fma4 and xop flags
- Re: [PATCH,i386] fma,fma4 and xop flags