summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/i386-fpcvt-2.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-14 13:03:47 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-14 13:03:47 +0000
commit8cce4b411c4918a7e75f06022353fafa5456a238 (patch)
treec3eb54b4346a9236a335d6192b4c3fb9db3e36ae /gcc/testsuite/gcc.dg/i386-fpcvt-2.c
parent12c2d9731e15f73431979fcf292e7d7652a49dc6 (diff)
downloadgcc-8cce4b411c4918a7e75f06022353fafa5456a238.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61279 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/i386-fpcvt-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/i386-fpcvt-2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/i386-fpcvt-2.c b/gcc/testsuite/gcc.dg/i386-fpcvt-2.c
new file mode 100644
index 00000000000..12d149b1399
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/i386-fpcvt-2.c
@@ -0,0 +1,8 @@
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
+/* { dg-options "-O2 -msse2 -march=athlon" } */
+/* { dg-final { scan-assembler-not "cvtss2sd" } } */
+float a,b;
+main()
+{
+ return a<0.0;
+}