From patchwork Tue Mar 10 14:04:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 448530 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 ozlabs.org (Postfix) with ESMTPS id 632F314018C for ; Wed, 11 Mar 2015 01:05:05 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=sourceware.org header.i=@sourceware.org header.b=UNi19iVH; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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 :content-type:content-transfer-encoding; q=dns; s=default; b=gdz +JbzC9CD5KKKcv42QG4E+3vwqntuysu0Hs85xO1FWdlQSeGXtGm9slSHOCO4vzau ycJFjJZ9CNpEnMJGS739bJPzBp2Hg+mpdRpWRyyuCg2178iQZNby1ePxGYbB2i+v JsnEesnnBPioenMe+y9zzKj39r/GBUo90dl4/PD0= 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 :content-type:content-transfer-encoding; s=default; bh=/SGaSRF44 57XOm967LkpOQnSH6I=; b=UNi19iVH1mkmUL/fJ6FRZn7t8Z3w5hbsfFM8+owsA BqFnn/QBx/R7QtddDfRv4z64rrHhO9J7LQx4ZcKUqjmZYOwqMO1jqtCvO+Mo/B0Z gpBryyoN71DISbqC4C5WluWQa7XbTMheUZ+8lvyuzXUo+ezTmL6LYt/eOm0uR/rl 9M= Received: (qmail 23845 invoked by alias); 10 Mar 2015 14:04:58 -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 22870 invoked by uid 89); 10 Mar 2015 14:04:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 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: <54FEF9F7.5060809@linux.vnet.ibm.com> Date: Tue, 10 Mar 2015 11:04:39 -0300 From: Adhemerval Zanella User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "GNU C. Library" Subject: [COMMITTED] [PATCH] powerpc: Fix incorrect results for pow when using FMA X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15031014-0029-0000-0000-000002F8EF4A This patch adds no FMA generation for e_pow to avoid precision issues for powerpc. This fixes BZ#18104. Tested on powerpc64, powerpc32, x86_64, and i686. No changes required in ULP test files. --- 2015-03-10 Adhemerval Zanella * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add $(config-cflags-nofma). --- diff --git a/NEWS b/NEWS index 5e5ddcd..0e224ac 100644 --- a/NEWS +++ b/NEWS @@ -13,7 +13,7 @@ Version 2.22 16560, 16783, 17269, 17523, 17569, 17588, 17631, 17711, 17776, 17779, 17792, 17836, 17912, 17916, 17932, 17944, 17949, 17964, 17965, 17967, 17969, 17978, 17987, 17991, 17996, 17998, 17999, 18019, 18020, 18029, - 18030, 18032, 18036, 18038, 18039, 18042, 18043, 18046, 18047. + 18030, 18032, 18036, 18038, 18039, 18042, 18043, 18046, 18047, 18104. * Character encoding and ctype tables were updated to Unicode 7.0.0, using new generator scripts contributed by Pravin Satpute and Mike FABIAN (Red diff --git a/sysdeps/ieee754/dbl-64/Makefile b/sysdeps/ieee754/dbl-64/Makefile index 35f545f..5557c75 100644 --- a/sysdeps/ieee754/dbl-64/Makefile +++ b/sysdeps/ieee754/dbl-64/Makefile @@ -2,4 +2,5 @@ ifeq ($(subdir),math) # branred depends on precise IEEE double rounding CFLAGS-branred.c = $(config-cflags-nofma) CFLAGS-e_sqrt.c = $(config-cflags-nofma) +CFLAGS-e_pow.c = $(config-cflags-nofma) endif