Joseph Myers [Fri, 17 May 2013 19:01:27 +0000 (19:01 +0000)]
Don't handle ulps for integer tests in libm-test.inc.
Joseph Myers [Fri, 17 May 2013 14:45:50 +0000 (14:45 +0000)]
Test more cases of "inexact" exceptions in libm-test.inc.
Siddhesh Poyarekar [Fri, 17 May 2013 13:40:33 +0000 (19:10 +0530)]
Prevent optimizing out of benchmark function call
Resolves: #15424
The compiler would optimize the benchmark function call out of the
loop and call it only once, resulting in blazingly fast times for some
benchmarks (notably atan, sin and cos). Mark the inputs as volatile
so that the code is forced to read again from the input for each
iteration.
Adhemerval Zanella [Fri, 17 May 2013 13:12:16 +0000 (08:12 -0500)]
PowerPC: fix hypot/hypotf check for -INF
Maciej W. Rozycki [Thu, 16 May 2013 22:33:55 +0000 (23:33 +0100)]
MIPS: soft-fp NaN representation corrections
[BZ #15442] This adds support for the inverse interpretation of the
quiet bit of IEEE 754 floating-point NaN data that some processors
use. This includes in particular MIPS architecture processors; the
payload used for the canonical qNaN encoding is updated accordingly
so as not to interfere with the quiet bit.
Joseph Myers [Thu, 16 May 2013 21:57:25 +0000 (21:57 +0000)]
Test for errno setting in more pole error cases.
Joseph Myers [Thu, 16 May 2013 19:09:54 +0000 (19:09 +0000)]
Remove ENOSYS tests in libm-test.inc.
Joseph Myers [Thu, 16 May 2013 19:09:03 +0000 (19:09 +0000)]
Remove libm-test support for TEST_* inside functions.
Ryan S. Arnold [Wed, 1 May 2013 15:46:34 +0000 (10:46 -0500)]
Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).
Joseph Myers [Thu, 16 May 2013 15:53:40 +0000 (15:53 +0000)]
Convert TEST_extra tests from code to data.
Richard Henderson [Thu, 16 May 2013 13:34:01 +0000 (06:34 -0700)]
De-stringify constants in math/atest-exp2.c.
Joseph Myers [Thu, 16 May 2013 13:19:38 +0000 (13:19 +0000)]
Support testing "inexact" exceptions in libm-test.inc.
Joseph Myers [Thu, 16 May 2013 13:18:48 +0000 (13:18 +0000)]
Test for errno setting in more overflow error cases.
Joseph Myers [Thu, 16 May 2013 13:17:55 +0000 (13:17 +0000)]
Convert TEST_cc_c tests from code to data.
Joseph Myers [Thu, 16 May 2013 13:16:56 +0000 (13:16 +0000)]
Convert TEST_f_L tests from code to data.
Peter Collingbourne [Mon, 13 May 2013 15:36:12 +0000 (08:36 -0700)]
Remove const attribute on get_log2
This function is not const, as it can modify log2_m and log2_m_inited.
Carlos O'Donell [Wed, 15 May 2013 21:19:20 +0000 (17:19 -0400)]
hppa: Cleanup libm-test-ulps.
Joseph Myers noted that there were several old and really very
incorrect values in the hppa libm-test-ulps. This patch removes
all of the ulps values for ceil, floor, rint, round, trun,
llrint, and llround, all of which were previously incorreclty
added (including some negative values which are really wrong).
---
ports/
2013-05-15 Carlos O'Donell <carlos@redhat.com>
* sysdeps/hppa/fpu/libm-test-ulps: Remove old values for ceil, floor,
rint, round, trunc, llrint, and llround.
Joseph Myers [Wed, 15 May 2013 19:48:17 +0000 (19:48 +0000)]
Convert TEST_f_l tests from code to data.
Peter Collingbourne [Wed, 15 May 2013 18:33:45 +0000 (20:33 +0200)]
Use movq for 64-bit operations
The EXTRACT_WORDS64 and INSERT_WORDS64 macros use movd for a 64-bit
operation. Somehow gcc manages to turn this into movq, but LLVM won't.
2013-05-15 Peter Collingbourne <pcc@google.com>
* sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
(EXTRACT_WORDS64) Use where appropriate.
(INSERT_WORDS64) Likewise.
Peter Collingbourne [Wed, 15 May 2013 18:31:53 +0000 (20:31 +0200)]
Use x constraints for operands to vfmaddss and vfmaddsd
While these instructions accept memory operands, only one operand
may be a memory operand. Giving two operands xm constraints gives
the compiler the option of using memory for both operands, which
would result in invalid assembly code. Using x for all operands is
more appropriate, as most x86_64 calling conventions will pass the
arguments in registers anyway.
2013-05-15 Peter Collingbourne <pcc@google.com>
* sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
constraints with x constraints.
* sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
Peter Collingbourne [Wed, 15 May 2013 18:28:08 +0000 (20:28 +0200)]
Move _obstack_compat out of common
it is impossible to create an alias of a common symbol (as
compat_symbol does), because common symbols do not have a section or
an offset until linked. GNU as tolerates aliases of common symbols by
simply creating another common symbol, but other assemblers (notably
LLVM's integrated assembler) are less tolerant.
2013-05-15 Peter Collingbourne <pcc@google.com>
* malloc/obstack.c (_obstack_compat): Add initializer.
-
Andreas Jaeger [Wed, 15 May 2013 18:20:54 +0000 (20:20 +0200)]
Reserve new TLS field for x86 and x86_64
[BZ #10686]
* sysdeps/x86_64/tls.h (struct tcbhead_t): Add __private_ss
field.
* sysdeps/i386/tls.h (struct tcbhead_t): Likewise.
Edjunior Machado [Wed, 15 May 2013 18:15:19 +0000 (20:15 +0200)]
Update s390/bits/siginfo.h
2013-05-15 Edjunior Machado <emachado@linux.vnet.ibm.com>
* sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t):
Remove si_trapno and add si_addr_lsb to _sifields.sigfault.
(si_trapno): Remove macro.
(si_addr_lsb): Define new macro.
(BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
Joseph Myers [Wed, 15 May 2013 16:58:41 +0000 (16:58 +0000)]
Consistently use TEST_f_L in tests of llrint and llround.
Carlos O'Donell [Wed, 15 May 2013 16:42:59 +0000 (12:42 -0400)]
hppa: Update libm-test-ulps
Update libm-test-ulps for hppa. There are a few entries
with 4 or 5 ulps, but these appear to be expected. A more
thorough review will be required if hppa switches long-double
to a different type.
---
ports/
2013-05-15 Carlos O'Donell <carlos@redhat.com>
* sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
Carlos O'Donell [Wed, 15 May 2013 15:47:47 +0000 (11:47 -0400)]
hppa: Fix _FPU_GETCW and _FPU_SETCW.
The following patch fixes both _FPU_GETCW and
_FPU_SETCW for hppa. The initial implementation was
flawed and not well tested. We failed to set cw,
and passed in the value of a register to fldd.
This patch fixes both of those errors and allows
the libm tests to pass without failure.
Signed-off-by: Guy Martin <gmsoft@tuxicoman.be>
Signed-off-by: Carlos O'Donell <carlos@redhat.com>
---
2013-05-15 Guy Martin <gmsoft@tuxicoman.be>
Carlos O'Donell <carlos@redhat.com>
[BZ# 15000]
* ports/sysdeps/hppa/fpu/fpu_control.h (_FPU_GETCW): Set cw.
(_FPU_SETCW): Pass address to fldd.
Joseph Myers [Wed, 15 May 2013 12:04:07 +0000 (12:04 +0000)]
Convert TEST_f_b tests from code to data.
Joseph Myers [Wed, 15 May 2013 10:43:19 +0000 (10:43 +0000)]
Test for errno setting in more domain error cases.
Joseph Myers [Wed, 15 May 2013 10:42:18 +0000 (10:42 +0000)]
Disable libm-test errno testing for TEST_INLINE.
Joseph Myers [Wed, 15 May 2013 10:41:39 +0000 (10:41 +0000)]
Convert TEST_ff_i tests from code to data.
David S. Miller [Tue, 14 May 2013 22:44:29 +0000 (15:44 -0700)]
Update Sparc ULPs.
* sysdeps/sparc/fpu/libm-test-ulps: Update.
Joseph Myers [Tue, 14 May 2013 21:17:19 +0000 (21:17 +0000)]
Fix whitespace in RUN_TEST_LOOP_2_f.
Joseph Myers [Tue, 14 May 2013 21:00:56 +0000 (21:00 +0000)]
Correct types of fields in libm-test.inc structures.
Joseph Myers [Tue, 14 May 2013 20:36:03 +0000 (20:36 +0000)]
Convert TEST_ffI_f1 tests from code to data.
Joseph Myers [Tue, 14 May 2013 19:50:14 +0000 (19:50 +0000)]
Stop ARM setjmp/longjmp saving/restoring fpscr (bug 14908).
Joseph Myers [Tue, 14 May 2013 19:49:09 +0000 (19:49 +0000)]
Add test for setjmp / longjmp and floating-point state.
Joseph Myers [Tue, 14 May 2013 19:13:43 +0000 (19:13 +0000)]
Convert TEST_f_i tests from code to data.
Joseph Myers [Tue, 14 May 2013 19:12:54 +0000 (19:12 +0000)]
Fix function name in scalbln_test call to END.
Joseph Myers [Tue, 14 May 2013 19:12:10 +0000 (19:12 +0000)]
Convert TEST_fI_f1 tests from code to data.
Joseph Myers [Tue, 14 May 2013 14:49:26 +0000 (14:49 +0000)]
Convert TEST_fF_f1 tests from code to data.
Joseph Myers [Tue, 14 May 2013 12:01:19 +0000 (12:01 +0000)]
Convert TEST_f_f1 tests from code to data.
Carlos O'Donell [Tue, 14 May 2013 04:06:35 +0000 (00:06 -0400)]
Add comments to vDSO hwcap loading process.
Loading of the vDSO pseudo-hwcap from the type 2 GNU note is
a rather arcane and poorly documented process. Given that I had
a chance to review this code today I thought I would add all
of the things I had to lookup to verify the validity of the
process.
With a single .note.GNU the vDSO can register up to 64 flags,
though in practice you are limited to 64 - _DL_FIRST_EXTRA
bits which on x86 is 12 bits.
The only use of this that I know of is in the Xen support
in Linux where they use the 1st bit to indicate "nosegneg".
I see "We use bit 1 to avoid bugs in some versions of glibc
when bit 0 is used; the choice is otherwise arbitrary.", but
no reference to a glibc bug anywhere. The code as-is should
support bit zero, so we still have that free for future use.
The kernel, glibc, and ld.so.cache must coordinate to ensure
that bit values don't go too high and are used consistently.
---
2013-05-13 Carlos O'Donell <carlos@redhat.com>
* elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
* elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
(main): Comment "tls" pseudo-hwcap.
Roland McGrath [Mon, 13 May 2013 22:41:46 +0000 (15:41 -0700)]
ARM: Make multiarch memcpy always use NEON when compiler does
Joseph Myers [Mon, 13 May 2013 22:38:15 +0000 (22:38 +0000)]
Convert TEST_fl_f tests from code to data.
Joseph Myers [Mon, 13 May 2013 19:45:36 +0000 (19:45 +0000)]
Convert TEST_fi_f tests from code to data.
Joseph Myers [Mon, 13 May 2013 18:58:17 +0000 (18:58 +0000)]
Convert TEST_c_f tests from code to data.
Joseph Myers [Mon, 13 May 2013 18:57:35 +0000 (18:57 +0000)]
Convert TEST_if_f tests from code to data.
Joseph Myers [Mon, 13 May 2013 18:56:50 +0000 (18:56 +0000)]
Consistently use TEST_fl_f in tests of scalbln.
Adhemerval Zanella [Mon, 13 May 2013 17:08:42 +0000 (12:08 -0500)]
Define decimal constant M_1_DIV_El in libm-test.inc
This patch replaces the 1.0 / M_El by the decimal constant M_1_DIV_El.
Siddhesh Poyarekar [Mon, 13 May 2013 08:14:32 +0000 (13:44 +0530)]
Use HP_TIMING for benchmarks if available
HP_TIMING uses native timestamping instructions if available, thus
greatly reducing the overhead of recording start and end times for
function calls. For architectures that don't have HP_TIMING
available, we fall back to the clock_gettime bits. One may also
override this by invoking the benchmark as follows:
make USE_CLOCK_GETTIME=1 bench
and get the benchmark results using clock_gettime. One has to do
`make bench-clean` to ensure that the benchmark programs are rebuilt.
Siddhesh Poyarekar [Mon, 13 May 2013 06:16:36 +0000 (11:46 +0530)]
Make _LIB_VERSION a weak symbol
That way it can live alongside _LIB_VERSION in libieee.a for
statically compiled programs.
Resolves #14582.
Joseph Myers [Sun, 12 May 2013 21:07:58 +0000 (21:07 +0000)]
Convert TEST_fff_f tests from code to data.
Joseph Myers [Sun, 12 May 2013 17:38:26 +0000 (17:38 +0000)]
Convert TEST_c_c tests from code to data.
Marcus Shawcroft [Sun, 12 May 2013 17:09:33 +0000 (18:09 +0100)]
[AArch64] Fix out of range branch from ioctl() and clone()
2013-05-12 Marcus Shawcroft <marcus.shawcroft@linaro.org>
* sysdeps/unix/sysv/linux/aarch64/clone.S (__clone):
Do not call sycall_error directly with a confitional branch.
* sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl):
Do not call sycall_error directly with a confitional branch.
Joseph Myers [Sun, 12 May 2013 13:17:09 +0000 (13:17 +0000)]
Convert TEST_ff_f tests from code to data.
Joseph Myers [Sat, 11 May 2013 11:10:31 +0000 (11:10 +0000)]
Make fma and nextafter tests use max_value instead of fltmax.
Joseph Myers [Sat, 11 May 2013 11:09:30 +0000 (11:09 +0000)]
Convert TEST_f_f tests from code to data.
Andreas Jaeger [Sat, 11 May 2013 08:28:21 +0000 (10:28 +0200)]
Add BZ #10191 to ChangeLog/NEWS
BZ #10191 was fixed some time ago without noticing at that time.
Christian Grönke [Fri, 10 May 2013 18:40:48 +0000 (20:40 +0200)]
Add getgid.c for SH
[BZ #12387]
* sysdeps/unix/sysv/linux/sh/getgid.c: New file.
Pino Toscano [Fri, 10 May 2013 18:39:32 +0000 (20:39 +0200)]
Hurd: add ST_NOATIME
Andreas Jaeger [Fri, 10 May 2013 18:28:40 +0000 (20:28 +0200)]
Fix integer overflow in sysdeps/unix/sysv/linux/bits/sched.h
[BZ #15448]
* sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
(__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
Joseph Myers [Fri, 10 May 2013 16:45:04 +0000 (16:45 +0000)]
Start converting libm tests from code to data.
Siddhesh Poyarekar [Fri, 10 May 2013 12:14:27 +0000 (17:44 +0530)]
Fix coding style
Joseph Myers [Fri, 10 May 2013 11:35:11 +0000 (11:35 +0000)]
Fix tgamma errno setting on domain error (bug 6809).
Florian Weimer [Fri, 10 May 2013 09:41:53 +0000 (11:41 +0200)]
Use *stat64 instead of *stat in installed programs
This ensures reliable operation on file systems with inode numbers
which do not fit into 32 bits.
Andreas Jaeger [Fri, 10 May 2013 06:06:21 +0000 (08:06 +0200)]
Localize rpcgen
[BZ #15395]
* sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
localization.
Include <locale.h>.
Carlos O'Donell [Thu, 9 May 2013 21:37:15 +0000 (17:37 -0400)]
Add more comments to dlclose() algorithm.
The algorithm for scanning dependencies upon dlclose is
less than immediately obvious. This patch adds two bits
of comments that explain why you start the dependency
search at l_initfini[1], and why you need to restart
the search.
---
2013-05-09 Carlos O'Donell <carlos@redhat.com>
* elf/dl-close.c (_dl_close_worker): Add comments.
Joseph Myers [Thu, 9 May 2013 21:30:08 +0000 (21:30 +0000)]
Fix ldbl-128ibm cos range reduction near pi/2 (bug 15359).
Joseph Myers [Thu, 9 May 2013 21:28:54 +0000 (21:28 +0000)]
Fix ldbl-128 cos range reduction near pi/2 (bug 15429).
Joseph Myers [Thu, 9 May 2013 14:33:30 +0000 (14:33 +0000)]
Use M_SQRT1_2l instead of local M_SQRT_2_2 in libm-test.inc.
Andi Kleen [Thu, 9 May 2013 14:12:26 +0000 (16:12 +0200)]
Fix tst-mutexpi8
2013-05-09 Andi Kleen <ak@linux.intel.com>
* tst-mutex8.c (do_test): Check for ENABLE_PI.
Joseph Myers [Thu, 9 May 2013 14:13:10 +0000 (14:13 +0000)]
Use M_PI_34l consistently in libm-test.inc.
Joseph Myers [Thu, 9 May 2013 12:24:44 +0000 (12:24 +0000)]
Use decimal constants in defining M_* in libm-test.inc.
Adhemerval Zanella [Wed, 8 May 2013 20:06:56 +0000 (15:06 -0500)]
Update powerpc libm-test ULPs
Joseph Myers [Wed, 8 May 2013 16:10:44 +0000 (16:10 +0000)]
Factor out initializers for libm-test.inc constants.
Joseph Myers [Wed, 8 May 2013 16:09:54 +0000 (16:09 +0000)]
Use correct TEST_* macros for jn, ldexp and yn tests.
Will Newton [Wed, 8 May 2013 12:06:34 +0000 (12:06 +0000)]
ARM: Add Cortex-A15 optimized NEON and VFP memcpy routines, with IFUNC.
Joseph Myers [Wed, 8 May 2013 12:02:22 +0000 (12:02 +0000)]
Move some libm-test logic for running tests from gen-libm-test.pl to libm-test.inc.
Joseph Myers [Wed, 8 May 2013 11:58:18 +0000 (11:58 +0000)]
Improve tgamma accuracy (bugs 2546, 2560, 5159, 15426).
Ondrej Bilka [Wed, 8 May 2013 06:21:05 +0000 (08:21 +0200)]
Preheat CPU in benchtests.
A benchmark could be skewed by CPU initialy working on minimal
frequency and speeding up later. We first run code in loop
to partialy fix this issue.
Aurelien Jarno [Tue, 7 May 2013 22:00:46 +0000 (00:00 +0200)]
Only defined DEV_BSIZE if not already defined.
Roland McGrath [Tue, 7 May 2013 21:49:26 +0000 (14:49 -0700)]
Declare _dl_skip_args in ldsodefs.h header.
Roland McGrath [Tue, 7 May 2013 17:29:13 +0000 (10:29 -0700)]
ARM: Rewrite elf_machine_dynamic in pure C.
Carlos O'Donell [Tue, 7 May 2013 16:33:44 +0000 (12:33 -0400)]
manual/message.texi: Fix english and clarify.
Rewrite the first paragraph to talk about users not humans,
and to use correct English.
Clarify that it is the mapping of messages to IDs that
impacts the design of the message translation API.
---
2013-05-07 Carlos O'Donell <carlos@redhat.com>
* manual/message.texi (Message Translation): Talk about users.
Message to key mapping impacts design.
Roland McGrath [Tue, 7 May 2013 00:11:12 +0000 (17:11 -0700)]
Fix glob64 broken by cleanup.
Roland McGrath [Tue, 7 May 2013 00:06:50 +0000 (17:06 -0700)]
Remove a dead declaration.
Roland McGrath [Mon, 6 May 2013 23:11:11 +0000 (16:11 -0700)]
Move dummy glob64.c alongside glob.c that defines glob64.
Roland McGrath [Mon, 6 May 2013 23:03:35 +0000 (16:03 -0700)]
Flesh out stub not-cancel.h file.
Roland McGrath [Mon, 6 May 2013 22:58:44 +0000 (15:58 -0700)]
Move getlogin_r_chk to login/ subdir.
Roland McGrath [Mon, 6 May 2013 22:23:51 +0000 (15:23 -0700)]
Fix poll stub implementation.
Roland McGrath [Mon, 6 May 2013 22:19:14 +0000 (15:19 -0700)]
Move ptsname_r_chk to login/ subdir.
Roland McGrath [Mon, 6 May 2013 22:10:09 +0000 (15:10 -0700)]
Move getlogin, getlogin_r, setlogin to login/ subdir.
Roland McGrath [Mon, 6 May 2013 21:58:00 +0000 (14:58 -0700)]
Fix stub setrlimit implementation.
Roland McGrath [Mon, 6 May 2013 21:56:13 +0000 (14:56 -0700)]
Clean up POSIX.1 implementation of truncate.
Joseph Myers [Mon, 6 May 2013 20:23:40 +0000 (20:23 +0000)]
Initialize x in frexp, modf, remqou tests.
Joseph Myers [Mon, 6 May 2013 20:23:01 +0000 (20:23 +0000)]
Consistently use TEST_f_f1 in gamma tests.
Roland McGrath [Mon, 6 May 2013 19:52:05 +0000 (12:52 -0700)]
ARM: Add missing sfi_breg prefix in _dl_tlsdesc_dynamic code.
Adhemerval Zanella [Mon, 6 May 2013 19:40:17 +0000 (14:40 -0500)]
PowerPC: fix hypot/hypof FP exceptions
This patch fixes hypot/hypotf spurious floating-point exceptions
generate by internal operations.
Roland McGrath [Mon, 6 May 2013 18:30:41 +0000 (11:30 -0700)]
Split _dl_writev out from _dl_debug_vdprintf.
Joseph Myers [Sat, 4 May 2013 16:45:15 +0000 (16:45 +0000)]
Remove unused libm-test expected-failure mechanism.