mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
@ -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); \
|
||||
|
Reference in New Issue
Block a user