From patchwork Fri Feb 14 16:10:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. Murphy" X-Patchwork-Id: 1238149 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-109738-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.vnet.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=VmiRFrxb; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48JyzY2rHKz9sTx for ; Sat, 15 Feb 2020 03:11:05 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; q=dns; s=default; b=AqxdNggcUhaZ3eIq GroVNYqx09Xc2/wkucU8QVM/I0BMBxiV2Inm/MLYU9WPHYtSc6Hg2z93vWz0jkZz j1rpL71Epu2Kr10zYQllPFFH/nM9J3Q2MHDY0uQA0iR2Q+IcrflhgAja6BC9V31v x24M1/HoNkd9y3a0Nf/UF+JyT7M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; s=default; bh=1NsKZv9qiLzEfkbpqHP8OD 2/Lwc=; b=VmiRFrxb8iqpKfCnGnl5Lh+6eX78a1lSw8qoJ7EaankqeGkNWHjSog c+wsKxhghg+7FMd87aDxg21Ga0/LmANhrXMVxkXQIcpVhNB2jYFBg24pRQMeoQp5 wyvTPSXHz8IdZj1HlclqNz0wZ/n03BSqTyb/vvFbe4HNzCAUkEO+k= Received: (qmail 62011 invoked by alias); 14 Feb 2020 16:10:58 -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 62002 invoked by uid 89); 14 Feb 2020 16:10:58 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=gabriel, nearly, murphy X-HELO: mx0a-001b2d01.pphosted.com From: "Paul E. Murphy" To: libc-alpha@sourceware.org Subject: [PATCH 0/7] Remaining ldbl-128ibm-compat support Date: Fri, 14 Feb 2020 10:10:44 -0600 Message-Id: <20200214161051.32579-1-murphyp@linux.vnet.ibm.com> MIME-Version: 1.0 This patch series contains the outstanding work to support the IEEE 128 long double redirects from within ldbl-128ibm-compat. In conjunction with with the remaining patches on the mailing list: and the remaing 5 header patches below This should complete the backing support for the long double redirects. A final set of patches will enable the redirects for ppc64le. There is still more arch specific Makefile wrangling to build this subdir. Patches 1,3,5 are straightforward enablement. Patch 2 enables the nexttoward/nextafterl redirects. It is nearly trivial, but fixes up some ldbl-128 files to use the _Float128 name instead of 'long double' to promote reuse. Patch 4 touches common math Makefile to support testing the ibm128 type similar to other types. It also modifies the test-.h to choose correct ULPs when redirects are being used. Patch 6 updates the ldbl-128ibm Makefile to support adding extra compiler flags, primarily -mabi=ibmlongdouble. It also happened to be sitting between Patch 5 and 7. Patch 7 allows using the redirects with libc while also avoiding internal PLT usage. This is kind of ugly, and I would appreciate feedback on whether this approach is acceptable, and if so, whether the macros are located in the most suitable places. Gabriel F. T. Gomes (1): ldbl-128ibm-compat: Provide nexttoward functions Paul E. Murphy (4): ldbl-128ibm-compat: enforce correct abi flags on internal file ldbl-128ibm-compat: fixup subdir location of several funcs ldbl-128ibm-compat: enforce ibm128 on compat tests RFC: ldbl-128ibm-compat: PLT redirects for using ldbl redirects internally Rajalakshmi Srinivasaraghavan (1): ldbl-128ibm-compat: Add tests for IBM long double functions Tulio Magno Quites Machado Filho (1): ldbl-128ibm: Let long double files have specific compiler flags include/err.h | 12 ++--- include/stdio.h | 51 ++++++++++++------ include/sys/cdefs.h | 23 ++++++++ include/sys/syslog.h | 2 +- include/wchar.h | 2 +- math/Makefile | 7 ++- math/test-float128.h | 2 +- math/test-float64x.h | 2 +- math/test-ibm128.h | 19 +++++++ math/test-ldouble.h | 6 +++ sysdeps/ieee754/ldbl-128/s_nexttoward.c | 4 +- sysdeps/ieee754/ldbl-128/s_nexttowardf.c | 4 +- sysdeps/ieee754/ldbl-128ibm-compat/Makeconfig | 3 ++ sysdeps/ieee754/ldbl-128ibm-compat/Makefile | 53 +++++++++++++------ sysdeps/ieee754/ldbl-128ibm-compat/Versions | 3 ++ .../ldbl-128ibm-compat/ieee128-asprintf.c | 5 +- .../ldbl-128ibm-compat/ieee128-dprintf.c | 1 + .../ieee754/ldbl-128ibm-compat/ieee128-err.c | 7 +++ .../ldbl-128ibm-compat/ieee128-fprintf.c | 1 + .../ieee128-isoc99_sscanf.c | 1 + .../ieee128-isoc99_vfscanf.c | 2 + .../ieee128-isoc99_vsscanf.c | 1 + .../ldbl-128ibm-compat/ieee128-sprintf.c | 1 + .../ldbl-128ibm-compat/ieee128-syslog.c | 1 + .../ldbl-128ibm-compat/ieee128-vfprintf.c | 1 + .../ldbl-128ibm-compat/s_nextafterf128.c | 20 +++++++ .../ldbl-128ibm-compat/s_nexttowardf128.c | 38 +++++++++++++ sysdeps/ieee754/ldbl-128ibm/Makefile | 22 ++++++-- .../ldbl-128ibm/include/bits/iscanonical.h | 2 +- sysdeps/powerpc/powerpc64/le/Makefile | 50 ++++++++++++++--- 30 files changed, 288 insertions(+), 58 deletions(-) create mode 100644 math/test-ibm128.h create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/Makeconfig create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/s_nextafterf128.c create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/s_nexttowardf128.c