This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/14] [x86_64] Vector math functions (added vector cos tests)


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

Attachment: 0002-x86-64-vector-cos-tests.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]