From patchwork Fri Mar 29 13:35:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 161445 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2054332jan; Fri, 29 Mar 2019 06:40:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFoae46EN394ilIw8gW3u3rqdgWsTRCnyo8VGLjOc7QS9QKMDhJvPP5kSaGRAv2mTdpq5l X-Received: by 2002:a63:158:: with SMTP id 85mr46445055pgb.351.1553866854707; Fri, 29 Mar 2019 06:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553866854; cv=none; d=google.com; s=arc-20160816; b=NUzrHbV21PUkv7I+d9lloSiNPGAQG4vsv2SJmwNiz6bJS4qrJmGVJjcdYVqyQwn0Is tfF/Da22pDJBzIuVk3wE72pSrRuPB6z+qs7vcLIijF5XZYF3C9V3pIa8JoeLVKfTzAId lWwbI9VI6/zDdvUfRBA5INICVp3vrfUJaIpKV8OMfyPqIF65d3zJYEAOw+hX3Jwukk41 lBK6YJ+EbyKzpFPX57vTL/eee01i9Kgmjqyig9ncwkbzDN+aiavb4Rq4+GU8fi69CL40 IUBdLHwFj0X9lYnyq4ASjWErKkmQhyeEZl0Uqv+WcBY+B3ihnkhCtFUJ1/iFe9bG6Gf7 FfJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to:sender:list-help:list-post:list-archive :list-subscribe:list-unsubscribe:list-id:precedence:mailing-list :dkim-signature:domainkey-signature; bh=9Ai/L+/L/wd+PwNU3uHs2ubUI6AYvtmCBzSWLSqkGpo=; b=UEUcoIqPwrhO/oHyMEx3lbrmzMBMPBzuIId1iaxLOdkTNe78GFCI/9A+UGPbohaMlh pxhhurMUSAzfzyy+vbsLbn2dh8mM3ng7IwVRLR02mSC1YiRYJPI6AWDVDFmVe6wpkCDl q6kvPlHW5IrqUkMLq1dobIOG3ov1s8ln/TYzc/8NpuIrD6fix+pEp5tMBSQIgsPlDQEB gxz05JsNYIMivzOwL8Lwk1UbEDKSSlNIZQ9ey9pPC0UKNPhNMnmMlX6NS9dVqwJ2Lbdx T3QxCnmrxPcJkDkf/YMRdw+BusTmIA073mdnKvQDTxU53XtpR5SP916TUoY00L8IUGrj VUgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Gs3O6g3l; dkim=pass header.i=@linaro.org header.s=google header.b=BSxaJPV0; spf=pass (google.com: domain of libc-alpha-return-101014-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-101014-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id i67si1975824pfb.117.2019.03.29.06.40.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Mar 2019 06:40:54 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-101014-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=Gs3O6g3l; dkim=pass header.i=@linaro.org header.s=google header.b=BSxaJPV0; spf=pass (google.com: domain of libc-alpha-return-101014-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-101014-patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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; q=dns; s=default; b=NybyotoGXPME52IjGZX5SuhguZwv18s CgQL7129lt8Qnzy9Pnq1Poj6zPw2wQHrMwtvz7N5tcVyqW81/xA+lku8mMhzmgOp /iL1DGSi5sSjwaiuhRNuCgjR4QAFSnvU6EgaWEe/H/oX0mgPtcw4LFAGQJ7M3lcl Fa1+Tmji/W+k= 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; s=default; bh=n8+e5EdD3qCLe4+UNDppPY7sXOg=; b=Gs3O6 g3lJ5fdROohlXmI+HMZNNECzSE9V+04S9dKrw3evE3SlkrgB4dkJerUlabVyIqVu MI5xUNjd/O1KiVyc/QgKInsMmMGuVyBcNk+/JSymhuyRA1Mp+DNWh+/KtViTBt/m pWZ0VqHz1EFEfj3Az7/90Og/jA/+Oey/Nn+Ba4= Received: (qmail 123247 invoked by alias); 29 Mar 2019 13:36:34 -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 121199 invoked by uid 89); 29 Mar 2019 13:36:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-vs1-f42.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=9Ai/L+/L/wd+PwNU3uHs2ubUI6AYvtmCBzSWLSqkGpo=; b=BSxaJPV0Yj4P0ILpV1SQdl6GOU7vaPeOu5f+h+qy/zO2ccffkZ2Kn4WSPDN3S6N5M8 J9b8HPyzxz9ldnYXJvO6Q4Ln2WrqEtjQp5UUjQ97bHsVxaMG14RT6iSnhJGBdTxO8md4 ZxMhN9+JtWomlv+FjtpHWEMeW1JZdCyKcJRWStI6aG7F2zhWpse9WJzIN57XZdAFO0X2 YFrMgEI/ilLoJUzW96w+nl4guwSbAsTd2N9lEdxTQigdBj9RreK0Bb75fP5qVr00ak7/ tQYB9UI2kRie45Y4unnvh+qEAsgtsWoLMCiH5ztO8M5pkTBS95WV1z4X8nfgXCpbtmv1 nGug== Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 26/28] benchtests: Add logb{f} benchmark Date: Fri, 29 Mar 2019 10:35:27 -0300 Message-Id: <20190329133529.22523-27-adhemerval.zanella@linaro.org> In-Reply-To: <20190329133529.22523-1-adhemerval.zanella@linaro.org> References: <20190329133529.22523-1-adhemerval.zanella@linaro.org> Checked on powerpc-linux-gnu (built without --with-cpu, with --with-cpu=power4 and with --with-cpu=power5+ and --disable-multi-arch), powerpc64-linux-gnu (built without --with-cp and with --with-cpu=power5+ and --disable-multi-arch). * benchtests/Makefile (bench-math): Add logb. * benchtests/logb-inputs: New file. * benchtests/logbf-inputs: New file. --- benchtests/Makefile | 2 +- benchtests/logb-inputs | 11 +++++++++++ benchtests/logbf-inputs | 11 +++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 benchtests/logb-inputs create mode 100644 benchtests/logbf-inputs -- 2.17.1 Reviewed-by: Gabriel F. T. Gomes diff --git a/benchtests/Makefile b/benchtests/Makefile index 013653588e..07343b01c6 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -24,7 +24,7 @@ include ../Makeconfig bench-math := acos acosh asin asinh atan atanh cos cosh exp exp2 log log2 \ modf pow rint sin sincos sinh sqrt tan tanh fmin fmax fminf \ fmaxf powf trunc truncf expf exp2f logf log2f sincosf sinf \ - cosf isnan isinf isfinite hypot + cosf isnan isinf isfinite hypot logb logbf bench-pthread := pthread_once thread_create diff --git a/benchtests/logb-inputs b/benchtests/logb-inputs new file mode 100644 index 0000000000..ab3b161696 --- /dev/null +++ b/benchtests/logb-inputs @@ -0,0 +1,11 @@ +## args: double +## ret: double +## includes: math.h + +## name: subnormal +0x0.0000000000001p-1022 +0x0.fffffffffffffp-1022 + +## name: normal +1.0 +1024.0 diff --git a/benchtests/logbf-inputs b/benchtests/logbf-inputs new file mode 100644 index 0000000000..c97fa17842 --- /dev/null +++ b/benchtests/logbf-inputs @@ -0,0 +1,11 @@ +## args: double +## ret: double +## includes: math.h + +## name: subnormal +0x1p-149 +0x1.fffff8p-128 + +## name: normal +1.0 +1024.0