re PR target/54680 ([SH] Unnecessary int-float-int conversion of fsca fixed point...
authorOleg Endo <olegendo@gcc.gnu.org>
Fri, 12 Oct 2012 23:19:27 +0000 (23:19 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Fri, 12 Oct 2012 23:19:27 +0000 (23:19 +0000)
commitdb292b0ecdf2cf9b65e130a2726447588531bb50
tree588096527984a2541e06ca104cf1d8b8068f2b5d
parent535269f4f984e10f912283b2817ec86f0004e442
re PR target/54680 ([SH] Unnecessary int-float-int conversion of fsca fixed point input)

PR target/54680
* config/sh/sh.c (sh_fsca_sf2int, sh_fsca_int2sf): Fix swapped
comments.
* config/sh/predicates.md (fpul_operand): Add comment.
(fpul_fsca_operand, fsca_scale_factor): New predicates.
* config/sh/sh.md (fsca): Move below sincossf3 expander.  Convert to
insn_and_split.  Use fpul_fsca_operand and fsca_scale_factor predicates.
Simplify fpul operand in splitter.

PR target/54680
* gcc.target/sh/pr54680.c: New.

From-SVN: r192416
gcc/ChangeLog
gcc/config/sh/predicates.md
gcc/config/sh/sh.c
gcc/config/sh/sh.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/pr54680.c [new file with mode: 0644]