[PATCH] x86-64: Verify that _dl_runtime_resolve preserves vector registers

H.J. Lu hjl.tools@gmail.com
Thu Feb 9 19:03:00 GMT 2017


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.


-- 
H.J.



More information about the Libc-alpha mailing list