summaryrefslogtreecommitdiff
path: root/benchtests
diff options
context:
space:
mode:
authorSteve Ellcey <sellcey@mips.com>2013-12-02 09:37:18 -0800
committerSteve Ellcey <sellcey@mips.com>2013-12-02 09:37:18 -0800
commitfe7da22091be6e4939531eeeef593b6d4539b55c (patch)
treee0b8a187ba869c3aa71cdb91f0a7b38aeb4cef84 /benchtests
parent639a0ef8aba38b3ba1628d539fa95078132bca8a (diff)
downloadglibc-fe7da22091be6e4939531eeeef593b6d4539b55c.tar.gz
Benchmark test for sqrt function.
Diffstat (limited to 'benchtests')
-rw-r--r--benchtests/Makefile3
-rw-r--r--benchtests/sqrt-inputs10
2 files changed, 12 insertions, 1 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile
index 0820d2060d..c1698c6c3f 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -21,7 +21,7 @@
subdir := benchtests
bench := acos acosh asin asinh atan atanh cos cosh exp log modf pow rint sin \
- sincos sinh tan tanh
+ sincos sinh sqrt tan tanh
# String function benchmarks.
string-bench := bcopy bzero memccpy memchr memcmp memcpy memmem memmove \
@@ -49,6 +49,7 @@ LDLIBS-bench-pow = -lm
LDLIBS-bench-rint = -lm
LDLIBS-bench-sin = -lm
LDLIBS-bench-sinh = -lm
+LDLIBS-bench-sqrt = -lm
LDLIBS-bench-tan = -lm
LDLIBS-bench-tanh = -lm
LDLIBS-bench-sincos = -lm
diff --git a/benchtests/sqrt-inputs b/benchtests/sqrt-inputs
new file mode 100644
index 0000000000..370bc05cc8
--- /dev/null
+++ b/benchtests/sqrt-inputs
@@ -0,0 +1,10 @@
+## args: double
+## ret: double
+## includes: math.h
+0.25
+0.75
+2.0
+4.0
+2209.0
+6642.25
+15190.5625