diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-10-07 11:51:24 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-10-07 11:51:25 +0530 |
commit | a357259bf854478d154727bbc9e39f89c952f6cc (patch) | |
tree | 11e1d64d36fbfb9c3ed40215ac7cebfee6f6e004 /benchtests/Makefile | |
parent | 9ec1b13d0162034464202b06d81b9daa9fe840e7 (diff) | |
download | glibc-a357259bf854478d154727bbc9e39f89c952f6cc.tar.gz glibc-a357259bf854478d154727bbc9e39f89c952f6cc.tar.xz glibc-a357259bf854478d154727bbc9e39f89c952f6cc.zip |
Add more directives to benchmark input files
This patch adds some more directives to the benchmark inputs file, moving functionality from the Makefile and making the code generation script a bit cleaner. The function argument and return types that were earlier added as variables in the makefile and passed to the script via command line arguments are now the 'args' and 'ret' directive respectively. 'args' should be a colon separated list of argument types (skipped if the function doesn't accept any arguments) and 'ret' should be the return type. Additionally, an 'includes' directive may have a comma separated list of headers to include in the source. For example, the pow input file now looks like this: 42.0, 42.0 1.0000000000000020, 1.5 I did this to unclutter the benchtests Makefile a bit and eventually eliminate dependency of the tests on the Makefile and have tests depend on their respective include files only.
Diffstat (limited to 'benchtests/Makefile')
-rw-r--r-- | benchtests/Makefile | 51 |
1 files changed, 1 insertions, 50 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile index 4f4bd5408a..aec395a814 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -34,70 +34,22 @@ string-bench-all := $(string-bench) $(string-bench-ifunc) benchset := $(string-bench-all) -acos-ARGLIST = double -acos-RET = double LDLIBS-bench-acos = -lm - -acosh-ARGLIST = double -acosh-RET = double LDLIBS-bench-acosh = -lm - -asin-ARGLIST = double -asin-RET = double LDLIBS-bench-asin = -lm - -asinh-ARGLIST = double -asinh-RET = double LDLIBS-bench-asinh = -lm - -atan-ARGLIST = double -atan-RET = double LDLIBS-bench-atan = -lm - -atanh-ARGLIST = double -atanh-RET = double LDLIBS-bench-atanh = -lm - -cos-ARGLIST = double -cos-RET = double LDLIBS-bench-cos = -lm - -cosh-ARGLIST = double -cosh-RET = double LDLIBS-bench-cosh = -lm - -exp-ARGLIST = double -exp-RET = double LDLIBS-bench-exp = -lm - -log-ARGLIST = double -log-RET = double LDLIBS-bench-log = -lm - -pow-ARGLIST = double:double -pow-RET = double LDLIBS-bench-pow = -lm - -rint-ARGLIST = double -rint-RET = double LDLIBS-bench-rint = -lm - -sin-ARGLIST = double -sin-RET = double LDLIBS-bench-sin = -lm - -sinh-ARGLIST = double -sinh-RET = double LDLIBS-bench-sinh = -lm - -tan-ARGLIST = double -tan-RET = double LDLIBS-bench-tan = -lm - -tanh-ARGLIST = double -tanh-RET = double LDLIBS-bench-tanh = -lm - LDLIBS-bench-sincos = -lm @@ -171,6 +123,5 @@ $(objpfx)bench-%.c: %-inputs $(bench-deps) { if [ -n "$($*-INCLUDE)" ]; then \ cat $($*-INCLUDE); \ fi; \ - $(..)scripts/bench.pl $(patsubst %-inputs,%,$<) \ - $($*-ARGLIST) $($*-RET); } > $@-tmp + $(..)scripts/bench.pl $(patsubst %-inputs,%,$<); } > $@-tmp mv -f $@-tmp $@ |