[Bug target/53512] SH Target: Allow fsca and fsrra for non-SH4A

olegendo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jun 3 11:27:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53512

--- Comment #2 from Oleg Endo <olegendo at gcc dot gnu.org> 2012-06-03 11:26:58 UTC ---
Author: olegendo
Date: Sun Jun  3 11:26:54 2012
New Revision: 188149

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188149
Log:
    PR target/53512
    * sh.opt (mfsca, mfsrra): New options.
    * sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA    condition.
    (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
    (sinssf2, cossf2): Fold expanders to ...
    (sincossf3): ... this new expander.  Use TARGET_FPU_ANY and
    TARGET_FSCA condition.
    * sh.c (sh_option_override): Handle TARGET_FSRRA and TARGET_FSCA.
    * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
    -mno-fsca, -mfsrra, -mno-fsrra.

    PR target/53512
    * gcc.target/sh/pr53512-1.c: New.
    * gcc.target/sh/pr53512-2.c: New.
    * gcc.target/sh/pr53512-3.c: New.
    * gcc.target/sh/pr53512-4.c: New.


Added:
    trunk/gcc/testsuite/gcc.target/sh/pr53512-1.c
    trunk/gcc/testsuite/gcc.target/sh/pr53512-2.c
    trunk/gcc/testsuite/gcc.target/sh/pr53512-3.c
    trunk/gcc/testsuite/gcc.target/sh/pr53512-4.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/sh/sh.c
    trunk/gcc/config/sh/sh.md
    trunk/gcc/config/sh/sh.opt
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list