benchtests: hypot benchmark
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 11 Mar 2019 17:01:11 +0000 (17:01 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 8 Jul 2019 20:14:04 +0000 (17:14 -0300)
Inputs are based on argument reductions from generic and powerpc
implementation.

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

Reviewed-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
ChangeLog
benchtests/Makefile
benchtests/hypot-inputs [new file with mode: 0644]

index 21daab7..d335dd1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       * benchtests/Makefile (bench-math): Add hypot.
+       * benchtests/hypot-inputs: New file.
+
 2019-07-08  Vincent Chen  <vincentc@andestech.com>
 
        * sysdeps/unix/sysv/linux/dl-vdso.h
index ef400a8..2d49113 100644 (file)
@@ -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
+             cosf isnan isinf isfinite hypot
 
 bench-pthread := pthread_once thread_create
 
diff --git a/benchtests/hypot-inputs b/benchtests/hypot-inputs
new file mode 100644 (file)
index 0000000..e987e5d
--- /dev/null
@@ -0,0 +1,16 @@
+## includes: math.h
+## args: double:double
+## ret: double
+
+## name: overflow
+0x3.ffffffffffffcp-1024, 0x8p-152
+## name: higher_two500
+0x1.000002027941dp+500,  0x1.0000000000001p+500
+## name: subnormal
+0x0.fffffffffffffp-1022, 0x0.fffffffffffffp-1022
+## name: less_two500
+0x1.fffffffffffffp-501,  0x1.fffffffffffffp-501
+
+## name: default
+3.0                   , 4.0
+5.0                   , 4.0