This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] x86-64: Verify that _dl_runtime_resolve preserves vector registers
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>, Libc-stable Mailing List <libc-stable at sourceware dot org>
- Date: Thu, 19 Oct 2017 07:57:33 -0700
- Subject: Re: [PATCH] x86-64: Verify that _dl_runtime_resolve preserves vector registers
- Authentication-results: sourceware.org; auth=none
- References: <20170207195721.GA23532@intel.com> <CAMe9rOrEQD0H=L9=6dSUWys8UAoFgioznONP_mGASK=jX0txjA@mail.gmail.com>
2017-02-09 11:03 GMT-08:00 H.J. Lu <hjl.tools@gmail.com>:
> On Tue, Feb 7, 2017 at 11:57 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
>> On x86-64, _dl_runtime_resolve must preserve the first 8 vector
>> registers. Add 3 _dl_runtime_resolve tests to verify that SSE,
>> AVX and AVX512 registers are preserved.
>>
>> Tested on SSE, AVX and AVX512 machines with GCC 6. Any comments?
>>
>>
>> H.J.
>> ---
>> * sysdeps/x86_64/Makefile (tests): Add tst-sse, tst-avx and
>> tst-avx512.
>> (test-extras): Add tst-avx-aux and tst-avx512-aux.
>> (extra-test-objs): Add tst-avx-aux.o and tst-avx512-aux.o.
>> (modules-names): Add tst-ssemod, tst-avxmod and tst-avx512mod.
>> ($(objpfx)tst-sse): New rule.
>> ($(objpfx)tst-avx): Likewise.
>> ($(objpfx)tst-avx512): Likewise.
>> (CFLAGS-tst-avx-aux.c): New.
>> (CFLAGS-tst-avxmod.c): Likewise.
>> (CFLAGS-tst-avx512-aux.c): Likewise.
>> (CFLAGS-tst-avx512mod.c): Likewise.
>> * sysdeps/x86_64/tst-avx-aux.c: New file.
>> * sysdeps/x86_64/tst-avx.c: Likewise.
>> * sysdeps/x86_64/tst-avx512-aux.c: Likewise.
>> * sysdeps/x86_64/tst-avx512.c: Likewise.
>> * sysdeps/x86_64/tst-avx512mod.c: Likewise.
>> * sysdeps/x86_64/tst-avxmod.c: Likewise.
>> * sysdeps/x86_64/tst-sse.c: Likewise.
>> * sysdeps/x86_64/tst-ssemod.c: Likewise.
>> ---
>
> I am checking it in shortly.
>
I am backporting this to 2.25, 2.24 and 2.23 branches.
--
H.J.