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: 161442 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2053495jan; Fri, 29 Mar 2019 06:40:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNAh7Z8T2rzDHfByIe9qrY+EcmgF1p6MBsh0YUlBATVOprR6TwiMVZyeSrlVZr721WyAs3 X-Received: by 2002:a17:902:b58f:: with SMTP id a15mr34649923pls.36.1553866809627; Fri, 29 Mar 2019 06:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553866809; cv=none; d=google.com; s=arc-20160816; b=gX3dlCWtXPLcclyKF/0f/KZgYfb96CfkPobV2DPFO/BtxWQ/BZl1xa986WXCwaWp6Z 8fFdALH3rU1LdP2qiPKTV/b4+ya/gUvNGDnpaiUG8Xt5qOFnJNKR4QXmEo4rxHJU80Ob ZGiEXDYkRuWLq8tw54MBNo/h+qrdcV6UrifLfJm+pyn/hmgRZ/2PKlvi87NVvKmqGchh WfrOf3di/dAJKGKYGIT3+YLzWR9sgPIorRUoUD4phd3m8OYZVQ3Ex9AOsf7lZ9BBX5Bi 1L9ccWYvqlFTDqC2cKjTRV6mseB321FeoqSUFxvdMaAspHqOVkZSvxvDYid+qI4/PpAd 264A== 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=Pdm3ZuoJK2+Vqh20TNr/C6X7Q2Ozy+BNwFLr8VSlBXA=; b=zWaael3sGiWwXkUM7Xjkf4pRjRu8lboUs39ix/xQwIsSL40Jfu5ds4FJM5AY4nhHai Ql4b0g25h2Sol98VwP5CXSXv5VlVOJ0Fk/H+yRfNn5b6W41knW/3hhbzH9XycJdxIYsd bEknzI9qTqCuF7ly7yeLwDKknUZpArOGx3dOp8QMIBV9lEKnEi7ScuOOXVZVBDWPubU2 31nG9CmDOnzthkcJsMSMDIy84KEHsUsUxg3lpIzuvWHif/XuHBJKrJVHQy2p3ntih8rm DjwpSuFrGNg27Bk2HtQXufla6JrOQcRBwvl4+oxxawx+Ny6c3Q2GAjOmNM0b27ervhzS JTZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=UIpU0Vf9; dkim=pass header.i=@linaro.org header.s=google header.b=xK0m9vMP; spf=pass (google.com: domain of libc-alpha-return-101011-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-101011-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 s21si1826749pfh.260.2019.03.29.06.40.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Mar 2019 06:40:09 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-101011-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=UIpU0Vf9; dkim=pass header.i=@linaro.org header.s=google header.b=xK0m9vMP; spf=pass (google.com: domain of libc-alpha-return-101011-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="libc-alpha-return-101011-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=MwrqTcQZ5bDVtx6s9/1RZj3dWD5SO2u HrElOsLaFo7p1h03i5TmOwXseMxo3KDd4mhangs4dWzMdyidnBBej35b3p50lFDb XIwJG1uM5HkDIAvHw3tAkjk1U1zVvzEB2Yqv6imCFriw/Z92XcNl98Lc3b+CpbEM umafcx6zLQS8= 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=ag+zlN9ZeWFlBN7mFYP9trFDrKk=; b=UIpU0 Vf95GWNAnq9V/ZyMVvvP6VWt1MQvFbBuwq4ukpt0P3D8T4WfA22dmHmYZ15MIiSn pP139entwqAUfaMvY3a+fhiQg0HzmrNZG+ZrS1Cng20R/UhSDGbJxVOHUtMyjjMX xJArUe9uoGs9YhOzfsENBKfBgmZ73jhCGIwmTM= 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. --- benchtests/Makefile | 2 +- benchtests/hypot-inputs | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 benchtests/hypot-inputs -- 2.17.1 Reviewed-by: Gabriel F. T. Gomes 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