From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6146 Path: news.gmane.org!not-for-mail From: Sergey Dmitrouk Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Make musl math depend less on libgcc builtins Date: Thu, 11 Sep 2014 16:22:53 +0300 Message-ID: <20140911132253.GA5487@zx-spectrum> References: <20140911073532.GA3179@zx-spectrum> <20140911094705.GF21835@port70.net> <20140911114207.GA5041@zx-spectrum> <20140911122651.GH21835@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: ger.gmane.org 1410441797 21937 80.91.229.3 (11 Sep 2014 13:23:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2014 13:23:17 +0000 (UTC) To: "musl@lists.openwall.com" Original-X-From: musl-return-6159-gllmg-musl=m.gmane.org@lists.openwall.com Thu Sep 11 15:23:11 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XS4L7-0003mr-1o for gllmg-musl@plane.gmane.org; Thu, 11 Sep 2014 15:23:09 +0200 Original-Received: (qmail 9884 invoked by uid 550); 11 Sep 2014 13:23:08 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 9876 invoked from network); 11 Sep 2014 13:23:08 -0000 Content-Disposition: inline In-Reply-To: <20140911122651.GH21835@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:6146 Archived-At: > now that you mention i got reports of spurious invalid > exceptions for nan inputs on arm, but i don't have hardfloat > arm toolchain > > if you have further info on this that would be helpful > > (from the arm docs it seems to me that vfp sqrt should work > according to ieee so either that is wrong or our fenv > exception test is not ok on arm) Note that I'm performing tests in QEMU. vsqrt.f64 instruction returns NAN for NAN input and doesn't raise any exceptions ($fpscr register is unchanged). However I get INVALID exception after printing result with musl implementation of printf(), glibc doesn't raise any exceptions in printf(), but I'm not sure whether it's important, probably not.