From patchwork Tue Aug 23 09:41:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniy Paltsev X-Patchwork-Id: 661800 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sJQSS35Q9z9sR9 for ; Tue, 23 Aug 2016 19:41:41 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id E468110117; Tue, 23 Aug 2016 11:41:34 +0200 (CEST) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from smtprelay.synopsys.com (us01smtprelay-2.synopsys.com [198.182.60.111]) by helium.openadk.org (Postfix) with ESMTPS id 6BE5E100DB; Tue, 23 Aug 2016 11:41:31 +0200 (CEST) Received: from us02secmta2.synopsys.com (us02secmta2.synopsys.com [10.12.235.98]) by smtprelay.synopsys.com (Postfix) with ESMTP id 8A15F10C10E8; Tue, 23 Aug 2016 02:41:28 -0700 (PDT) Received: from us02secmta2.internal.synopsys.com (us02secmta2.internal.synopsys.com [127.0.0.1]) by us02secmta2.internal.synopsys.com (Service) with ESMTP id 7D99C55F13; Tue, 23 Aug 2016 02:41:28 -0700 (PDT) Received: from mailhost.synopsys.com (unknown [10.13.184.66]) by us02secmta2.internal.synopsys.com (Service) with ESMTP id 5923555F02; Tue, 23 Aug 2016 02:41:28 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 48AD7993; Tue, 23 Aug 2016 02:41:28 -0700 (PDT) Received: from paltsev-8460-lab.internal.synopsys.com (paltsev-8460-lab.internal.synopsys.com [10.121.14.112]) by mailhost.synopsys.com (Postfix) with ESMTP id DB24297E; Tue, 23 Aug 2016 02:41:26 -0700 (PDT) From: Eugeniy Paltsev To: devel@uclibc-ng.org Date: Tue, 23 Aug 2016 12:41:18 +0300 Message-Id: <1471945278-18247-1-git-send-email-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.5.5 Cc: linux-snps-arc@lists.infradead.org, Eugeniy Paltsev Subject: [uclibc-ng-devel] [PATCH] ARC: Fix max ULP for cosine test X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" Max ULP for "cos (M_PI_6l * 2.0) == 0.5" in "test-double" sub-test is set to "0" for ARC. It causes "test-double" test failure. I realized that this sub-test on ARM gets completely same results. But it doesn't fails on ARM because max ULP is set to "1" for ARM. I am wondering, if it was done for any special reason? Otherwise, set max ULP for "cos (M_PI_6l * 2.0) == 0.5" test to "1" instead of "0" for ARC. Signed-off-by: Eugeniy Paltsev --- test/math/libm-test-ulps-arc | 1 + 1 file changed, 1 insertion(+) diff --git a/test/math/libm-test-ulps-arc b/test/math/libm-test-ulps-arc index 7139447..46b2ac5 100644 --- a/test/math/libm-test-ulps-arc +++ b/test/math/libm-test-ulps-arc @@ -2,6 +2,7 @@ # cos Test "cos (M_PI_6l * 2.0) == 0.5": +double: 1 idouble: 1 Test "cos (M_PI_6l * 4.0) == -0.5": double: 2