From patchwork Fri Mar 14 13:49:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 85 X-Patchwork-Delegate: azanella@linux.vnet.ibm.com Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx23.g.dreamhost.com (caibbdcaabja.dreamhost.com [208.113.200.190]) by wilcox.dreamhost.com (Postfix) with ESMTP id 0CDCC3600AB for ; Fri, 14 Mar 2014 06:49:31 -0700 (PDT) Received: by homiemail-mx23.g.dreamhost.com (Postfix, from userid 14307373) id AB85E6365AD18; Fri, 14 Mar 2014 06:49:31 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx23.g.dreamhost.com Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by homiemail-mx23.g.dreamhost.com (Postfix) with ESMTPS id 906D26358DD52 for ; Fri, 14 Mar 2014 06:49:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=hhrqJU1e7XaIQGBBfZqN9kAsm5JblppprhnONMoCsN5 ABvdzVG8siwCvEJqNHzTOEYv9Pxhj82Y+R0xwevx11SGsFZ52RdXrc4WSjgQxYGm dIpsC2bGN8SXqXmEg7VuPX3CekE7Ffu3yaGVzyIW+0aUxjFb6SOjDIapI1gxoNks = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=L+djpHN+ccUBKo358rXH0vQCBbI=; b=OQf3p0OGhYtglqLBL qTHo3CJOAteN53lABg1EsBPJ5H9sLXJTcuofM14CE+QapW8VrWtERBj7msOkw0fi 8SqfjoEBIEqunBJ8CltBmOYQVm6A15TrDMDhNWU59xdtZjN69sm9oKCxUV3DCmMR 7dZ+dQe0qiA6Qtt5i8qNPET7PY= Received: (qmail 2851 invoked by alias); 14 Mar 2014 13:49:28 -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 2842 invoked by uid 89); 14 Mar 2014 13:49:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e24smtp04.br.ibm.com Message-ID: <532308DE.6050304@linux.vnet.ibm.com> Date: Fri, 14 Mar 2014 10:49:18 -0300 From: Adhemerval Zanella User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: libc-alpha@sourceware.org Subject: Re: [PATCH] PowerPC: remove wrong truncl implementation for PowerPC64 References: <52CC7A2A.3070006@linux.vnet.ibm.com> <52CC7A8F.6030707@linux.vnet.ibm.com> <531DC88B.5050809@linux.vnet.ibm.com> In-Reply-To: <531DC88B.5050809@linux.vnet.ibm.com> X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14031413-1820-0000-0000-0000001B2039 X-DH-Original-To: glibc@patchwork.siddhesh.in On 10-03-2014 11:13, Adhemerval Zanella wrote: > On 06-03-2014 11:18, Joseph S. Myers wrote: >> On Tue, 7 Jan 2014, Adhemerval Zanella wrote: >> >>> I forgot to add that I'll create a bugzilla for the truncl on PPC64 and >>> send a patch to add some test inputs for 2.20. >> What's the status on adding these test inputs? >> > Thanks for remind me, I'll find which was the original one that > triggered this issue. > Here they are and I checked on both PPC64 and X86_64. If no one opposes I will commit it along a set of bugfixes for round implementations for PPC64. --- 2014-03-14 Adhemerval Zanella * math/libm-test.inc (trunc_test_data): Add more tests related to BZ#16414. --- diff --git a/math/libm-test.inc b/math/libm-test.inc index 574654e..556d000 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -11283,6 +11283,13 @@ static const struct test_f_f_data trunc_test_data[] = TEST_f_f (trunc, -72057594037927936.75L, -72057594037927936.0L), TEST_f_f (trunc, -72057594037927937.5L, -72057594037927937.0L), + /* Check cases where first double is a exact integer higher than 2^52 and + the precision is determined by second long double for IBM long double. */ + TEST_f_f (trunc, 34503599627370498.515625L, 34503599627370498.0L), + TEST_f_f (trunc, 1192568192774434123539907640624.484375L, 1192568192774434123539907640624.0L), + TEST_f_f (trunc, -34503599627370498.515625L, -34503599627370498.0L), + TEST_f_f (trunc, -1192568192774434123539907640624.484375L, -1192568192774434123539907640624.0L), + TEST_f_f (trunc, 10141204801825835211973625643007.5L, 10141204801825835211973625643007.0L), TEST_f_f (trunc, 10141204801825835211973625643008.25L, 10141204801825835211973625643008.0L), TEST_f_f (trunc, 10141204801825835211973625643008.5L, 10141204801825835211973625643008.0L),