This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Math errors
- From: Szabolcs Nagy <Szabolcs dot Nagy at arm dot com>
- To: Alistair Francis <alistair23 at gmail dot com>, Joseph Myers <joseph at codesourcery dot com>
- Cc: nd <nd at arm dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 3 Jan 2020 09:30:04 +0000
- Subject: Re: Math errors
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9pqtG4ki3Xtth+v2YASbFyuCklzYNVs9QYBzsio3Fas=; b=Z7qP8fOIDpGEumGwAoVT1eClFqvTR2Cqdu6TM0GdaqPb6oB0dHeA1mK/rFFEZJRWniP36eboNjhx3sYGTo0iDBZ1rEq7rftVg8K7513hbp4I+rCg5Utcuw7L0fj6xaLFiO2t5Uw1ZBjXbg3GNj5JXFDFCPCJwY+JnHReTVh9Syc36fFUIrOaq2ASvRsZZHMNjCsm57AOiSgJYsT7wD5LDvKwTkkQaqpFTj4SyC8b5UZGuGADcqaVfLaP3BYkZWXvzXaexPFS8jZJaN7OW4FDaGQqXOaaTCz3Tk2U/q4QAvwZj6WWvDYV5Ci7HHqsj1AmMPm8cwO9x27zcIFrZn9ULg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aJnPmuiqFZEBF8KKgw9UD2CGQL99MBmbRMOkMf7I49UBaaNk/P841auUwU1cXAe+3A57NVmqE9V7QH7zzG+aTMeQVjv1nmEtcN4wYqQfxaN2MWdlBRPVs90wjBi7+/Fl+kCZ9L8lh/K2sK9BuPi1q881gIFRozQWnclOI+MndO83dDm84TeXh14Hlc9zlf43e/YquK9TnbPZtNFbpdqnTfcWjkWYlpAIms0e93bvh8f8BYrzsCq0/DMnu1NIS9xVZksDxw3TFAkW0NSa3TluGNT4Dpof8YKHGqInR5/HqmUA3HhnU8OFvhiJMVa+Mff65O2EFdMDFghF0ZX1TP3EmQ==
- Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs dot Nagy at arm dot com;
- References: <CAKmqyKNQXGVriszbWvfyAys-8aoe-ShWDqXr9H7fMs9M8Htm5A@mail.gmail.com> <alpine.DEB.2.21.1912302227040.17472@digraph.polyomino.org.uk> <alpine.DEB.2.21.1912302229041.17472@digraph.polyomino.org.uk> <CAKmqyKO6tkQjTkP85z3PoX13Y+Xgd1S6zZZo0HjZQsSMW=E=9A@mail.gmail.com>
On 03/01/2020 02:18, Alistair Francis wrote:
> On Mon, Dec 30, 2019 at 2:29 PM Joseph Myers <joseph@codesourcery.com> wrote:
>>
>> On Mon, 30 Dec 2019, Joseph Myers wrote:
>>
>>> On Mon, 30 Dec 2019, Alistair Francis wrote:
>>>
>>>> Hey,
>>>>
>>>> I'm running the `make check` tests on RV32 inside QEMU and about 800
>>>> math tests are failing with errors along these lines:
>>>
>>> You need to generate libm-test-ulps for RV32 ("make regen-ulps") (also
>>> remember to create a corresponding libm-test-ulps-name file for use in
>>> generating the table in the manual).
>>
>> I should add: first try renaming the RV64 libm-test-ulps to make it
>> generic for both RV32 and RV64. You should only need a separate file for
>> RV32 if there is a clear reason for different results between the two.
>
> Thanks Joseph,
>
> I moved the RV64 one to be generic and that seems to fix most of the
> math tests. I tried `make regen-ulps` after that, just to be sure, and
> it didn't generate a diff.
regen-ulps should create a math/NewUlps file.
(details are in math/README.libm-test)
>
> There are a handful of math tests that seem to fail, but if I manually
> run the test a few times I will eventually get a pass. Any hints on
> what to do there?
flaky math test is not normal, you need to investigate.
>
> Alistair
>
>>
>> --
>> Joseph S. Myers
>> joseph@codesourcery.com