This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Simplify FP conversions


On Sun, Feb 09, 2003 at 11:41:36PM +0100, Jan Hubicka wrote:
> /* { 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
> main(short a)
> {
>   float b=a;
>   return b;
> }

I think it is a bad idea to call such function main.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]