public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCHv3 00/11] Refactor libm-test.c and friends
@ 2016-05-26 21:42 Paul E. Murphy
  2016-05-26 21:43 ` [PATCHv3 01/11] Begin refactor of libm-test.inc Paul E. Murphy
                   ` (10 more replies)
  0 siblings, 11 replies; 40+ messages in thread
From: Paul E. Murphy @ 2016-05-26 21:42 UTC (permalink / raw)
  To: libc-alpha

Patch 1 introduces several new type-generic macros used later on
to include tests based on format, not type.

Patch 2 is included per Joseph's request.  I've also done a
some extra manual fixup to simplify duplicate checks for
mantissa bits.

Patch 3-7 replace M_* macros with new macros prefixed with lit_.
A LITM macro is introduced to wrap math.h M_ constants.

Patch 8 introduces the a new test modifier 'j' for long double
parameters.  This explicitly appends the 'L' suffix to FP
literals.

Patch 9 removes the CHOOSE macro all togethor.  It uses some
macro tricks to select the appropriate ulps value for the
type being tested.

Patch 10-11 require regeneration of auto-libm-test-out.

The instructions for tests are similar to the previous
patch. Substitute 15 for 12, and 14 for 11 in the commands
given in the previous patchset [1].

[1] https://sourceware.org/ml/libc-alpha/2016-05/msg00481.html

Paul E. Murphy (11):
  Begin refactor of libm-test.inc
  Refactor type specific macros using regexes
  Refactor M_ macros defined in libm-test.inc
  Replace M_PI2l with lit_pi_2_d in libm-test.inc
  Replace M_PIl with lit_pi in libm-test.inc
  Replace M_PI_4l with lit_pi_4_d in libm-test.inc
  Replace M_El with lit_e in libm-test.inc
  Apply LIT(x) to floating point literals in libm-test.c
  Remove CHOOSE() macro from libm-tests.inc
  Remove type specific information from auto-libm-test-in
  Generate new format names in auto-libm-test-out

 math/auto-libm-test-in     |  115 ++--
 math/gen-auto-libm-tests.c |   24 +-
 math/gen-libm-test.pl      |  107 ++-
 math/libm-test.inc         | 1632 ++++++++++++++++++++++----------------------
 math/test-double-finite.c  |    1 -
 math/test-double-vlen2.h   |    1 -
 math/test-double-vlen4.h   |    1 -
 math/test-double-vlen8.h   |    1 -
 math/test-double.c         |    1 -
 math/test-double.h         |    6 +-
 math/test-float-finite.c   |    1 -
 math/test-float-vlen16.h   |    1 -
 math/test-float-vlen4.h    |    1 -
 math/test-float-vlen8.h    |    1 -
 math/test-float.c          |    1 -
 math/test-float.h          |    7 +-
 math/test-idouble.c        |    1 -
 math/test-ifloat.c         |    1 -
 math/test-ildoubl.c        |    1 -
 math/test-ldouble-finite.c |    1 -
 math/test-ldouble.c        |    1 -
 math/test-ldouble.h        |    6 +-
 22 files changed, 1000 insertions(+), 912 deletions(-)

-- 
2.4.11

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2016-06-08 20:03 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-26 21:42 [PATCHv3 00/11] Refactor libm-test.c and friends Paul E. Murphy
2016-05-26 21:43 ` [PATCHv3 01/11] Begin refactor of libm-test.inc Paul E. Murphy
2016-05-26 22:56   ` Joseph Myers
2016-05-27 15:09     ` Paul E. Murphy
2016-05-26 21:43 ` [PATCHv3 06/11] Replace M_PI_4l with lit_pi_4_d in libm-test.inc Paul E. Murphy
2016-05-27 13:35   ` Joseph Myers
2016-05-27 17:13     ` Paul E. Murphy
2016-05-26 21:43 ` [PATCHv3 02/11] Refactor type specific macros using regexes Paul E. Murphy
2016-05-26 22:59   ` Joseph Myers
2016-05-27 15:28     ` Paul E. Murphy
2016-05-26 21:43 ` [PATCHv3 11/11] Generate new format names in auto-libm-test-out Paul E. Murphy
2016-06-06 21:05   ` Joseph Myers
2016-06-08 20:03     ` Paul E. Murphy
2016-05-26 21:43 ` [PATCHv3 03/11] Refactor M_ macros defined in libm-test.inc Paul E. Murphy
2016-05-27  8:43   ` Joseph Myers
2016-05-27 16:08     ` Paul E. Murphy
2016-05-27 17:12       ` Joseph Myers
2016-05-27 17:12         ` Paul E. Murphy
2016-05-26 21:43 ` [PATCHv3 08/11] Apply LIT(x) to floating point literals in libm-test.c Paul E. Murphy
2016-05-27 17:32   ` Joseph Myers
2016-05-27 18:16     ` Paul E. Murphy
2016-05-27 19:51       ` Joseph Myers
2016-05-27 21:42         ` Paul E. Murphy
2016-06-03 20:24           ` Joseph Myers
2016-06-08 20:03             ` Paul E. Murphy
2016-05-26 21:43 ` [PATCHv3 07/11] Replace M_El with lit_e in libm-test.inc Paul E. Murphy
2016-05-27 14:00   ` Joseph Myers
2016-05-27 17:24     ` Paul E. Murphy
2016-05-26 21:43 ` [PATCHv3 04/11] Replace M_PI2l with lit_pi_2_d " Paul E. Murphy
2016-05-27 13:32   ` Joseph Myers
2016-05-27 17:12     ` Paul E. Murphy
2016-05-26 21:53 ` [PATCHv3 10/11] Remove type specific information from auto-libm-test-in Paul E. Murphy
2016-06-03 20:37   ` Joseph Myers
2016-06-08 20:03     ` Paul E. Murphy
2016-05-26 21:53 ` [PATCHv3 05/11] Replace M_PIl with lit_pi in libm-test.inc Paul E. Murphy
2016-05-27 13:33   ` Joseph Myers
2016-05-27 17:13     ` Paul E. Murphy
2016-05-26 22:45 ` [PATCHv3 09/11] Remove CHOOSE() macro from libm-tests.inc Paul E. Murphy
2016-06-03 20:35   ` Joseph Myers
2016-06-08 20:03     ` Paul E. Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).