diff mbox

benchtests: Add benchtests for ffs and ffsll

Message ID 1396028276-15053-1-git-send-email-will.newton@linaro.org
State Committed
Headers show

Commit Message

Will Newton March 28, 2014, 5:37 p.m. UTC
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  <will.newton@linaro.org>

	* 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

Comments

Siddhesh Poyarekar March 29, 2014, 4:43 a.m. UTC | #1
On Fri, Mar 28, 2014 at 05:37:56PM +0000, Will Newton wrote:
> 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  <will.newton@linaro.org>
> 
> 	* benchtests/Makefile (bench): Add ffs and ffsl to list

Typo, should be ffsll.  Looks good to me otherwise.

Thanks,
Siddhesh

> 	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
> -- 
> 1.8.1.4
>
diff mbox

Patch

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