From 2a523216d5dc973d8bf91a00f00b70b7df42b91d Mon Sep 17 00:00:00 2001 From: Andrew Senkevich Date: Tue, 9 Jun 2015 18:32:42 +0300 Subject: 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. --- math/test-double-vlen2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'math/test-double-vlen2.h') 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); \ -- cgit v1.2.3