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/17390] missing floating point compare optimization



------- Comment #15 from uros at gcc dot gnu dot org  2007-08-23 14:23 -------
Subject: Bug 17390

Author: uros
Date: Thu Aug 23 14:23:40 2007
New Revision: 127742

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127742
Log:
        PR target/17390
        * config/i386/i386.c (ix86_expand_fp_compare): Expand fp comparison to
        fake fcomi i387 instruction for !TARGET_CMOVE.
        (ix86_expand_branch): Expand natural sequence with one jump for
        all targets, not only TARGET_CMOVE.
        * config/i386/i386.md (*cmpfp_0_cc): New define_insn_and_split
        pattern to implement fake fcomi sequence.  Split instruction after
        reload to correct compare sequences.
        (*cmpfp_xf_cc): Ditto.
        (*cmpfp_<mode>_cc): Ditto.
        (*cmpfp_u_cc): Ditto.
        (*cmpfp_<mode>_cc): Ditto.

testsuite/ChangeLog:

        PR target/17390
        * gcc.target/i386/pr17390.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/i386/pr17390.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/i386/i386.c
    trunk/gcc/config/i386/i386.md
    trunk/gcc/testsuite/ChangeLog


-- 


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


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