[PATCH 2/14] [x86_64] Vector math functions (added vector cos tests)
Andrew Senkevich
andrew.n.senkevich@gmail.com
Tue May 26 23:14:00 GMT 2015
Hi, Joseph,
this version of patch contains all tests with wrapper part.
> Could you please give a more detailed explanation of what the patch does
> and the rationale for the choices made?
This is addition of testing infrastructure for vector math functions.
We test vector math functions using scalar tests infrastructure with
help of special wrappers from scalar versions to vector ones. Wrapper
implemented with platform specific intrinsics and placed in separate
file for compilation with architecture specific options, main part of
test has no such options. With help of system of definitions unfolding
of which is drived from test we have wrapper called in individual
testing function instead old scalar function. System of definitions
includes generated during make check header
math/libm-have-vector-test.h with series of conditional defines which
helps to avoid build fails for functions having no vector versions and
runtime architecture check to prevent runtime fails of test run on
inappropriate hardware.
ChangeLog
2015-05-26 Andrew Senkevich <andrew.senkevich@intel.com>
* math/Makefile: Added rules for tests.
* sysdeps/x86_64/fpu/Makefile: Likewise.
* sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
* math/test-vec-loop.h: New file.
* math/test-double-vlen2.h: New file.
* math/test-double-vlen4.h: New file.
* math/test-double-vlen8.h: New file.
* sysdeps/x86_64/fpu/math-tests-arch.h: New file.
* sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
* sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
* sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
* sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
* sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
* sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
* sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
* sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
--
WBR,
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-x86-64-vector-cos-tests.patch
Type: application/octet-stream
Size: 25289 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150526/2340136e/attachment.obj>
More information about the Libc-alpha
mailing list