From 637df4f4ba4066794c61f17133d820400fa34c8a Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 10 Feb 2003 13:12:56 +0100 Subject: [PATCH] * gcc.dg/i386-fpcvt-1.c: New test. From-SVN: r62627 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/i386-fpcvt-4.c | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/i386-fpcvt-4.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8b58ea627e2..d9082807b76 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +Mon Feb 10 11:41:20 CET 2003 Jan Hubicka + + * gcc.dg/i386-fpcvt-1.c: New test. + 2002-02-09 Richard Sandiford * gcc.c-torture/execute/20030209-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/i386-fpcvt-4.c b/gcc/testsuite/gcc.dg/i386-fpcvt-4.c new file mode 100644 index 00000000000..9b35c5acc6c --- /dev/null +++ b/gcc/testsuite/gcc.dg/i386-fpcvt-4.c @@ -0,0 +1,10 @@ +/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-O2 -march=k8 -mfpmath=sse" } */ +/* { dg-final { scan-assembler "cvtsi2sd" } } */ +/* Check that conversions will get folded. */ +double +t(short a) +{ + float b=a; + return b; +} -- 2.30.2