benchtests: Add logb{f} benchmark

* benchtests/Makefile (bench-math): Add logb.
	* benchtests/logb-inputs: New file.
	* benchtests/logbf-inputs: New file.

Reviewed-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
This commit is contained in:
Adhemerval Zanella 2019-03-14 11:55:04 +00:00
parent 931c616eed
commit 0cccd37f70
4 changed files with 27 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org> 2019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
* benchtests/Makefile (bench-math): Add logb.
* benchtests/logb-inputs: New file.
* benchtests/logbf-inputs: New file.
* sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ... * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
* sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization. * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
* sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ... * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...

View File

@ -24,7 +24,7 @@ include ../Makeconfig
bench-math := acos acosh asin asinh atan atanh cos cosh exp exp2 log log2 \ 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 \ modf pow rint sin sincos sinh sqrt tan tanh fmin fmax fminf \
fmaxf powf trunc truncf expf exp2f logf log2f sincosf sinf \ 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 bench-pthread := pthread_once thread_create

11
benchtests/logb-inputs Normal file
View File

@ -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

11
benchtests/logbf-inputs Normal file
View File

@ -0,0 +1,11 @@
## args: double
## ret: double
## includes: math.h
## name: subnormal
0x1p-149
0x1.fffff8p-128
## name: normal
1.0
1024.0