[PATCH][ARM] AArch32 vmaxnm, vminnm support

Kyrylo Tkachov kyrylo.tkachov@arm.com
Mon Nov 26 14:40:00 GMT 2012


Hi all,
This patch adds support for the AArch32 vmaxnm and vminnm VFP instructions
in that can be used to implement the smax[sf,df]3 and smin[sf,df]3 RTL
patterns.
The patterns are only used by gcc when unsafe math optimisations are turned
on.
Two new values for the type attribute are introduced: f_minmaxs and
f_minmaxd.

New compilation tests are added. They pass and no regressions on
arm-none-eabi.

Ok for trunk?

Thanks,
Kyrill

gcc/ChangeLog

2012-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

        * config/arm/arm.md (f_minmaxs, f_minmaxd): New types.
        * config/arm/vfp.md (smax<mode>3): New pattern.
         (smin<mode>3): Likewise.


gcc/testsuite/ChangeLog

2012-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

        * gcc.target/arm/vmaxnmdf.c: New test.
        * gcc.target/arm/vmaxnmsf.c: Likewise.
        * gcc.target/arm/vminnmsf.c: Likewise.
        * gcc.target/arm/vminnmdf.c: Likewise.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vmaxminnm.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20121126/3ea2ffea/attachment.txt>


More information about the Gcc-patches mailing list