From patchwork Tue Sep 15 15:34:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 517962 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 C88E51400CB for ; Wed, 16 Sep 2015 01:34:21 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=CQM2cmJz; 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:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=x9VzCXSOfHYLZUVLoA0rz99Z+VKMi 2A8GPQc+v+uYiHbXLxqtNEF2EQfCej/Dih/EMPYziUnEMCAWNtE4DRnxc/aM4Dyf 87KZGFC4gjhG4PF8PepYZP38W3JhI080AQGR8cTxquYLjGFhFmaMhihu3hog6Dq4 oSO4+RmDB7tEIw= 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:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=ccQN1SAjK1bK5PZtP3CNLUBBHb8=; b=CQM 2cmJzz+uM5JyehiEnj7YM+RzcOASyHkfEVuvRdR8IvhhpAYLeRemYxCEenBHEV2N w0NNmpkIOx8hrnO5990SJ6aKQ0gDpO4fBqfHZzt5tpWiOxxshacmHdp2VuEn0ipV qER2hqzDm96JC0yJeALQ457jlnTJVnWp4zSgQvcc= Received: (qmail 7723 invoked by alias); 15 Sep 2015 15:34:15 -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 7712 invoked by uid 89); 15 Sep 2015 15:34:15 -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, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Tue, 15 Sep 2015 15:34:05 +0000 From: Joseph Myers To: , Subject: Use soft-fp fma for MicroBlaze (bug 13304) Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Systems without floating-point exceptions and rounding modes should use the soft-fp versions of fmaf and fma, not the sysdeps/ieee754 versions that rely on setting rounding to zero and testing for the "inexact" exception; this has been noted on for some time. This patch makes MicroBlaze use the soft-fp files; sfp-machine.h is made to include the nios2 version of sfp-machine.h which seems sufficiently generic for 32-bit systems. Untested. 2015-09-15 Joseph Myers [BZ #13304] * sysdeps/microblaze/s_fma.c: New file. * sysdeps/microblaze/s_fmaf.c: Likewise. * sysdeps/microblaze/sfp-machine.h: Likewise. diff --git a/sysdeps/microblaze/s_fma.c b/sysdeps/microblaze/s_fma.c new file mode 100644 index 0000000..d9613fa --- /dev/null +++ b/sysdeps/microblaze/s_fma.c @@ -0,0 +1 @@ +#include diff --git a/sysdeps/microblaze/s_fmaf.c b/sysdeps/microblaze/s_fmaf.c new file mode 100644 index 0000000..aa5c9b2 --- /dev/null +++ b/sysdeps/microblaze/s_fmaf.c @@ -0,0 +1 @@ +#include diff --git a/sysdeps/microblaze/sfp-machine.h b/sysdeps/microblaze/sfp-machine.h new file mode 100644 index 0000000..e4ad79e --- /dev/null +++ b/sysdeps/microblaze/sfp-machine.h @@ -0,0 +1 @@ +#include