From patchwork Mon Apr 21 19:08:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Fong X-Patchwork-Id: 340903 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id AF2A91400BE for ; Tue, 22 Apr 2014 11:44:12 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 864738B641; Mon, 21 Apr 2014 19:08:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yX0_1o8SJzSD; Mon, 21 Apr 2014 19:08:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id D771D8B62D; Mon, 21 Apr 2014 19:08:25 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 674E21BF968 for ; Mon, 21 Apr 2014 19:08:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 62DD08C3AC for ; Mon, 21 Apr 2014 19:08:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jbEjOP4F8E5P for ; Mon, 21 Apr 2014 19:08:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f173.google.com (mail-pd0-f173.google.com [209.85.192.173]) by whitealder.osuosl.org (Postfix) with ESMTPS id DE5178C38E for ; Mon, 21 Apr 2014 19:08:23 +0000 (UTC) Received: by mail-pd0-f173.google.com with SMTP id z10so3970079pdj.4 for ; Mon, 21 Apr 2014 12:08:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Uq+FZ7yuCuyb7Qc4CqgoYbmwxfufuLFgBJKnR6v1XGQ=; b=U8vJOACRi/hjT1t+Z1AZMJXBpbIA6NBl9yUuL/WwA5mG8MVa5PS/4flR1hj+rk5S0B h1B1F2x1kZnHlOw7veAEJEwWGJEVYXQ5nwrNzmgtJydiHBy+gsRcLzeavijBjOUwei+/ /cf75EUd5Vlybnyae2Wm2l0sfW5fytYEf6Y5vbYSX6B3waGmu3eXHmmiZeVdErWnsXdv G+TkxbDIUSW3TtQ/Cn/ZjO2yhqxFsNFURa3+N+VMRD+RXoNJmvU8QRmQCOh0emb4lYIO kTYtniUMzl3fhDdciQGQ+cO7usYGSuQM1v3K3X7fIp6Lw2v4vd0zQB4o+Acdag69SUFu QhqA== X-Received: by 10.66.254.234 with SMTP id al10mr4847635pad.137.1398107303617; Mon, 21 Apr 2014 12:08:23 -0700 (PDT) Received: from gregory-irv-00.broadcom.com (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by mx.google.com with ESMTPSA id yq4sm146575877pab.34.2014.04.21.12.08.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 12:08:22 -0700 (PDT) From: Gregory Fong To: uclibc@uclibc.org Subject: [PATCH] test/math: Adjust arm tests for older ULPs format Date: Mon, 21 Apr 2014 12:08:03 -0700 Message-Id: <1398107283-25586-1-git-send-email-gregory.0xf0@gmail.com> X-Mailer: git-send-email 1.8.3.2 X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: uclibc-bounces@uclibc.org The ULPs format in glibc has changed slightly and now deviates from that in uClibc, so when using the files directly from glibc, for certain types of tests the ULPs values were incorrectly defaulting to 0 rather than using the values provided. This caused some tests to fail despite the max ULPs being correctly marked. Regenerated and updated part of the ULPs file to fix this issue. This also added values for exp and log. Signed-off-by: Gregory Fong --- test/math/libm-test-ulps-arm | 53 ++++++++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/test/math/libm-test-ulps-arm b/test/math/libm-test-ulps-arm index 7a421bf..d2d4e05 100644 --- a/test/math/libm-test-ulps-arm +++ b/test/math/libm-test-ulps-arm @@ -3135,10 +3135,11 @@ ifloat: 1 Test "cos (0x1p+127)": float: 1 ifloat: 1 -Test "cos (M_PI_6l * 2.0)": +Test "cos (M_PI_6l * 2.0) == 0.5": double: 1 idouble: 1 -Test "cos (M_PI_6l * 4.0)": +ifloat: 1 +Test "cos (M_PI_6l * 4.0) == -0.5": double: 2 float: 1 idouble: 2 @@ -3478,7 +3479,10 @@ idouble: 2 ifloat: 1 # erf -Test "erf (1.25)": +Test "erf (0.75) == 0.711155633653515131598937834591410777": +double: 1 +idouble: 1 +Test "erf (1.25) == 0.922900128256458230136523481197281140": double: 1 idouble: 1 @@ -3492,7 +3496,12 @@ ifloat: 1 Test "erfc (2.0)": double: 1 idouble: 1 -Test "erfc (4.125)": +Test "erfc (4.125) == 0.542340079956506600531223408575531062e-8": +double: 1 +idouble: 1 + +# exp +Test "exp (1) == e": double: 1 idouble: 1 @@ -3535,7 +3544,7 @@ float: 1 ifloat: 1 # expm1 -Test "expm1 (0.75)": +Test "expm1 (0.75) == 1.11700001661267466854536981983709561": double: 1 idouble: 1 Test "expm1 (1)": @@ -3558,28 +3567,28 @@ idouble: 1 ifloat: 2 # hypot -Test "hypot (-0.7, -12.4)": +Test "hypot (-0.7, -12.4) == 12.419742348374220601176836866763271": float: 1 ifloat: 1 -Test "hypot (-0.7, 12.4)": +Test "hypot (-0.7, 12.4) == 12.419742348374220601176836866763271": float: 1 ifloat: 1 -Test "hypot (-12.4, -0.7)": +Test "hypot (-12.4, -0.7) == 12.419742348374220601176836866763271": float: 1 ifloat: 1 -Test "hypot (-12.4, 0.7)": +Test "hypot (-12.4, 0.7) == 12.419742348374220601176836866763271": float: 1 ifloat: 1 -Test "hypot (0.7, -12.4)": +Test "hypot (0.7, -12.4) == 12.419742348374220601176836866763271": float: 1 ifloat: 1 -Test "hypot (0.7, 12.4)": +Test "hypot (0.7, 12.4) == 12.419742348374220601176836866763271": float: 1 ifloat: 1 -Test "hypot (12.4, -0.7)": +Test "hypot (12.4, -0.7) == 12.419742348374220601176836866763271": float: 1 ifloat: 1 -Test "hypot (12.4, 0.7)": +Test "hypot (12.4, 0.7) == 12.419742348374220601176836866763271": float: 1 ifloat: 1 @@ -3744,24 +3753,22 @@ idouble: 1 ifloat: 2 # lgamma -Test "lgamma (0.7)": +Test "lgamma (0.7) == 0.260867246531666514385732417016759578": double: 1 float: 1 idouble: 1 ifloat: 1 -Test "lgamma (1.2)": +Test "lgamma (1.2) == -0.853740900033158497197028392998854470e-1": double: 1 float: 2 idouble: 1 ifloat: 2 # log10 -Test "log10 (0.75)": +Test "log10 (0.75) == -0.124938736608299953132449886193870744": double: 1 -float: 2 idouble: 1 -ifloat: 2 -Test "log10 (e)": +Test "log10 (e) == log10(e)": float: 1 ifloat: 1 @@ -4807,6 +4814,10 @@ float: 1 idouble: 1 ifloat: 1 +Function: "exp": +double: 1 +idouble: 1 + Function: "exp10": double: 1 idouble: 1 @@ -4863,6 +4874,10 @@ float: 2 idouble: 1 ifloat: 2 +Function: "log": +float: 1 +ifloat: 1 + Function: "log10": double: 1 float: 2