summaryrefslogtreecommitdiff
path: root/libc/sysdeps/i386/fpu/math-tests.h
diff options
context:
space:
mode:
authorjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2013-04-28 15:21:50 +0000
committerjoseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d>2013-04-28 15:21:50 +0000
commitc19459a92177fc8864b461e84d017a21c4006dc5 (patch)
treefcf20ad0222de01ad3a955edb3b65b06724a3a15 /libc/sysdeps/i386/fpu/math-tests.h
parent8751114637bcc3caaf16a4216da0afb84456558a (diff)
downloadeglibc2-c19459a92177fc8864b461e84d017a21c4006dc5.tar.gz
Merge changes between r22663 and r22954 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@22955 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/sysdeps/i386/fpu/math-tests.h')
-rw-r--r--libc/sysdeps/i386/fpu/math-tests.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/libc/sysdeps/i386/fpu/math-tests.h b/libc/sysdeps/i386/fpu/math-tests.h
new file mode 100644
index 000000000..2245fc901
--- /dev/null
+++ b/libc/sysdeps/i386/fpu/math-tests.h
@@ -0,0 +1,27 @@
+/* Configuration for math tests. 32-bit x86 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
+ <http://www.gnu.org/licenses/>. */
+
+/* On 32-bit x86, versions of GCC up to at least 4.8 are happy to use FPU load
+ instructions for sNaN values, and loading a float or double sNaN value will
+ already raise an INVALID exception as well as turn the sNaN into a qNaN,
+ rendering certain tests infeasible in this scenario.
+ <http://gcc.gnu.org/PR56831>. */
+#define SNAN_TESTS_float 0
+#define SNAN_TESTS_double 0
+
+#include_next <math-tests.h>