* i386.c (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost, ix86_fp_comparison_sahf_cost, ix86_fp_comparison_cost): New functions. (ix86_expand_fp_compare): Use the costs to choose best bethod; add two new parameters SECOND_TEST and BYPASS_TEST; allow generating two-branch sequences; make static. (ix86_use_fcomi_compare): Do decision according to the costs. (split_fp_branch): New. * i386.md (compare-and-branch patterns): Use split_fp_branch. * i386-protos.h (ix86_expand_fp_compare): Remove (ix86_split_fp_branch): Declare. * i386.h (PREDICATE_CODES): Update codes from fcmov_comparison_operand and ix86_comparison_operator. * i386.c (ix86_prepare_fp_compare_args): Try to rearange the comparison to make it cheaper. * i386.c (put_condition_code): Output properly the unordered/ordered compares in fp case. (ix86_expand_fp_movcc): Use ix86_expand_compare infrastructure. * tm.texi (REVERSE_CONDITION): Document. * i386.c (ix86_fp_compare_mode): Simplify; return always CCFPmode in -ffast-math mode. * i386.h (REVERSE_CONDITION, REVERSIBLE_CC_MODE): New macro. From-SVN: r38979
Name |
Last commit
|
Last update |
---|---|---|
INSTALL | Loading commit data... | |
boehm-gc | Loading commit data... | |
config | Loading commit data... | |
contrib | Loading commit data... | |
fastjar | Loading commit data... | |
gcc | Loading commit data... | |
include | Loading commit data... | |
libchill | Loading commit data... | |
libf2c | Loading commit data... | |
libffi | Loading commit data... | |
libiberty | Loading commit data... | |
libio | Loading commit data... | |
libjava | Loading commit data... | |
libobjc | Loading commit data... | |
libstdc++ | Loading commit data... | |
libstdc++-v3 | Loading commit data... | |
zlib | Loading commit data... | |
.cvsignore | Loading commit data... | |
COPYING | Loading commit data... | |
COPYING.LIB | Loading commit data... | |
ChangeLog | Loading commit data... | |
MAINTAINERS | Loading commit data... | |
Makefile.in | Loading commit data... | |
README | Loading commit data... | |
config-ml.in | Loading commit data... | |
config.guess | Loading commit data... | |
config.if | Loading commit data... | |
config.sub | Loading commit data... | |
configure | Loading commit data... | |
configure.in | Loading commit data... | |
install-sh | Loading commit data... | |
libtool.m4 | Loading commit data... | |
ltcf-c.sh | Loading commit data... | |
ltcf-cxx.sh | Loading commit data... | |
ltcf-gcj.sh | Loading commit data... | |
ltconfig | Loading commit data... | |
ltmain.sh | Loading commit data... | |
missing | Loading commit data... | |
mkdep | Loading commit data... | |
mkinstalldirs | Loading commit data... | |
move-if-change | Loading commit data... | |
symlink-tree | Loading commit data... | |
ylwrap | Loading commit data... |