re PR target/53512 (SH Target: Allow fsca and fsrra for non-SH4A)
authorOleg Endo <olegendo@gcc.gnu.org>
Sun, 3 Jun 2012 11:26:54 +0000 (11:26 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sun, 3 Jun 2012 11:26:54 +0000 (11:26 +0000)
commitaba92f5fe08ffe72abe562a42381ab9f089177fa
tree0fc02d7c6ff4ae14954689e5015e70a55244738c
parentd58e7d69246d89b43f2f04c09da812c37087577f
re PR target/53512 (SH Target: Allow fsca and fsrra for non-SH4A)

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.

From-SVN: r188149
gcc/ChangeLog
gcc/config/sh/sh.c
gcc/config/sh/sh.md
gcc/config/sh/sh.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/pr53512-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/sh/pr53512-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/sh/pr53512-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/sh/pr53512-4.c [new file with mode: 0644]