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: 32082 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. Reviewed-by: Gabriel F. T. Gomes --- 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 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