This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/54680] [SH] Unnecessary int-float-int conversion of fsca fixed point input
- From: "olegendo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Oct 2012 23:19:32 +0000
- Subject: [Bug target/54680] [SH] Unnecessary int-float-int conversion of fsca fixed point input
- Auto-submitted: auto-generated
- References: <bug-54680-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54680
--- Comment #2 from Oleg Endo <olegendo at gcc dot gnu.org> 2012-10-12 23:19:32 UTC ---
Author: olegendo
Date: Fri Oct 12 23:19:27 2012
New Revision: 192416
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192416
Log:
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.
Added:
trunk/gcc/testsuite/gcc.target/sh/pr54680.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/sh/predicates.md
trunk/gcc/config/sh/sh.c
trunk/gcc/config/sh/sh.md
trunk/gcc/testsuite/ChangeLog