Date: Sat, 15 Sep 2012 16:09:33 +0200 From: Roman Divacky <rdivacky@freebsd.org> To: Tijl Coosemans <tijl@coosemans.org> Cc: Ian Lepore <freebsd@damnhippie.dyndns.org>, current@freebsd.org, Dimitry Andric <dim@freebsd.org>, toolchain@freebsd.org, Steve Kargl <sgk@troutmask.apl.washington.edu> Subject: Re: Clang as default compiler November 4th Message-ID: <20120915140933.GA17801@freebsd.org> In-Reply-To: <50548736.9030203@coosemans.org> References: <504F5101.8090906@FreeBSD.org> <505101C3.70203@freebsd.org> <20120913020833.GA8255@troutmask.apl.washington.edu> <1347550332.1110.108.camel@revolution.hippie.lan> <20120913161024.GA13846@troutmask.apl.washington.edu> <20120914202319.GB5244@lor.one-eyed-alien.net> <20120915001808.GA70215@troutmask.apl.washington.edu> <20120915010600.GA70426@troutmask.apl.washington.edu> <20120915124809.GA10939@freebsd.org> <50548736.9030203@coosemans.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Is this correct? lev ~$ ./cos 1.23456789e20 6.031937e-01 -9.629173e-02 2.814722e-01 If so I believe the issue is fixed. On Sat, Sep 15, 2012 at 03:48:38PM +0200, Tijl Coosemans wrote: > On 15-09-2012 14:48, Roman Divacky wrote: > > Fwiw, this seems to have been fixed as of a few minutes ago. > > > > http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120910/150720.html > > > > Steve, can you please test llvm/clang from (their) svn and report > > back? We can import a newer snapshot if all is ok. > > Here's a small test program. You're probably better equipped to test > clang svn. > > -------- > #include <math.h> > #include <stdio.h> > #include <stdlib.h> > > int > main( int argc, char **argv ) { > double d = strtod( argv[ 1 ], NULL ); > > printf( "%e\n", ( double ) cos( d )); > printf( "%e\n", ( double ) cosf( d )); > printf( "%e\n", ( double ) cosl( d )); > return( 0 ); > } > -------- > > This is the current output of clang: > > % clang -o cos cos.c -lm > % ./cos 1.23456789e20 > 6.031937e-01 > 1.234568e+20 > 2.814722e-01 > > The second number (cosf) is wrong. It should be a value between -1 and 1. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120915140933.GA17801>