Benchmark test for sqrt function.
authorSteve Ellcey <sellcey@mips.com>
Mon, 2 Dec 2013 17:37:18 +0000 (09:37 -0800)
committerSteve Ellcey <sellcey@mips.com>
Mon, 2 Dec 2013 17:37:18 +0000 (09:37 -0800)
benchtests/Makefile
benchtests/sqrt-inputs [new file with mode: 0644]

index 0820d20..c1698c6 100644 (file)
@@ -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 (file)
index 0000000..370bc05
--- /dev/null
@@ -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