From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16589 invoked by alias); 30 May 2012 21:41:13 -0000 Received: (qmail 16569 invoked by uid 22791); 30 May 2012 21:41:11 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 May 2012 21:40:58 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1SZqdV-0005Dh-3R from joseph_myers@mentor.com for libc-ports@sourceware.org; Wed, 30 May 2012 14:40:57 -0700 Received: from digraph.polyomino.org.uk ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 30 May 2012 22:40:55 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.74) (envelope-from ) id 1SZqdS-0003h0-BZ for libc-ports@sourceware.org; Wed, 30 May 2012 21:40:54 +0000 Date: Wed, 30 May 2012 21:41:00 -0000 From: "Joseph S. Myers" To: libc-ports@sourceware.org Subject: Ports updates for soft-fp changes Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00196.txt.bz2 I've applied this patch to update MIPS and powerpc-nofpu for the addition of FP_TRAPPING_EXCEPTIONS to soft-fp, and to remove FP_EX_DENORM for powerpc-nofpu as discussed on libc-alpha. (The MIPS change doesn't matter for much; the only thing soft-fp gets used for at present is sqrtl, which can't produce underflow.) alpha should probably also get a definition of FP_TRAPPING_EXCEPTIONS (assuming it supports enabling or disabling traps on particular exceptions, so that the logic about signaling underflow is meaningful there). diff --git a/ChangeLog.mips b/ChangeLog.mips index 7d07aa6..a63f051 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,5 +1,8 @@ 2012-05-30 Joseph Myers + * sysdeps/mips/mips64/soft-fp/sfp-machine.h + (FP_TRAPPING_EXCEPTIONS): Define. + * sysdeps/unix/sysv/linux/mips/Makefile (syscall-list-variants): Rename to abi-variants. (syscall-list-includes): Rename to abi-includes. diff --git a/ChangeLog.powerpc b/ChangeLog.powerpc index 5e32abd..1f7ac97 100644 --- a/ChangeLog.powerpc +++ b/ChangeLog.powerpc @@ -1,3 +1,8 @@ +2012-05-30 Joseph Myers + + * sysdeps/powerpc/soft-fp/sfp-machine.h (FP_EX_DENORM): Remove. + (FP_TRAPPING_EXCEPTIONS): Define. + 2012-05-21 Joseph Myers * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist diff --git a/sysdeps/mips/mips64/soft-fp/sfp-machine.h b/sysdeps/mips/mips64/soft-fp/sfp-machine.h index 9c1ee3b..c81067d 100644 --- a/sysdeps/mips/mips64/soft-fp/sfp-machine.h +++ b/sysdeps/mips/mips64/soft-fp/sfp-machine.h @@ -69,6 +69,7 @@ do { \ if (__builtin_expect (_fex, 0)) \ _FPU_SETCW (_fcw | _fex | (_fex << 10)); \ } while (0) +#define FP_TRAPPING_EXCEPTIONS ((_fcw >> 5) & 0x7c) #else #define FP_INIT_ROUNDMODE _fcw = FP_RND_NEAREST #endif diff --git a/sysdeps/powerpc/soft-fp/sfp-machine.h b/sysdeps/powerpc/soft-fp/sfp-machine.h index e7eafe2..8a9afad 100644 --- a/sysdeps/powerpc/soft-fp/sfp-machine.h +++ b/sysdeps/powerpc/soft-fp/sfp-machine.h @@ -46,12 +46,12 @@ #define FP_EX_INVALID (1 << (31 - 2)) #define FP_EX_OVERFLOW (1 << (31 - 3)) #define FP_EX_UNDERFLOW (1 << (31 - 4)) -#define FP_EX_DENORM FP_EX_UNDERFLOW #define FP_EX_DIVZERO (1 << (31 - 5)) #define FP_EX_INEXACT (1 << (31 - 6)) #define FP_HANDLE_EXCEPTIONS __simulate_exceptions (_fex) #define FP_ROUNDMODE __sim_round_mode +#define FP_TRAPPING_EXCEPTIONS (~__sim_disabled_exceptions & 0x3e000000) extern int __sim_exceptions; libc_hidden_proto (__sim_exceptions); -- Joseph S. Myers joseph@codesourcery.com