[SPARC] Add -mfsmuld option

Programming / Compilers / GCC - sh [138bc75d-0d04-0410-961f-82ee72b054a4] - 26 July 2017 08:39 EDT

Add the -mfsmuld option to control the generation of the FsMULd instruction. In general, this instruction is available in architecture
version V8 and V9 CPUs with FPU. Some CPUs of this category do not support this instruction properly, e.g. AT697E, AT697F and UT699. Some CPUs of this category do not implement it in hardware, e.g. LEON3/4 with GRFPU-lite.

gcc/
- config/sparc/sparc.c (dump_target_flag_bits): Dump MASK_FSMULD. (sparc_option_override): Honour MASK_FSMULD.
- config/sparc/sparc.h (MASK_FEATURES): Add MASK_FSMULD.
- config/sparc/sparc.md (muldf3_extend): Use TARGET_FSMULD.
- config/sparc/sparc.opt (mfsmuld): New option.
- doc/invoke.texi (mfsmuld): Document option.

bffd808 [SPARC] Add -mfsmuld option
gcc/ChangeLog | 9 +++++++++
gcc/config/sparc/sparc.c | 32 ++++++++++++++++++++++----------
gcc/config/sparc/sparc.h | 3 ++-
gcc/config/sparc/sparc.md | 2 +-
gcc/config/sparc/sparc.opt | 4 ++++
gcc/doc/invoke.texi | 11 ++++++++++-
6 files changed, 48 insertions(+), 13 deletions(-)

Upstream: gcc.gnu.org


  • Share