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: Need a way to test ifunc functions


On Wed, Nov 10, 2010 at 1:11 PM, Ulrich Drepper <drepper@gmail.com> wrote:
> On Wed, Nov 10, 2010 at 12:29, H.J. Lu <hjl.tools@gmail.com> wrote:
>> With IFUNC functions, glibc testsuite can only test one implementation.
>> We need a way to test SSE2/SSSE3/SSE4 implementations on SSE4
>> machines.
>
> You do unit testing. ?Link the test app against the .o/.os file and
> call the function y its real name (__strcmp_sse4 etc).
>

It has to be done by hand whenever the change is made.
Here is a prove of concept to test multiple copy of memcpy.

-- 
H.J.

Attachment: libc-test-ifunc-1.patch
Description: Text document


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