aboutsummaryrefslogtreecommitdiff
path: root/math/test-double-vlen2.h
diff options
context:
space:
mode:
authorAndrew Senkevich <andrew.senkevich@intel.com>2015-06-09 18:32:42 +0300
committerAndrew Senkevich <andrew.senkevich@intel.com>2015-06-09 18:32:42 +0300
commit2a523216d5dc973d8bf91a00f00b70b7df42b91d (patch)
tree4f59a679b860d81b57a7c6cad66ac454ecad505d /math/test-double-vlen2.h
parent04f496d6025753058bdd071fd711e9f56df149a7 (diff)
downloadglibc-2a523216d5dc973d8bf91a00f00b70b7df42b91d.tar
glibc-2a523216d5dc973d8bf91a00f00b70b7df42b91d.tar.gz
glibc-2a523216d5dc973d8bf91a00f00b70b7df42b91d.tar.bz2
glibc-2a523216d5dc973d8bf91a00f00b70b7df42b91d.zip
This patch adds vector cosf tests.
* math/Makefile: Added CFLAGS for new tests. * math/test-float-vlen16.h: New file. * math/test-float-vlen4.h: New file. * math/test-float-vlen8.h: New file. * math/test-double-vlen2.h: Fixed 2 argument macro and comment. * sysdeps/x86_64/fpu/Makefile: Added new tests and variables. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated. * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file. * sysdeps/x86_64/fpu/test-float-vlen16.c: New file. * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file. * sysdeps/x86_64/fpu/test-float-vlen4.c: New file. * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file. * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file. * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file. * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
Diffstat (limited to 'math/test-double-vlen2.h')
-rw-r--r--math/test-double-vlen2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/math/test-double-vlen2.h b/math/test-double-vlen2.h
index 37d70604e5..2e8415b16a 100644
--- a/math/test-double-vlen2.h
+++ b/math/test-double-vlen2.h
@@ -45,7 +45,7 @@
#define WRAPPER_DECL(function) extern FLOAT function (FLOAT);
#define WRAPPER_DECL_ff(function) extern FLOAT function (FLOAT, FLOAT);
-// Wrapper from scalar to vector function with vector length 8.
+// Wrapper from scalar to vector function with vector length 2.
#define VECTOR_WRAPPER(scalar_func, vector_func) \
extern VEC_TYPE vector_func (VEC_TYPE); \
FLOAT scalar_func (FLOAT x) \
@@ -63,7 +63,7 @@ extern VEC_TYPE vector_func (VEC_TYPE, VEC_TYPE); \
FLOAT scalar_func (FLOAT x, FLOAT y) \
{ \
int i; \
- VEC_TYPE mx; \
+ VEC_TYPE mx, my; \
INIT_VEC_LOOP (mx, x, 2); \
INIT_VEC_LOOP (my, y, 2); \
VEC_TYPE mr = vector_func (mx, my); \