From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83341 invoked by alias); 26 May 2016 21:42:57 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 83324 invoked by uid 89); 26 May 2016 21:42:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Begin, (unknown) X-HELO: e19.ny.us.ibm.com X-IBM-Helo: d01dlp03.pok.ibm.com X-IBM-MailFrom: murphyp@linux.vnet.ibm.com X-IBM-RcptTo: libc-alpha@sourceware.org From: "Paul E. Murphy" To: libc-alpha@sourceware.org Subject: [PATCHv3 00/11] Refactor libm-test.c and friends Date: Thu, 26 May 2016 21:42:00 -0000 Message-Id: X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16052621-0057-0000-0000-0000047114B5 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused X-SW-Source: 2016-05/txt/msg00624.txt.bz2 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