i386.c (x86_ext_80387_constants): Use 80387 insns to load mathematical constants on K6, Athlon, Pentium 4 and PPro. 2003-02-15 Roger Sayle <roger@eyesopen.com> * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns to load mathematical constants on K6, Athlon, Pentium 4 and PPro. (ext_80387_constants_table): Global table of 80387 special constants guarded by ext_80387_constants_init flag when not initialized. (init_ext_80387_constants): New function to initialize this table. (standard_80387_constant_p): Extend to recognize extra 80387 constants, in XFmode, on processors where this is a win. (standard_80387_constant_opcode): New function to return the opcode associated with standard_80387_constant_p. (standard_80387_constant_rtx): New function to return the XFmode CONST_DOUBLE associated with standard_80387_constant_p. (ix86_rtx_costs): Give the new constants the same cost as 1.0. * config/i386/i386-protos.h (standard_80387_constant_opcode): Prototype here. (standard_80387_constant_rtx): Likewise. * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer, *movtf_integer): Simplify using new standard_80387_constant_opcode. * gcc.dg/i386-387-3.c: New test case. From-SVN: r62958
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... | |
libf2c | Loading commit data... | |
libffi | Loading commit data... | |
libiberty | Loading commit data... | |
libjava | Loading commit data... | |
libobjc | Loading commit data... | |
libstdc++-v3 | Loading commit data... | |
maintainer-scripts | 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.def | Loading commit data... | |
Makefile.in | Loading commit data... | |
Makefile.tpl | 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... |