From patchwork Fri May 1 22:31:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 6526 Received: (qmail 36692 invoked by alias); 1 May 2015 22:32:02 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 36676 invoked by uid 89); 1 May 2015 22:32:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL, BAYES_50, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Fri, 1 May 2015 22:31:55 +0000 From: Joseph Myers To: Subject: Add another test of pow [committed] Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 This patch adds a randomly-generated test of pow that is observed to increase ulps on x86_64. Tested for x86_64 and x86 and ulps updated accordingly. Committed. (auto-libm-test-out diffs omitted below.) 2015-05-01 Joseph Myers * math/auto-libm-test-in: Add another test of pow. * math/auto-libm-test-out: Regenerated. * sysdeps/x86_64/fpu/libm-test-ulps: Update. diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in index caf3c93..788c30a 100644 --- a/math/auto-libm-test-in +++ b/math/auto-libm-test-in @@ -2200,6 +2200,7 @@ pow 2.0 -100000.0 pow 1.0625 1.125 pow 1.5 1.03125 pow 0x1.7d1a0a6f2p+681 1.5 +pow 0x1.ce78f2p+0 -0x2.7f1f78p+4 sin 0 sin -0 diff --git a/sysdeps/x86_64/fpu/libm-test-ulps b/sysdeps/x86_64/fpu/libm-test-ulps index 3b342d6..ab2b0b7 100644 --- a/sysdeps/x86_64/fpu/libm-test-ulps +++ b/sysdeps/x86_64/fpu/libm-test-ulps @@ -1816,8 +1816,8 @@ ildouble: 1 ldouble: 1 Function: "pow": -float: 1 -ifloat: 1 +float: 3 +ifloat: 3 ildouble: 1 ldouble: 1 @@ -1853,25 +1853,25 @@ ldouble: 2 Function: "pow_downward": double: 1 -float: 1 +float: 3 idouble: 1 -ifloat: 1 +ifloat: 3 ildouble: 4 ldouble: 4 Function: "pow_towardzero": double: 1 -float: 1 +float: 4 idouble: 1 -ifloat: 1 +ifloat: 4 ildouble: 1 ldouble: 1 Function: "pow_upward": double: 1 -float: 1 +float: 4 idouble: 1 -ifloat: 1 +ifloat: 4 ildouble: 2 ldouble: 2