From owner-freebsd-toolchain@FreeBSD.ORG Sat Sep 15 14:09:37 2012 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 420481065670; Sat, 15 Sep 2012 14:09:37 +0000 (UTC) (envelope-from rdivacky@vlakno.cz) Received: from vlakno.cz (vlakno.cz [46.28.110.116]) by mx1.freebsd.org (Postfix) with ESMTP id EFE458FC0A; Sat, 15 Sep 2012 14:09:36 +0000 (UTC) Received: by vlakno.cz (Postfix, from userid 1002) id 6A7017F3847; Sat, 15 Sep 2012 16:09:33 +0200 (CEST) Date: Sat, 15 Sep 2012 16:09:33 +0200 From: Roman Divacky To: Tijl Coosemans Message-ID: <20120915140933.GA17801@freebsd.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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50548736.9030203@coosemans.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Ian Lepore , current@freebsd.org, Dimitry Andric , toolchain@freebsd.org, Steve Kargl Subject: Re: Clang as default compiler November 4th X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Sep 2012 14:09:37 -0000 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 > #include > #include > > 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. >