From patchwork Fri Mar 28 17:37:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 27367 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 377AF20062 for ; Fri, 28 Mar 2014 17:38:20 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 9sf7089379ykp.5 for ; Fri, 28 Mar 2014 10:38:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results; bh=LnotOjQ7Hr0TtZwbu73aWuWqtlKTxeJ67BaqKdX8m4c=; b=N/p5QGH8HQlpqqRad0v4YpQ7uifewHn9dzW7TcZ+bQ8yLQa23r/KqAMgUf1UcWuMWY gr/oUCZz7dMjitfmhmUhvTpiQhIop+GB6n0HgdJ5tHIVtFloIEpH1dpngHnCHZ5sVuab fXHXUtZ+ojxHgOHO7g6El48nPD/hla5UVTicsAvh4YMuMrjiMMWJ88s+72NBj2d3ZE6M Y7j6QzivaDZLRWjb1GfjRYxk8zBq+2iSUzQpyFL86ZsRB+DbK5YBTObQ/+fb4x+zsNTj aIi/2Pq5QH/q7bggpwk8l0b8ANAtsOz6fNXiOCXZRaAdZLiRmgD4MYZQOwPfefCL1lAi Dx3Q== X-Gm-Message-State: ALoCoQl1PLQ2P4o4jXEHrMnTFTjXk2seVDiUiAdpSf84pvFrKLVpcAfQ/tEvrupXZhik94Ado0rk X-Received: by 10.52.146.45 with SMTP id sz13mr3187744vdb.6.1396028299937; Fri, 28 Mar 2014 10:38:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.131 with SMTP id z3ls1600477qgd.59.gmail; Fri, 28 Mar 2014 10:38:19 -0700 (PDT) X-Received: by 10.220.167.2 with SMTP id o2mr8246171vcy.8.1396028299867; Fri, 28 Mar 2014 10:38:19 -0700 (PDT) Received: from mail-ve0-x22e.google.com (mail-ve0-x22e.google.com [2607:f8b0:400c:c01::22e]) by mx.google.com with ESMTPS id ls10si1370099vec.64.2014.03.28.10.38.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 28 Mar 2014 10:38:19 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22e is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22e; Received: by mail-ve0-f174.google.com with SMTP id oz11so5924057veb.19 for ; Fri, 28 Mar 2014 10:38:19 -0700 (PDT) X-Received: by 10.58.57.67 with SMTP id g3mr8136337veq.3.1396028299783; Fri, 28 Mar 2014 10:38:19 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp26921vcv; Fri, 28 Mar 2014 10:38:19 -0700 (PDT) X-Received: by 10.66.231.40 with SMTP id td8mr9880936pac.103.1396028297470; Fri, 28 Mar 2014 10:38:17 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id eg2si2738085pac.59.2014.03.28.10.38.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Mar 2014 10:38:17 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-48682-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 15730 invoked by alias); 28 Mar 2014 17:38:08 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 15718 invoked by uid 89); 28 Mar 2014 17:38:07 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f170.google.com X-Received: by 10.180.76.137 with SMTP id k9mr14286577wiw.21.1396028282758; Fri, 28 Mar 2014 10:38:02 -0700 (PDT) From: Will Newton To: libc-alpha@sourceware.org Subject: [PATCH] benchtests: Add benchtests for ffs and ffsll Date: Fri, 28 Mar 2014 17:37:56 +0000 Message-Id: <1396028276-15053-1-git-send-email-will.newton@linaro.org> X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22e is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 Add benchtests for ffs and ffsll. There is no benchtest for ffsl as it is identical to one of the other functions. 2014-03-28 Will Newton * benchtests/Makefile (bench): Add ffs and ffsl to list of tests. * benchtests/ffs-inputs: New file. * benchtests/ffsll-inputs: Likewise. --- benchtests/Makefile | 5 +-- benchtests/ffs-inputs | 103 ++++++++++++++++++++++++++++++++++++++++++++++++ benchtests/ffsll-inputs | 103 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 208 insertions(+), 3 deletions(-) create mode 100644 benchtests/ffs-inputs create mode 100644 benchtests/ffsll-inputs diff --git a/benchtests/Makefile b/benchtests/Makefile index b331d1a..5aa2eb1 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -22,9 +22,8 @@ subdir := benchtests include ../Makeconfig - -bench := acos acosh asin asinh atan atanh cos cosh exp exp2 log log2 modf pow \ - rint sin sincos sinh sqrt tan tanh +bench := acos acosh asin asinh atan atanh cos cosh exp exp2 ffs ffsll \ + log log2 modf pow rint sin sincos sinh sqrt tan tanh # String function benchmarks. string-bench := bcopy bzero memccpy memchr memcmp memcpy memmem memmove \ diff --git a/benchtests/ffs-inputs b/benchtests/ffs-inputs new file mode 100644 index 0000000..484fe57 --- /dev/null +++ b/benchtests/ffs-inputs @@ -0,0 +1,103 @@ +## args: int +## ret: int +## includes: strings.h +0x33ed4 +0x2b +0xba3f6965 +0x4 +0x927e0ceb +0x7 +0x0 +0x3418b +0x318c +0x19a7402 +0x699d4586 +0x392e4 +0x66 +0x7fc86 +0x13d +0x2aa7a61 +0x29d +0x1d729b2 +0x13a +0x7 +0x11b958 +0x3a6a23 +0x1b0d749 +0x1f12ecb +0x21 +0x285a +0x24702 +0x88799 +0x10b +0x5 +0x572739 +0x12f0 +0xa36c89 +0x1 +0x1f58 +0x33743ce8 +0xbefe +0x7 +0x3 +0xdc +0x1713e +0x8d28 +0xbb0ef6d +0x3c7 +0x2 +0xd0e53fcc +0x2e2 +0x762 +0xf +0x35 +0x2fc6e7a +0x105 +0x58e3 +0x3 +0x16aa +0x7b1b38 +0x0 +0x2b +0x99538d +0xb3234 +0x322 +0x806bd +0xd73 +0x503a +0x7d +0xb88bb919 +0x4f5 +0x1f757c4f +0xc37e5 +0xd9e519 +0xf0a +0xe9f1e8d +0x4664 +0x4 +0x1 +0x1 +0x0 +0x1ee25 +0x75a24 +0x73c57b0 +0x300e9 +0x9 +0x5b +0x6d25 +0x38bf436e +0xf4724994 +0x2b +0xb8a5de +0x4a +0x281da +0x905db8 +0x3d606 +0x6c200855 +0x21 +0x354e0dfa +0x2 +0x1 +0xf8297c3 +0x2fed30 +0xd4ab7 diff --git a/benchtests/ffsll-inputs b/benchtests/ffsll-inputs new file mode 100644 index 0000000..6b74d89 --- /dev/null +++ b/benchtests/ffsll-inputs @@ -0,0 +1,103 @@ +## args: long long +## ret: int +## includes: string.h +0xedada05aba9463 +0x7c4e52bbc75241 +0x16ab7ad +0x20ec623a4ccdb +0x1e24e9ed059d +0x3acf +0x6eb28fbb803a274 +0xc1 +0x25fc2148c092529f +0x1d10ba752e5 +0x322bd878b3 +0x26fa11b70e20 +0x30cd6a05a17ca14b +0x1591d3a2d0cc7 +0x8119d76e910c1a +0x2b24d878fee314 +0x1c +0x3022a3955 +0xedc7b7b6a818 +0x40 +0xf28 +0xa2ecb +0x56a7e4211a2ca38 +0x6a0ee2316382 +0x634 +0x58 +0x4fad66fb43f5 +0x1f004b76 +0x7 +0x6ff84575bb70af +0x5d5b4e +0xaa614b130 +0x15504 +0x1a2e2e7e +0x54b0f28b383cc +0x6 +0x2a2a3440b7 +0x158a132dc0c20836 +0x77aa8e9c91c43b1 +0x33f526901fc08594 +0x7bf156c +0xb458b5e +0x6289fcb44 +0x4d84973bbd8c00 +0x2e8c2de648 +0x150fab +0x16ebb7bae02934 +0x485285b6065272 +0xfdde0b16299 +0x747d3c940cb +0x1bdb379 +0xfcb26a +0x20b90cc92bbef +0x46 +0xf0e681aaec28b2d5 +0x10c738cf1109 +0x8509bef69993908 +0x3332 +0x219167d +0x7eb19c6f88f +0x32a1b4ead441e65 +0xdc93 +0x327a7e6676802312 +0xcc7296c957 +0xb0b20c47c6b500a +0x55d614072f1 +0x3c8e4 +0x1a +0x5809b7ae +0x2 +0x1525 +0x13 +0x6e +0x1b +0x7c58cf +0x2f5347197bcf6 +0x516a0d576e2c3 +0x4f3cf315 +0x3c16a7531f3a1 +0xa929f8 +0x1ce88e5 +0x6ab464e92bc3 +0x3ff39bb2 +0xea9921 +0xb3009 +0x39b037793bef0da0 +0x5d +0x39a9989019c92 +0x108bae +0x239c1c +0x1851dc9178f4 +0x1fc6f70 +0x38 +0xa8f606a147 +0x30dac66b +0x76d377c20b0e836 +0x2425 +0x4e5a82884 +0x7a1f128a894728 +0xb5f0af24e3f7347