From patchwork Fri Mar 29 13:35:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 32079 Received: (qmail 122763 invoked by alias); 29 Mar 2019 13:36:28 -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 120865 invoked by uid 89); 29 Mar 2019 13:36:09 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.4 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-f54.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=Pdm3ZuoJK2+Vqh20TNr/C6X7Q2Ozy+BNwFLr8VSlBXA=; b=xK0m9vMP/mo4zID28IlQq6IjaZ1n03ixCpLvQdXuMATNwHVZpa6U0x2csWjz2pN4t+ Kz9N7b4hibiCvysw/GXzD8GXVeS9D6ElfxG3WrFfITP9cDwmu11KNq0+eZZMJ2+FMKFj m1YY2Rqbnvt12oP6sKl6MA33v/3v4M1nWkCMek86xb3s3CRB4uq0mK+O+tGBhp1oXR+X Is3bThSxVBNc8ZB79sE+7nQHRKBo0zyDX5TTPDeRw2DcOV1MkEyzBMjWutaOu76Iwdgm QIJUhqhBuovt3rezafxtB4hDIrTELuE20+QdZMvSbnnzB9sbYLYdIoWQj811gkU3YXV5 +1Lw== Return-Path: From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH 23/28] benchtests: hypot benchmark Date: Fri, 29 Mar 2019 10:35:24 -0300 Message-Id: <20190329133529.22523-24-adhemerval.zanella@linaro.org> In-Reply-To: <20190329133529.22523-1-adhemerval.zanella@linaro.org> References: <20190329133529.22523-1-adhemerval.zanella@linaro.org> Inputs are based on argument reductions from generic and powerpc implementation. 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 hypot. * benchtests/hypot-inputs: New file. Reviewed-by: Gabriel F. T. Gomes --- benchtests/Makefile | 2 +- benchtests/hypot-inputs | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 benchtests/hypot-inputs diff --git a/benchtests/Makefile b/benchtests/Makefile index 42bf13b27f..013653588e 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 + cosf isnan isinf isfinite hypot bench-pthread := pthread_once thread_create diff --git a/benchtests/hypot-inputs b/benchtests/hypot-inputs new file mode 100644 index 0000000000..e987e5dd1b --- /dev/null +++ b/benchtests/hypot-inputs @@ -0,0 +1,16 @@ +## includes: math.h +## args: double:double +## ret: double + +## name: overflow +0x3.ffffffffffffcp-1024, 0x8p-152 +## name: higher_two500 +0x1.000002027941dp+500, 0x1.0000000000001p+500 +## name: subnormal +0x0.fffffffffffffp-1022, 0x0.fffffffffffffp-1022 +## name: less_two500 +0x1.fffffffffffffp-501, 0x1.fffffffffffffp-501 + +## name: default +3.0 , 4.0 +5.0 , 4.0