Go to file
Joseph Myers 863893ec95 Test cpow in all rounding modes.
This patch enables testing of cpow in all rounding modes using
ALL_RM_TEST.  There were two reasons this was previously deferred:

* MPC has complicated rounding-mode-dependent rules for the signs of
  exact zero real or imaginary parts in the result of mpc_pow.  Annex
  G does not impose any such requirements and I don't think glibc
  should try to implement any particular logic here.  This patch adds
  support for gen-auto-libm-tests passing the IGNORE_ZERO_INF_SIGN
  flag to libm-test.inc.

* Error accumulations in some tests in non-default rounding modes
  exceed the maximum error permitted in libm-test.inc.  This patch
  marks the problem tests with xfail-rounding.  (It might be possible
  to reduce the accumulations a bit by using round-to-nearest when
  cpow calls clog, but I don't think there's much point; the
  implementation approach for cpow is fundamentally deficient, as
  discussed in the existing bug for cpow inaccuracy which can
  reasonably be considered to cover these less-inaccurate cases as
  well.  It's possible that the test "cpow 2 0 10 0" will also need
  xfail-rounding on some platforms.)

Tested x86_64 and x86 and ulps updated accordingly.

	* math/gen-auto-libm-tests.c: Document use of
	ignore-zero-inf-sign.
	(input_flag_type): Add value flag_ignore_zero_inf_sign.
	(input_flags): Add ignore-zero-inf-sign.
	(output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
	* math/gen-libm-test.pl (generate_testfile): Handle
	ignore-zero-inf-sign.
	* math/auto-libm-test-in: Mark some cpow tests with
	ignore-zero-inf-sign and some with xfail-rounding.
	* math/auto-libm-test-out: Regenerated.
	* math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
	* sysdeps/i386/fpu/libm-test-ulps: Update.
	* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2014-06-23 20:15:14 +00:00
argp
assert Remove redundant C locale settings. 2014-06-07 19:58:36 +00:00
benchtests Remove unnecessary $(.) 2014-06-19 17:02:48 +05:30
bits
catgets Clean up HAVE_CONFIG_H and STDC_HEADERS. 2014-06-20 20:04:47 -07:00
conf
conform conformtest: clean up POSIX expectations for sys/mman.h, sys/stat.h, sys/types.h. 2014-06-11 23:16:23 +00:00
crypt crypt: don't include ufc-crypt.h multiple times 2014-06-06 18:25:31 -04:00
csu
ctype
debug Include LOCPATH in default test environment. 2014-06-04 23:37:25 +00:00
dirent
dlfcn
elf elf/dl-lookup.c: Use __glibc_likely and __glibc_unlikely 2014-06-23 14:13:31 +01:00
gmon
gnulib
grp
gshadow
hesiod
hurd
iconv
iconvdata Use $(rtld-prefix) more consistently. 2014-06-18 10:35:29 +00:00
include Clean up HAVE_CONFIG_H and STDC_HEADERS. 2014-06-20 20:04:47 -07:00
inet
intl Don't require test wrappers to preserve environment variables, use more consistent environment. 2014-06-06 22:19:27 +00:00
io Remove redundant C locale settings. 2014-06-07 19:58:36 +00:00
libidn
libio Remove redundant C locale settings. 2014-06-07 19:58:36 +00:00
locale Clean up HAVE_CONFIG_H and STDC_HEADERS. 2014-06-20 20:04:47 -07:00
localedata Fix ChangeLog and NEWS goof-up 2014-06-20 17:12:10 +05:30
login
mach
malloc malloc/malloc.c: Avoid calling sbrk unnecessarily with zero 2014-06-19 14:34:08 +01:00
manual Remove redundant C locale settings. 2014-06-07 19:58:36 +00:00
math Test cpow in all rounding modes. 2014-06-23 20:15:14 +00:00
misc
nis
nptl Remove unused label 2014-06-23 17:15:37 +02:00
nptl_db
nscd nscd: Remove unused typedef and variable. 2014-06-22 13:46:14 +02:00
nss Don't ignore too long lines in nss_files (BZ #17079) 2014-06-23 12:29:51 +02:00
po
posix Fix another memory leak in regexp compiler (BZ #17069) 2014-06-20 14:03:40 +02:00
pwd
resolv Fix invalid file descriptor reuse while sending DNS query (BZ #15946) 2014-06-03 18:03:39 +02:00
resource
rt
scripts Pass $TIMEOUTFACTOR to tests also in cross testing 2014-06-16 21:47:25 +02:00
setjmp
shadow
signal
socket
soft-fp
stdio-common Don't require test wrappers to preserve environment variables, use more consistent environment. 2014-06-06 22:19:27 +00:00
stdlib Clean up HAVE_CONFIG_H and STDC_HEADERS. 2014-06-20 20:04:47 -07:00
streams
string Update feature guard for strdup/strndup in <bits/string2.h> 2014-06-16 10:21:31 +02:00
sunrpc
sysdeps Test cpow in all rounding modes. 2014-06-23 20:15:14 +00:00
sysvipc
termios
time Include LOCPATH in default test environment. 2014-06-04 23:37:25 +00:00
timezone Remove redundant C locale settings. 2014-06-07 19:58:36 +00:00
wcsmbs Include LOCPATH in default test environment. 2014-06-04 23:37:25 +00:00
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
BUGS
CANCEL-FCT-WAIVE
CANCEL-FILE-WAIVE
ChangeLog Test cpow in all rounding modes. 2014-06-23 20:15:14 +00:00
ChangeLog.1
ChangeLog.2
ChangeLog.3
ChangeLog.4
ChangeLog.5
ChangeLog.6
ChangeLog.7
ChangeLog.8
ChangeLog.9
ChangeLog.10
ChangeLog.11
ChangeLog.12
ChangeLog.13
ChangeLog.14
ChangeLog.15
ChangeLog.16
ChangeLog.17
ChangeLog.old-ports
ChangeLog.old-ports-aarch64
ChangeLog.old-ports-aix
ChangeLog.old-ports-alpha
ChangeLog.old-ports-am33
ChangeLog.old-ports-arm
ChangeLog.old-ports-cris
ChangeLog.old-ports-hppa
ChangeLog.old-ports-ia64
ChangeLog.old-ports-linux-generic
ChangeLog.old-ports-m68k
ChangeLog.old-ports-microblaze
ChangeLog.old-ports-mips
ChangeLog.old-ports-powerpc
ChangeLog.old-ports-tile
config.h.in
config.make.in
configure
configure.ac
CONFORMANCE
COPYING
COPYING.LIB
cppflags-iterator.mk
extra-lib.mk
extra-modules.mk
INSTALL Remove redundant C locale settings. 2014-06-07 19:58:36 +00:00
libc-abis
LICENSES
Makeconfig Don't require test wrappers to preserve environment variables, use more consistent environment. 2014-06-06 22:19:27 +00:00
Makefile Fix pthread.h in installed-headers list. 2014-06-13 16:39:23 -07:00
Makefile.in Remove redundant C locale settings. 2014-06-07 19:58:36 +00:00
Makerules
NAMESPACE
NEWS Fix pow overflow in non-default rounding modes (bug 16315). 2014-06-23 20:12:33 +00:00
o-iterator.mk
PROJECTS
README
Rules Don't require test wrappers to preserve environment variables, use more consistent environment. 2014-06-06 22:19:27 +00:00
shlib-versions
test-skeleton.c test-skeleton.c: Use stdout for error messages 2014-06-23 11:21:31 +01:00
version.h
WUR-REPORT

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.  The current
GNU/Hurd support requires out-of-tree patches that will eventually be
incorporated into an official GNU C Library release.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 2.6.32 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arm-*-linux-gnueabi
	hppa-*-linux-gnu	Not currently functional without patches.
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu
	tilegx-*-linux-gnu
	tilepro-*-linux-gnu

The code for other CPU configurations supported by volunteers outside of
the core glibc maintenance effort is contained in the `ports' add-on,
located in the `ports' subdirectory of the source tree.

If you are interested in doing a port, please contact the glibc
maintainers; see http://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at http://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see http://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 2000-2013, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.