From patchwork Tue Oct 15 19:05:10 2019 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: 1177321 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-105987-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=inconstante.net.br Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="UtWSrl1s"; 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 46t4hL2W1Sz9sPk for ; Wed, 16 Oct 2019 06:08:18 +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:in-reply-to :references:mime-version:content-transfer-encoding:content-type; q=dns; s=default; b=cHh1aIt75JAKZwiWOJMYzdH/ikHmlkrQE4ZYLU9yQL5 A2E6jHHVc0eCnaOQVOTzR6P5jBVIoVqhaPWKKR5jy4W13Oc067bit3SyZRMdzo6D bi8mm1i61pywuyvW5y2tO0heHoxEyT/Im6KQTIpmlS24A7hfGsp+++zBb1J5Y7zM = 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:in-reply-to :references:mime-version:content-transfer-encoding:content-type; s=default; bh=qF/f7693KfVgY3zzI/ApPbNEuzE=; b=UtWSrl1smPX0MNHwk pxIrSCNxJ2MkKN1tqahqohh2ebw44dIy/q62vQWGr80Ik+vq032AZrnIHbc3kNqY E9rcdwvsxIPM24gCSB5T3uIJiSZcT7lMMW9N3nLj+A2z7qgu53XTsK+qhv5Y411W yXzoTSQuTWIQxdWyOO7XxCZxUY= Received: (qmail 104234 invoked by alias); 15 Oct 2019 19:06:50 -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 104171 invoked by uid 89); 15 Oct 2019 19:06:50 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*F:D*br, H*F:D*net.br, HContent-Transfer-Encoding:8bit X-HELO: smtpout1.mo528.mail-out.ovh.net From: "Gabriel F. T. Gomes" To: Subject: [PATCH 12/31] ldbl-128ibm-compat: Reuse tests for err.h and error.h functions Date: Tue, 15 Oct 2019 16:05:10 -0300 Message-ID: <20191015190529.11559-13-gabriel@inconstante.net.br> In-Reply-To: <20191015190529.11559-1-gabriel@inconstante.net.br> References: <20191015190529.11559-1-gabriel@inconstante.net.br> MIME-Version: 1.0 X-Ovh-Tracer-Id: 1785114305216237251 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrjeefgddufeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenuc From: "Gabriel F. T. Gomes" Commit IDs 9771e6cb5102 and 7597b0c7f711 added tests for the functions from err.h and error.h that can take long double parameters. Afterwards, commit ID f0eaf8627654 reused them on architectures that changed the long double format from the same as double to something else (i.e.: architectures that imply ldbl-opt). This patch reuses it again for IEEE long double on powerpc64le. Tested for powerpc64le. --- sysdeps/ieee754/ldbl-128ibm-compat/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile index a09209a2dd..ed0e2ec098 100644 --- a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile +++ b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile @@ -177,6 +177,21 @@ endif ifeq ($(subdir),misc) ldbl-extra-routines += err \ error + +tests-internal += tst-ibm128-warn tst-ieee128-warn +tests-internal += tst-ibm128-error tst-ieee128-error + +$(objpfx)tst-ibm128-%.c: tst-ldbl-%.c + cp $< $@ + +$(objpfx)tst-ieee128-%.c: tst-ldbl-%.c + cp $< $@ + +CFLAGS-tst-ibm128-warn.c += -mabi=ibmlongdouble -Wno-psabi +CFLAGS-tst-ibm128-error.c += -mabi=ibmlongdouble -Wno-psabi + +CFLAGS-tst-ieee128-warn.c += -mfloat128 -mabi=ieeelongdouble -Wno-psabi +CFLAGS-tst-ieee128-error.c += -mfloat128 -mabi=ieeelongdouble -Wno-psabi endif # Add IEEE binary128 files as make targets.