convert.c (strip_float_extensions): Look for narrowest type handling FP constants.
commit77f9af81d26ddde9326b63bfc2eefa557aba064e
authorJan Hubicka <jh@suse.cz>
Tue, 14 Jan 2003 13:03:47 +0000 (14 14:03 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 14 Jan 2003 13:03:47 +0000 (14 13:03 +0000)
treec3eb54b4346a9236a335d6192b4c3fb9db3e36ae
parentab5496c4035e9c83e00e4ee1c87b410e6ca2c4e5
convert.c (strip_float_extensions): Look for narrowest type handling FP constants.

* convert.c (strip_float_extensions):  Look for narrowest type handling
FP constants.

* fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
float1 CMP float2.
* convert.c (strip_float_extensions): Make global.
* tree.h (strip_float_extensions): Declare.

* gcc.dg/i386-fpcvt-1.c: New test.
* gcc.dg/i386-fpcvt-2.c: New test.

From-SVN: r61279
gcc/ChangeLog
gcc/Makefile.in
gcc/convert.c
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/i386-fpcvt-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/i386-fpcvt-2.c [new file with mode: 0644]
gcc/tree.h