This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r179174 - in /trunk/gcc: ChangeLog config.in co...
- From: davem at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sun, 25 Sep 2011 21:28:52 -0000
- Subject: r179174 - in /trunk/gcc: ChangeLog config.in co...
Author: davem
Date: Sun Sep 25 21:28:51 2011
New Revision: 179174
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179174
Log:
Add support for floating-point fused multiply-add on Sparc.
* configure.ac: Add feature check to make sure the assembler
supports the FMAF, HPC, and VIS 3.0 instructions found on
Niagara-3 and later cpus.
* configure: Rebuild.
* config.in: Likewise.
* config/sparc/sparc.opt: New option '-mfmaf'.
* config/sparc/sparc.md: Add float fused multiply-add patterns.
* config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
(ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
* config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
* config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
by default for Niagara-3 and later. Turn it off if TARGET_FPU is
disabled.
(sparc_rtx_costs): Handle 'FMA'.
* doc/invoke.texi: Document -mfmaf.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config.in
trunk/gcc/config/sparc/sol2.h
trunk/gcc/config/sparc/sparc.c
trunk/gcc/config/sparc/sparc.h
trunk/gcc/config/sparc/sparc.md
trunk/gcc/config/sparc/sparc.opt
trunk/gcc/configure
trunk/gcc/configure.ac
trunk/gcc/doc/invoke.texi