From patchwork Fri Jun 23 12:33:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriel F T Gomes X-Patchwork-Id: 21229 X-Patchwork-Delegate: joseph@codesourcery.com Received: (qmail 71708 invoked by alias); 23 Jun 2017 12:34:07 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 70663 invoked by uid 89); 23 Jun 2017 12:34:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, KHOP_DYNAMIC, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com From: "Gabriel F. T. Gomes" To: libc-alpha@sourceware.org Subject: [PATCH v3 2/7] Prepare the manual to display math errors for float128 functions Date: Fri, 23 Jun 2017 09:33:21 -0300 In-Reply-To: <1498221206-26864-1-git-send-email-gftg@linux.vnet.ibm.com> References: <1498221206-26864-1-git-send-email-gftg@linux.vnet.ibm.com> X-TM-AS-MML: disable x-cbid: 17062312-0024-0000-0000-00000183152E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17062312-0025-0000-0000-0000164B5F07 Message-Id: <1498221206-26864-3-git-send-email-gftg@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-06-23_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1706230212 New since v2: - This patch has been split from the last patch in this set, because it isn't powerpc64le-specific. -- 8< -- When float128 support gets enabled for powerpc64le, the ULP errors for float128 functions need to be presented in the manual. This patch adds support for displaying them. Tested for powerpc64le and s390x. * manual/libm-err-tab.pl (@all_floats, %suffices, parse_ulps): Enable generation of float128 entries on the error table. --- manual/libm-err-tab.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/manual/libm-err-tab.pl b/manual/libm-err-tab.pl index 75f5e5b..e0bc3b7 100755 --- a/manual/libm-err-tab.pl +++ b/manual/libm-err-tab.pl @@ -40,11 +40,12 @@ use vars qw (%results @all_floats %suffices %all_functions); # all_floats is in output order and contains all recognised float types that # we're going to output -@all_floats = ('float', 'double', 'ldouble'); +@all_floats = ('float', 'double', 'ldouble', 'float128'); %suffices = ( 'float' => 'f', 'double' => '', - 'ldouble' => 'l' + 'ldouble' => 'l', + 'float128' => 'f128' ); # Pretty description of platform @@ -113,7 +114,7 @@ sub parse_ulps { $ignore_fn = 0; $all_functions{$test} = 1; } - if (/^i?(float|double|ldouble):/) { + if (/^i?(float|double|ldouble|float128):/) { ($float, $eps) = split /\s*:\s*/,$_,2; if ($ignore_fn) { next;