From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8608 invoked by alias); 14 Jun 2013 20:22:35 -0000 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 Received: (qmail 8598 invoked by uid 89); 14 Jun 2013 20:22:35 -0000 X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 14 Jun 2013 20:22:34 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UnaW0-00022z-Nw from joseph_myers@mentor.com for libc-ports@sourceware.org; Fri, 14 Jun 2013 13:22:32 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 14 Jun 2013 13:22:32 -0700 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.2.247.3; Fri, 14 Jun 2013 21:22:30 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.76) (envelope-from ) id 1UnaVx-0001wD-9M for libc-ports@sourceware.org; Fri, 14 Jun 2013 20:22:29 +0000 Date: Fri, 14 Jun 2013 20:22:00 -0000 From: "Joseph S. Myers" To: Subject: Add math-tests.h for MIPS Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2013-06/txt/msg00017.txt.bz2 I've applied this patch to add a math-tests.h file for MIPS, to reduce spurious test failures for soft-float and long double. 2013-06-14 Joseph Myers * sysdeps/mips/math-tests.h: New file. diff --git a/ports/sysdeps/mips/math-tests.h b/ports/sysdeps/mips/math-tests.h new file mode 100644 index 0000000..d2edd46 --- /dev/null +++ b/ports/sysdeps/mips/math-tests.h @@ -0,0 +1,37 @@ +/* Configuration for math tests. MIPS version. + Copyright (C) 2013 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include + +/* MIPS soft float does not support exceptions and rounding modes, and + long double when wider than double is implemented using fp-bit + which does not integrate with hardware exceptions and rounding + modes. */ +#ifdef __mips_soft_float +# define ROUNDING_TESTS_float(MODE) ((MODE) == FE_TONEAREST) +# define ROUNDING_TESTS_double(MODE) ((MODE) == FE_TONEAREST) +# define ROUNDING_TESTS_long_double(MODE) ((MODE) == FE_TONEAREST) +# define EXCEPTION_TESTS_float 0 +# define EXCEPTION_TESTS_double 0 +# define EXCEPTION_TESTS_long_double 0 +#elif _MIPS_SIM != _ABIO32 +# define ROUNDING_TESTS_long_double(MODE) ((MODE) == FE_TONEAREST) +# define EXCEPTION_TESTS_long_double 0 +#endif + +#include_next -- Joseph S. Myers joseph@codesourcery.com