about summary refs log tree commit diff
path: root/benchtests/hypot-inputs
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-03-11 17:01:11 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-07-08 17:14:04 -0300
commitf215dbbdf18893b08e0b00eb12d369e7cf4a946d (patch)
tree87e0a1e67ef362b96f88e12ca73aa952ab1c1d92 /benchtests/hypot-inputs
parent97274b18463f29418e20d83ce9cc72ea06596a1c (diff)
downloadglibc-f215dbbdf18893b08e0b00eb12d369e7cf4a946d.tar.gz
glibc-f215dbbdf18893b08e0b00eb12d369e7cf4a946d.tar.xz
glibc-f215dbbdf18893b08e0b00eb12d369e7cf4a946d.zip
benchtests: hypot benchmark
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>
Diffstat (limited to 'benchtests/hypot-inputs')
-rw-r--r--benchtests/hypot-inputs16
1 files changed, 16 insertions, 0 deletions
diff --git a/benchtests/hypot-inputs b/benchtests/hypot-inputs
new file mode 100644
index 0000000000..e987e5dd1b
--- /dev/null
+++ b/benchtests/hypot-inputs
@@ -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