This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: math: Additional type conversion tests
- From: Andreas Jaeger <aj at suse dot com>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 23 May 2013 21:28:44 +0200
- Subject: Re: math: Additional type conversion tests
- References: <8738tdiug1 dot fsf at schwinge dot name>
On 05/23/2013 05:31 PM, Thomas Schwinge wrote:
Hi!
The following test addition has helped me find and fix type conversion
issues in QEMU's MIPS hardware emulation. While certainly glibc is not
the best place for such tests, I'm proposing them anyway, as it's just an
enhancement of tests already present. Tested for several MIPS multilibs,
x86, x86_64, PowerPC -m64.
* math/basic-test.c (TEST_CONVERT): New macro, renamed from
TEST_TRUNC.
(convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
functions, renamed from truncdfsf_test, trunctfsf_test,
trunctfdf_test.
(convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
functions.
(do_test): Run all these.
Ok, thanks,
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 NÃrnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix ImendÃrffer,HRB16746 (AG NÃrnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126