This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCHv3 00/11] Refactor libm-test.c and friends


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]