From patchwork Mon Mar 1 17:51:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raphael M Zinsly X-Patchwork-Id: 42189 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F360D393A408; Mon, 1 Mar 2021 17:51:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F360D393A408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614621119; bh=+vUqxyo4fRJ9k3wAaStpC4CQzqgIiaqAk/Po9YN3MlA=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=W2sSQduDlwM7sCozKHgFdJhvcDBXdZVbXIJtX8sVI+mSFFFXWJNNtiDNRilSp8cI/ aVAdcXI3PlXSsjTOQqXGz8aBvi/5O29UzEr1N6M7s9q2XhcaMjO51r2tWZMJrdZT4f b3tTmCbYVkRWv0oEad5cwzODgKnfi4M3IUn/VAT8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 993D7386185F for ; Mon, 1 Mar 2021 17:51:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 993D7386185F Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 121HZ5SZ183651 for ; Mon, 1 Mar 2021 12:51:55 -0500 Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com with ESMTP id 3712yk4gwy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 01 Mar 2021 12:51:55 -0500 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 121HkYtv015924 for ; Mon, 1 Mar 2021 17:51:54 GMT Received: from b03cxnp08025.gho.boulder.ibm.com (b03cxnp08025.gho.boulder.ibm.com [9.17.130.17]) by ppma02dal.us.ibm.com with ESMTP id 3710sqa9h7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 01 Mar 2021 17:51:54 +0000 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 121Hpqru12976600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 1 Mar 2021 17:51:53 GMT Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E0DCDC6057; Mon, 1 Mar 2021 17:51:52 +0000 (GMT) Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5E2DAC6059; Mon, 1 Mar 2021 17:51:52 +0000 (GMT) Received: from localhost (unknown [9.160.75.103]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTP; Mon, 1 Mar 2021 17:51:52 +0000 (GMT) To: libc-alpha@sourceware.org Subject: [PATCH v2 3/3] benchtests: Add ilogb* tests Date: Mon, 1 Mar 2021 14:51:40 -0300 Message-Id: <20210301175140.29109-3-rzinsly@linux.ibm.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210301175140.29109-1-rzinsly@linux.ibm.com> References: <20210301175140.29109-1-rzinsly@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761 definitions=2021-03-01_12:2021-03-01, 2021-03-01 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 spamscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2103010140 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Raphael Moreira Zinsly via Libc-alpha From: Raphael M Zinsly Reply-To: Raphael Moreira Zinsly Cc: murphyp@linux.ibm.com, tuliom@linux.ibm.com, Raphael Moreira Zinsly Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" Add a benchtest to ilogb, ilogbf and ilogbf128 based on the logb* benchtests. --- benchtests/Makefile | 4 ++-- benchtests/ilogb-inputs | 11 +++++++++++ benchtests/ilogbf-inputs | 11 +++++++++++ benchtests/ilogbf128-inputs | 11 +++++++++++ 4 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 benchtests/ilogb-inputs create mode 100644 benchtests/ilogbf-inputs create mode 100644 benchtests/ilogbf128-inputs diff --git a/benchtests/Makefile b/benchtests/Makefile index 12bd25a57c..0c99547074 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -25,10 +25,10 @@ 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 roundeven roundevenf expf exp2f logf \ log2f sincosf sinf cosf isnan isinf isfinite hypot logb logbf \ - exp10f + exp10f ilogb ilogbf ifneq (,$(filter yes,$(float128-fcts) $(float128-alias-fcts))) -bench-math += expf128 powf128 sinf128 +bench-math += expf128 powf128 sinf128 ilogbf128 endif bench-pthread := pthread_once thread_create pthread-locks diff --git a/benchtests/ilogb-inputs b/benchtests/ilogb-inputs new file mode 100644 index 0000000000..4b3b38bd99 --- /dev/null +++ b/benchtests/ilogb-inputs @@ -0,0 +1,11 @@ +## args: double +## ret: int +## includes: math.h + +## name: subnormal +0x0.0000000000001p-1022 +0x0.fffffffffffffp-1022 + +## name: normal +1.0 +1024.0 diff --git a/benchtests/ilogbf-inputs b/benchtests/ilogbf-inputs new file mode 100644 index 0000000000..ea391d3b85 --- /dev/null +++ b/benchtests/ilogbf-inputs @@ -0,0 +1,11 @@ +## args: float +## ret: int +## includes: math.h + +## name: subnormal +0x1p-149 +0x1.fffff8p-128 + +## name: normal +1.0 +1024.0 diff --git a/benchtests/ilogbf128-inputs b/benchtests/ilogbf128-inputs new file mode 100644 index 0000000000..bfbfc93714 --- /dev/null +++ b/benchtests/ilogbf128-inputs @@ -0,0 +1,11 @@ +## args: _Float128 +## ret: int +## includes: math.h + +## name: subnormal +6.47517511943802511092443895822764655e-4966f128 +0x1.fffffffffffffff8p-16383f128 + +## name: normal +1.0 +-0x8.2faf442f390a9211f5af128673fp+0L