diff mbox series

[26/28] benchtests: Add logb{f} benchmark

Message ID 20190329133529.22523-27-adhemerval.zanella@linaro.org
State New
Headers show
Series powerpc floating-point optimization refactor | expand

Commit Message

Adhemerval Zanella Netto March 29, 2019, 1:35 p.m. UTC
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 logb.
	* benchtests/logb-inputs: New file.
	* benchtests/logbf-inputs: New file.
---
 benchtests/Makefile     |  2 +-
 benchtests/logb-inputs  | 11 +++++++++++
 benchtests/logbf-inputs | 11 +++++++++++
 3 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 benchtests/logb-inputs
 create mode 100644 benchtests/logbf-inputs

-- 
2.17.1

Comments

Gabriel F. T. Gomes July 5, 2019, 1:23 a.m. UTC | #1
On Fri, Mar 29 2019, Adhemerval Zanella wrote:
> 

> 	* benchtests/Makefile (bench-math): Add logb.

> 	* benchtests/logb-inputs: New file.

> 	* benchtests/logbf-inputs: New file.


Looks good to me.  Thanks.

Reviewed-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Adhemerval Zanella Netto July 8, 2019, 6:31 p.m. UTC | #2
On 04/07/2019 22:23, Gabriel F. T. Gomes wrote:
> On Fri, Mar 29 2019, Adhemerval Zanella wrote:

>>

>> 	* benchtests/Makefile (bench-math): Add logb.

>> 	* benchtests/logb-inputs: New file.

>> 	* benchtests/logbf-inputs: New file.

> 

> Looks good to me.  Thanks.

> 

> Reviewed-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>

> 



If no one opposes it, I will commit this shortly.
diff mbox series

Patch

diff --git a/benchtests/Makefile b/benchtests/Makefile
index 013653588e..07343b01c6 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 hypot
+	      cosf isnan isinf isfinite hypot logb logbf
 
 bench-pthread := pthread_once thread_create
 
diff --git a/benchtests/logb-inputs b/benchtests/logb-inputs
new file mode 100644
index 0000000000..ab3b161696
--- /dev/null
+++ b/benchtests/logb-inputs
@@ -0,0 +1,11 @@ 
+## args: double
+## ret: double
+## includes: math.h
+
+## name: subnormal
+0x0.0000000000001p-1022
+0x0.fffffffffffffp-1022
+
+## name: normal
+1.0
+1024.0
diff --git a/benchtests/logbf-inputs b/benchtests/logbf-inputs
new file mode 100644
index 0000000000..c97fa17842
--- /dev/null
+++ b/benchtests/logbf-inputs
@@ -0,0 +1,11 @@ 
+## args: double
+## ret: double
+## includes: math.h
+
+## name: subnormal
+0x1p-149
+0x1.fffff8p-128
+
+## name: normal
+1.0
+1024.0