This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/54680] [SH] Unnecessary int-float-int conversion of fsca fixed point input


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]